From: Andrew Dolgov Date: Wed, 12 Aug 2015 13:01:47 +0000 (+0300) Subject: user manager: show stored feeds/articles X-Git-Tag: 16.3~147 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=1edff0d439202fdf5fab831f91dc7b3e9ce839e1;p=tt-rss.git user manager: show stored feeds/articles --- diff --git a/classes/pref/users.php b/classes/pref/users.php index a5d48ac9..e8775133 100644 --- a/classes/pref/users.php +++ b/classes/pref/users.php @@ -377,14 +377,17 @@ class Pref_Users extends Handler_Protected { } $result = $this->dbh->query("SELECT - id,login,access_level,email, + tu.id, + login,access_level,email, ".SUBSTRING_FOR_DATE."(last_login,1,16) as last_login, - ".SUBSTRING_FOR_DATE."(created,1,16) as created + ".SUBSTRING_FOR_DATE."(created,1,16) as created, + (SELECT COUNT(id) FROM ttrss_feeds WHERE owner_uid = tu.id) AS num_feeds, + (SELECT COUNT(ref_id) FROM ttrss_user_entries WHERE owner_uid = tu.id) AS num_articles FROM - ttrss_users + ttrss_users tu WHERE $user_search_query - id > 0 + tu.id > 0 ORDER BY $sort"); if ($this->dbh->num_rows($result) > 0) { @@ -394,8 +397,10 @@ class Pref_Users extends Handler_Protected { print "   - ".__('Login')." - ".__('Access Level')." + ".__('Login')." + ".__('Access Level')." + ".__('Subscribed feeds')." + ".__('Stored articles')." ".__('Registered')." ".__('Last login').""; @@ -423,6 +428,8 @@ class Pref_Users extends Handler_Protected { if (!$line["email"]) $line["email"] = " "; print "" . $access_level_names[$line["access_level"]] . ""; + print "" . $line["num_feeds"] . ""; + print "" . $line["num_articles"] . ""; print "" . $line["created"] . ""; print "" . $line["last_login"] . "";