]> git.wh0rd.org - tt-rss.git/blobdiff - backend-rpc.php
move some cookies to init-params
[tt-rss.git] / backend-rpc.php
index 2b2f612796528374243389ccffc02cefd82c1597..1e98aa125bcd2be4d96b5a370820a7542a1ed387 100644 (file)
                }
 
                if ($subop == "sanityCheck") {
+                       print "<rpc-reply>";
                        if (sanity_check($link)) {
                                print "<error error-code=\"0\"/>";
+                               print_init_params($link);
                        }
-               }
+                       print "</rpc-reply>";
+               }               
 
                if ($subop == "globalPurge") {
 
                        print "</rpc-reply>";
 
                }
+
+               if ($subop == "storeParam") {
+                       $key = $_GET["key"];
+                       $value = $_GET["value"];
+                       $_SESSION["stored-params"][$key] = $value;
+               }
        }
 ?>