some nice icons for available and selected tags
[phpfspot.git] / rpc.php
diff --git a/rpc.php b/rpc.php
index c81a7aed35aa1c52a3946433f24f2e20259b5ff7..4599e11c8603598614ac292111bb499abc112276 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':
@@ -79,6 +77,16 @@ class PHPFSPOT_RPC {
 
             $fspot->showPhotoIndex();
             break;
+   
+         case 'showbubbledetails':
+      
+            $fspot->showBubbleDetails($_GET['id'], $_GET['direction']);
+            break;
+
+         case 'showcredits':
+
+            $fspot->showCredits();
+            break;
 
       }