diff --git a/functions.js b/functions.js
index 0e9ec02a1..35ca9e77f 100644
--- a/functions.js
+++ b/functions.js
@@ -2015,3 +2015,27 @@ function labelFieldsCheck(elem) {
}
}
+
+function getSelectedFeedsFromBrowser() {
+
+ var list = document.getElementById("browseFeedList");
+ if (!list) list = document.getElementById("browseBigFeedList");
+
+ var selected = new Array();
+
+ for (i = 0; i < list.childNodes.length; i++) {
+ var child = list.childNodes[i];
+ if (child.id && child.id.match("FBROW-")) {
+ var id = child.id.replace("FBROW-", "");
+
+ var cb = document.getElementById("FBCHK-" + id);
+
+ if (cb.checked) {
+ selected.push(id);
+ }
+ }
+ }
+
+ return selected;
+}
+
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 "
".__("Showing top 25 registered feeds, sorted by popularity:")."
"; - print " + "; + onclick=\"javascript:updateFeedBrowser()\" value=\"".__('Search')."\"> +"; $owner_uid = $_SESSION["uid"]; print "