mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Added missing EXCLUDED_USERS_CSV in tr_stats.php (#283)
* Added missing EXCLUDED_USERS_CSV in tr_stats.php * Update CHANGELOG.md
This commit is contained in:
parent
4cc0c90a75
commit
4ec64ec1ff
@ -6,6 +6,7 @@
|
||||
**Merged pull requests:**
|
||||
|
||||
- Release v2.1.5-2023.09 🎉
|
||||
- Added missing EXCLUDED_USERS_CSV in tr_stats.php [\#283](https://github.com/torrentpier/torrentpier-lts/pull/283) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Added support 7z archives [\#282](https://github.com/torrentpier/torrentpier-lts/pull/282) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Added support bmp images in BBCode [\#279](https://github.com/torrentpier/torrentpier-lts/pull/279) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Added support webp images in BBCode [\#278](https://github.com/torrentpier/torrentpier-lts/pull/278) ([belomaxorka](https://github.com/belomaxorka))
|
||||
|
@ -8,8 +8,8 @@ $user->session_start();
|
||||
|
||||
if (!IS_ADMIN) 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()-7776000';
|
||||
$sql[] = 'SELECT count(*) FROM `'.BB_USERS.'` WHERE `user_lastvisit` < UNIX_TIMESTAMP()-2592000 AND user_id NOT IN ('.EXCLUDED_USERS_CSV.')';
|
||||
$sql[] = 'SELECT count(*) FROM `'.BB_USERS.'` WHERE `user_lastvisit` < UNIX_TIMESTAMP()-7776000 AND user_id NOT IN ('.EXCLUDED_USERS_CSV.')';
|
||||
$sql[] = 'SELECT round(avg(size)/1048576) 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';
|
||||
@ -45,4 +45,4 @@ if ($l = sys('la'))
|
||||
echo 'gen time: <b>'. sprintf('%.3f', (array_sum(explode(' ', microtime())) - TIMESTART)) ."</b> sec\n";
|
||||
|
||||
echo '</pre></div>';
|
||||
echo '</body></html>';
|
||||
echo '</body></html>';
|
||||
|
Loading…
Reference in New Issue
Block a user