|
|
@ -18,7 +18,7 @@
|
|
|
|
feed_url,site_url,
|
|
|
|
feed_url,site_url,
|
|
|
|
SUBSTRING(last_updated,1,19) AS last_updated
|
|
|
|
SUBSTRING(last_updated,1,19) AS last_updated
|
|
|
|
FROM ttrss_feeds WHERE id = '$id' AND
|
|
|
|
FROM ttrss_feeds WHERE id = '$id' AND
|
|
|
|
auth_login = '' AND auth_pass = ''");
|
|
|
|
auth_login = '' AND auth_pass = '' AND private IS NOT true");
|
|
|
|
|
|
|
|
|
|
|
|
if (db_num_rows($result) == 1) {
|
|
|
|
if (db_num_rows($result) == 1) {
|
|
|
|
|
|
|
|
|
|
|
@ -92,7 +92,7 @@
|
|
|
|
$result = db_query($link, "SELECT feed_url,COUNT(id) AS subscribers
|
|
|
|
$result = db_query($link, "SELECT feed_url,COUNT(id) AS subscribers
|
|
|
|
FROM ttrss_feeds WHERE (SELECT COUNT(id) = 0 FROM ttrss_feeds AS tf
|
|
|
|
FROM ttrss_feeds WHERE (SELECT COUNT(id) = 0 FROM ttrss_feeds AS tf
|
|
|
|
WHERE tf.feed_url = ttrss_feeds.feed_url
|
|
|
|
WHERE tf.feed_url = ttrss_feeds.feed_url
|
|
|
|
AND owner_uid = '$owner_uid') GROUP BY feed_url
|
|
|
|
AND (private IS true OR owner_uid = '$owner_uid')) GROUP BY feed_url
|
|
|
|
ORDER BY subscribers DESC LIMIT $limit");
|
|
|
|
ORDER BY subscribers DESC LIMIT $limit");
|
|
|
|
|
|
|
|
|
|
|
|
print "<br/>";
|
|
|
|
print "<br/>";
|
|
|
|