upgedated CHANGELOG, README and UPGRADE
[phpfspot.git] / rpc.php
diff --git a/rpc.php b/rpc.php
index 4bb297331abbad7bff7d38a9e2c66704f8788743..786bc7d56103b28e0fd44b58c43ad52d491735d5 100644 (file)
--- a/rpc.php
+++ b/rpc.php
@@ -58,6 +58,10 @@ class PHPFSPOT_RPC {
             }
             break;
    
+         case 'getxmltaglist':
+            print $fspot->get_xml_tag_list();
+            break;
+
          case 'show_available_tags':
             print $fspot->getAvailableTags();
             break;
@@ -99,6 +103,9 @@ class PHPFSPOT_RPC {
             else {
                unset($_SESSION['begin_with']);
             }
+            if(isset($_GET['last_photo']) && is_numeric($_GET['last_photo']))
+               $_SESSION['last_photo'] = $_GET['last_photo'];
+
             $fspot->showPhotoIndex();
             break;
    
@@ -107,7 +114,7 @@ class PHPFSPOT_RPC {
             break;
 
          case 'search':
-            print $fspot->startSearch($_GET['for']);
+            print $fspot->startSearch();
             break;
 
          case 'update_sort_order':