initial import
authorAndreas Unterkircher <unki@netshadow.at>
Mon, 4 Jun 2007 19:14:51 +0000 (19:14 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Mon, 4 Jun 2007 19:14:51 +0000 (19:14 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@10 fa6a889d-dae6-447d-9e79-4ba9a3039384

rpc.php [new file with mode: 0644]

diff --git a/rpc.php b/rpc.php
new file mode 100644 (file)
index 0000000..ac08129
--- /dev/null
+++ b/rpc.php
@@ -0,0 +1,58 @@
+<?php
+
+/* *************************************************************************
+ *
+ * Copyright (c) by Andreas Unterkircher, unki@netshadow.at
+ * All rights reserved
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ * *************************************************************************/
+
+require_once "phpfspot.class.php";
+
+class PHPFSPOT_RPC {
+
+   public function __construct()
+   {
+
+      session_start();
+
+   } // __construct()
+
+   function process_ajax_request()
+   {
+
+      require_once 'HTML/AJAX/Server.php';
+
+      $server = new HTML_AJAX_Server();
+      $server->handleRequest();
+
+      $fspot = new PHPFSPOT();
+
+      switch($_GET['action']) {
+         case 'showphoto':
+            print "test";
+            break;
+      }
+
+   } // process_ajax_request();
+
+}
+
+$rpc = new PHPFSPOT_RPC();
+$rpc->process_ajax_request();
+
+?>