issue58, auto-append pending slash if missing
[phpfspot.git] / rpc.php
diff --git a/rpc.php b/rpc.php
index 5d9bb37af8519ce86242f4627812b2b2874810ec..d7dafce23d68f486a28c34301ba5593471647d9f 100644 (file)
--- a/rpc.php
+++ b/rpc.php
@@ -92,7 +92,7 @@ class PHPFSPOT_RPC {
 
          case 'search':
 
-            $fspot->startSearch($_GET['for'], $_GET['from'], $_GET['to']);
+            $fspot->startSearch($_GET['for'], $_GET['from'], $_GET['to'], $_GET['sort_order']);
             break;
 
          case 'get_export':
@@ -112,6 +112,14 @@ class PHPFSPOT_RPC {
             print $fspot->whatToDo();
             break;
 
+         case 'reset_slideshow':
+            print $fspot->resetSlideShow();
+            break;
+
+         case 'get_next_slideshow_img':
+            print $fspot->getNextSlideShowImage();
+            break;
+
       }
 
    } // process_ajax_request();