mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
Added missing EXCLUDED_USERS in tr_stats.php (#922)
This commit is contained in:
parent
82e5829426
commit
97526d59f2
1 changed files with 2 additions and 2 deletions
|
@ -18,8 +18,8 @@ if (!IS_ADMIN) {
|
||||||
bb_die($lang['NOT_AUTHORISED']);
|
bb_die($lang['NOT_AUTHORISED']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql[] = 'SELECT count(*) FROM `' . BB_USERS . '` WHERE `user_lastvisit` < UNIX_TIMESTAMP()-2592000';
|
$sql[] = 'SELECT count(*) FROM `' . BB_USERS . '` WHERE `user_lastvisit` < UNIX_TIMESTAMP()-2592000 AND user_id NOT IN (' . EXCLUDED_USERS . ')';
|
||||||
$sql[] = 'SELECT count(*) FROM `' . BB_USERS . '` WHERE `user_lastvisit` < UNIX_TIMESTAMP()-7776000';
|
$sql[] = 'SELECT count(*) FROM `' . BB_USERS . '` WHERE `user_lastvisit` < UNIX_TIMESTAMP()-7776000 AND user_id NOT IN (' . EXCLUDED_USERS . ')';
|
||||||
$sql[] = 'SELECT round(avg(size)/1048576) FROM `' . BB_BT_TORRENTS . '`';
|
$sql[] = 'SELECT round(avg(size)/1048576) FROM `' . BB_BT_TORRENTS . '`';
|
||||||
$sql[] = 'SELECT count(*) FROM `' . BB_BT_TORRENTS . '`';
|
$sql[] = 'SELECT count(*) FROM `' . BB_BT_TORRENTS . '`';
|
||||||
$sql[] = 'SELECT count(distinct(topic_id)) FROM `' . BB_BT_TRACKER_SNAP . '` WHERE seeders > 0';
|
$sql[] = 'SELECT count(distinct(topic_id)) FROM `' . BB_BT_TRACKER_SNAP . '` WHERE seeders > 0';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue