X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=rpc.php;h=cffb4edaa6f48addba713962afb7c114a9adede2;hp=d8d0743b36bacbffe93bdd1a21e9a3797e25c1d3;hb=379cde9ab362700327b496aa9aa7c612036b298e;hpb=193a2982417fb5b004c47cc96dcd112e1b07e47d diff --git a/rpc.php b/rpc.php index d8d0743..cffb4ed 100644 --- a/rpc.php +++ b/rpc.php @@ -45,9 +45,7 @@ class PHPFSPOT_RPC { switch($_GET['action']) { case 'showphoto': - $fspot->prepare_single_photo($_GET['id']); - $fspot->tmpl->show("body.tpl"); - + $fspot->showPhoto($_GET['id']); break; case 'show_available_tags': @@ -75,6 +73,11 @@ class PHPFSPOT_RPC { $fspot->resetTags(); break; + case 'show_photo_index': + + $fspot->showPhotoIndex(); + break; + } } // process_ajax_request();