some style improvements
[phpfspot.git] / rpc.php
diff --git a/rpc.php b/rpc.php
index 4bbf4d50b1cbd84314a4be38be0062048c00efb8..891f395d77bbc89a9fc2ea022a7444b7bf857ade 100644 (file)
--- a/rpc.php
+++ b/rpc.php
@@ -70,6 +70,7 @@ class PHPFSPOT_RPC {
 
             $fspot->resetTagSearch();
             $fspot->resetTags();
+            $fspot->resetDateSearch();
             $fspot->resetPhotoView();
             break;
 
@@ -84,11 +85,6 @@ class PHPFSPOT_RPC {
             $fspot->showPhotoIndex();
             break;
    
-         case 'showbubbledetails':
-      
-            $fspot->showBubbleDetails($_GET['id'], $_GET['direction']);
-            break;
-
          case 'showcredits':
 
             $fspot->showCredits();
@@ -96,9 +92,17 @@ class PHPFSPOT_RPC {
 
          case 'tag_search':
 
+            $fspot->resetDateSearch();
             $fspot->startTagSearch($_GET['for']);
             break;
 
+         case 'date_search':
+   
+            $fspot->resetTagSearch();
+            $fspot->resetTags();
+            $fspot->startDateSearch($_GET['from'], $_GET['to']);
+            break;
+
          case 'get_export':
 
             $fspot->getExport($_GET['mode']);
@@ -108,6 +112,10 @@ class PHPFSPOT_RPC {
             $fspot->getCurrentPhoto();
             break;
 
+         case 'get_calendar_matrix':
+            $fspot->get_calendar_matrix($_GET['year'], $_GET['month'], $_GET['day']);
+            break;
+
       }
 
    } // process_ajax_request();