From f9cb39acafce8ec59e028f7060c32c0fe838a59d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 29 Dec 2005 17:36:41 +0100 Subject: [PATCH] initial feed browser work --- backend.php | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ prefs.js | 8 ++++++++ tt-rss.css | 14 ++++++++++++++ 3 files changed, 74 insertions(+) diff --git a/backend.php b/backend.php index e92317680..7b0594660 100644 --- a/backend.php +++ b/backend.php @@ -1501,6 +1501,56 @@ $subop = $_REQUEST["subop"]; $quiet = $_REQUEST["quiet"]; + if ($subop == "browse") { + + print "
"; + + print "

Feed browser

"; + + print "

Showing top 50 registered feeds, sorted by popularity:

"; + + $result = db_query($link, "SELECT feed_url,count(id) AS subscribers + FROM ttrss_feeds WHERE auth_login = '' AND auth_pass = '' + GROUP BY feed_url ORDER BY subscribers LIMIT 50"); + + print ""; + + print "
+ +
"; + + print "
"; + return; + } + if ($subop == "editfeed") { $feed_id = db_escape_string($_GET["id"]); @@ -1895,6 +1945,8 @@ size=\"40\"> +   + (Browse feeds)