issue124, also if rate-sort is set to DESC, 2nd-sort by photo-name should be ASC
[phpfspot.git] / rpc.php
diff --git a/rpc.php b/rpc.php
index f850dad42e8d61306861f85639965bfe274b0942..ada2857a1083fbfec0cb70ee7dd206f025d166d0 100644 (file)
--- a/rpc.php
+++ b/rpc.php
@@ -2,8 +2,9 @@
 
 /* *************************************************************************
  *
- * Copyright (c) by Andreas Unterkircher, unki@netshadow.at
- * All rights reserved
+ * phpfspot, presents your F-Spot photo collection in Web browsers.
+ *
+ * Copyright (c) by Andreas Unterkircher
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
 
 require_once "phpfspot.class.php";
 
+/**
+ * PHPFSPOT_RPC class
+ *
+ * handles AJAX-RPC calls from client browsers
+ * @package phpfspot
+ */
 class PHPFSPOT_RPC {
 
+   /**
+    * PHPFSPOT_RPC constructor
+    */
    public function __construct()
    {
+      /* start PHP session */
       session_start();
 
    } // __construct()
@@ -38,7 +49,7 @@ class PHPFSPOT_RPC {
       $server = new HTML_AJAX_Server();
       $server->handleRequest();
 
-      $fspot = new PHPFSPOT();
+      $phpfspot = new PHPFSPOT();
 
       /* if no action is specified, no need to further process this
        * function here.
@@ -54,41 +65,46 @@ class PHPFSPOT_RPC {
       switch($action) {
          case 'showphoto':
             if(isset($_GET['id']) && is_numeric($_GET['