require_once "sessions.php"; require_once "sanity_check.php"; require_once "version.php"; require_once "config.php"; require_once "db-prefs.php"; require_once "functions.php"; $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); login_sequence($link); if ($_SESSION["access_level"] < 10) { header("Location: login.php"); die; } ?>
Total articles stored: $total_articles (${articles_size}K)
"; /* $result = db_query($link, "SELECT COUNT(int_id) as cid,owner_uid,login FROM ttrss_user_entries LEFT JOIN ttrss_users ON (owner_uid = ttrss_users.id) GROUP BY owner_uid,login ORDER BY cid DESC"); */ $result = db_query($link, "SELECT count(ttrss_entries.id) AS cid, login FROM ttrss_entries LEFT JOIN ttrss_user_entries ON (ref_id = ttrss_entries.id) LEFT JOIN ttrss_users ON (ttrss_users.id = owner_uid) GROUP BY login"); print "Articles | Owner |
" . $line["cid"] . " | " . $line["login"] . " | "; print "
Site | Feed | Owner | Stored Articles | Unread Articles |
".$line["title"]." | "; print "".$line["feed_url"]." | "; print "" . $line["login"] . " | "; print "" . $line["num_articles"] . " | "; print "" . $line["num_articles_unread"] . " | "; print "