restyle single photo view
[phpfspot.git] / rpc.php
diff --git a/rpc.php b/rpc.php
index d8d0743b36bacbffe93bdd1a21e9a3797e25c1d3..48b4c40502b3c07aa6839b98c435fa221d30c7d0 100644 (file)
--- 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,16 @@ class PHPFSPOT_RPC {
             $fspot->resetTags();
             break;
 
+         case 'show_photo_index':
+
+            $fspot->showPhotoIndex();
+            break;
+   
+         case 'showbubbledetails':
+      
+            $fspot->showBubbleDetails($_GET['id'], $_GET['direction']);
+            break;
+
       }
 
    } // process_ajax_request();