summaryrefslogtreecommitdiff
path: root/modules/backend-rpc.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-24 06:01:17 +0100
committerAndrew Dolgov <[email protected]>2009-01-24 06:01:17 +0100
commitc2913898f1f56548d457073dbaa03c77ddc6d0d9 (patch)
tree10b37a0ddaccc4b77bbeff06daed4759a6d90336 /modules/backend-rpc.php
parentb56465dd56772efb80ef251d8d19f7177b244d57 (diff)
use popup feedbrowser for main UI (2)
Diffstat (limited to 'modules/backend-rpc.php')
-rw-r--r--modules/backend-rpc.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index b26304c2b..855d54aa7 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -503,6 +503,23 @@
return;
}
+ if ($subop == "feedBrowser") {
+
+ $search = db_escape_string($_REQUEST["search"]);
+ $limit = db_escape_string($_REQUEST["limit"]);
+
+ print "<rpc-reply>";
+ print "<content>";
+ print "<![CDATA[";
+ $ctr = print_feed_browser($link, $search, $limit);
+ print "]]>";
+ print "</content>";
+ print "<num-results value=\"$ctr\"/>";
+ print "</rpc-reply>";
+
+ return;
+ }
+
print "<rpc-reply><error>Unknown method: $subop</error></rpc-reply>";
}
?>