X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=rpc.php;h=4599e11c8603598614ac292111bb499abc112276;hp=ac08129b66b777aca8d1c49d2687201da62930a2;hb=92431f61cad6e9603a57dc79e183f99b54930d1b;hpb=37091420ec57a050d936b616c1f7e03df06fdf26 diff --git a/rpc.php b/rpc.php index ac08129..4599e11 100644 --- a/rpc.php +++ b/rpc.php @@ -44,8 +44,50 @@ class PHPFSPOT_RPC { switch($_GET['action']) { case 'showphoto': - print "test"; + + $fspot->showPhoto($_GET['id']); + break; + + case 'show_available_tags': + + $fspot->getAvailableTags(); + break; + + case 'show_selected_tags': + + $fspot->getSelectedTags(); + break; + + case 'addtag': + + $fspot->addTag($_GET['id']); + break; + + case 'deltag': + + $fspot->delTag($_GET['id']); break; + + case 'resettags': + + $fspot->resetTags(); + break; + + case 'show_photo_index': + + $fspot->showPhotoIndex(); + break; + + case 'showbubbledetails': + + $fspot->showBubbleDetails($_GET['id'], $_GET['direction']); + break; + + case 'showcredits': + + $fspot->showCredits(); + break; + } } // process_ajax_request();