diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-06-04 19:14:51 +0000 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-06-04 19:14:51 +0000 |
commit | 37091420ec57a050d936b616c1f7e03df06fdf26 (patch) | |
tree | ccffc9abf3ac30bc3ef08c91f3bb15b15fb3e2c9 | |
parent | 9ad429db3fa1ecfdca81cdd5a0925d112f3eb677 (diff) |
initial import
git-svn-id: file:///var/lib/svn/phpfspot/trunk@10 fa6a889d-dae6-447d-9e79-4ba9a3039384
-rw-r--r-- | rpc.php | 58 |
1 files changed, 58 insertions, 0 deletions
@@ -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(); + +?> |