} // __construct()
- function process_ajax_request()
+ public function process_ajax_request()
{
require_once 'HTML/AJAX/Server.php';
$fspot = new PHPFSPOT();
+ /* if no action is specified, no need to further process this
+ * function here.
+ */
+ if(!isset($_GET['action']))
+ return;
+
switch($_GET['action']) {
case 'showphoto':
if(isset($_GET['id']) && is_numeric($_GET['id'])) {
} // process_ajax_request();
-}
+} // class PHPFSPOT_RPC
$rpc = new PHPFSPOT_RPC();
$rpc->process_ajax_request();