diff --git a/backend.php b/backend.php index 3aa701eee..f3c1c58fa 100644 --- a/backend.php +++ b/backend.php @@ -1309,16 +1309,16 @@ return; } - print "
Showing top 50 registered feeds, sorted by popularity:
"; + print "Showing top 25 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 = '' AND private = false - GROUP BY feed_url ORDER BY subscribers DESC LIMIT 50"); + GROUP BY feed_url ORDER BY subscribers DESC LIMIT 25"); print "This panel shows feeds subscribed by other users of this system, just in case you are interested in some of them too.
"; + $limit = db_escape_string($_GET["limit"]); + + if (!$limit) $limit = 25; + $result = db_query($link, "SELECT feed_url,count(id) AS subscribers FROM ttrss_feeds WHERE auth_login = '' AND auth_pass = '' AND private = false - GROUP BY feed_url ORDER BY subscribers DESC LIMIT 100"); + GROUP BY feed_url ORDER BY subscribers DESC LIMIT $limit"); + + print "Selection: