From 4fec9fd7795c4258a50b87ec88d076b85e7c040d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 20 Nov 2005 08:31:58 +0100 Subject: [PATCH] feed details improvements --- backend.php | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/backend.php b/backend.php index b8455b48..cd7d65c2 100644 --- a/backend.php +++ b/backend.php @@ -2175,7 +2175,7 @@ $result = db_query($link, "SELECT - title,feed_url,last_updated, + title,feed_url,last_updated,icon_url, (SELECT COUNT(int_id) FROM ttrss_user_entries WHERE feed_id = id) AS total, (SELECT COUNT(int_id) FROM ttrss_user_entries @@ -2190,19 +2190,39 @@ $title = db_fetch_result($result, 0, "title"); $last_updated = db_fetch_result($result, 0, "last_updated"); $feed_url = db_fetch_result($result, 0, "feed_url"); + $icon_url = db_fetch_result($result, 0, "icon_url"); $total = db_fetch_result($result, 0, "total"); $unread = db_fetch_result($result, 0, "unread"); $marked = db_fetch_result($result, 0, "marked"); - print "

$title

"; + + $result = db_query($link, "SELECT COUNT(id) AS subscribed + FROM ttrss_feeds WHERE feed_url = '$feed_url'"); + + $subscribed = db_fetch_result($result, 0, "subscribed"); + + print "
"; + + $icon_file = ICONS_DIR . "/$feed_id.ico"; + + if (file_exists($icon_file) && filesize($icon_file) > 0) { + $feed_icon = ""; + } else { + $feed_icon = ""; + } + + print "

$feed_icon $title

"; print ""; - print ""; + print " + "; print ""; print ""; print ""; print ""; + print ""; print "
Feed URL$feed_url
Feed URL$feed_url
Last updated$last_updated
Total articles$total
Unread articles$unread
Starred articles$marked
Subscribed users$subscribed
"; -- 2.39.5