Tiny Tiny Statistics

Counters

Total articles stored: $total_articles

"; $result = db_query($link, "SELECT COUNT(int_id) as cid,owner_uid,login FROM ttrss_user_entries JOIN ttrss_users ON (owner_uid = ttrss_users.id) GROUP BY owner_uid,login ORDER BY cid DESC"); print "

Per-user storage

"; print ""; print ""; while ($line = db_fetch_assoc($result)) { print ""; print ""; print ""; } print "
Articles Owner
" . $line["cid"] . "" . $line["login"] . "
"; print "

User subscriptions

"; $result = db_query($link, "SELECT title,feed_url,site_url,login, (SELECT count(int_id) FROM ttrss_user_entries WHERE feed_id = ttrss_feeds.id) AS num_articles, (SELECT count(int_id) FROM ttrss_user_entries WHERE feed_id = ttrss_feeds.id AND unread = true) AS num_articles_unread FROM ttrss_feeds,ttrss_users WHERE owner_uid = ttrss_users.id ORDER BY login"); print ""; print ""; $cur_login = ""; while ($line = db_fetch_assoc($result)) { print ""; print ""; print ""; print ""; print ""; print ""; print ""; if ($cur_login != $line["login"] && $cur_login != "") { print ""; $cur_login = $line["login"]; } } print "
Site Feed Owner Stored Articles Unread Articles
".$line["title"]."".$line["feed_url"]."" . $line["login"] . "" . $line["num_articles"] . "" . $line["num_articles_unread"] . "
 
"; ?>