]> git.wh0rd.org - tt-rss.git/commitdiff
rpc: mark some more XML methods
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 29 Nov 2010 13:31:23 +0000 (16:31 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 29 Nov 2010 13:31:23 +0000 (16:31 +0300)
modules/backend-rpc.php

index d494cab415b235989f14babef2d4165a87e1d0c7..5721eb3c279d87d716347bfa9dc02f21dcbe630a 100644 (file)
                }
 
                if ($subop == "completeEmails") {
+                       header("Content-Type: text/plain");
 
                        $search = db_escape_string($_REQUEST["search"]);
 
                }
 
                if ($subop == "quickAddCat") {
-                       print "<rpc-reply>";    
+                       header("Content-Type: text/plain");
 
                        $cat = db_escape_string($_REQUEST["cat"]);
 
 
                        print_feed_cat_select($link, "cat_id", $id);
 
-                       print "</rpc-reply>";
-
                        return;
                }
 
+               // XML method
                if ($subop == "regenFeedKey") {
                        $feed_id = db_escape_string($_REQUEST['id']);
                        $is_cat = (bool) db_escape_string($_REQUEST['is_cat']);
                }
 
                if ($subop == "clearKeys") {
-
                        db_query($link, "DELETE FROM ttrss_access_keys WHERE
                                owner_uid = " . $_SESSION["uid"]);
 
-                       print "<rpc-reply>";
-                       print "<message>UPDATE_COUNTERS</message>";
-                       print "</rpc-reply>";
-
                        return;
                }
 
+               // XML method
                if ($subop == "verifyRegexp") {
                        $reg_exp = $_REQUEST["reg_exp"];
 
                        return;
                }
 
+               // TODO: unify with digest-get-contents?
                if ($subop == "cdmGetArticle") {
                        header("Content-Type: text/plain");