Skip to content

Commit

Permalink
Added missing EXCLUDED_USERS_CSV in tr_stats.php (#283)
Browse files Browse the repository at this point in the history
* Added missing EXCLUDED_USERS_CSV in tr_stats.php

* Update CHANGELOG.md
  • Loading branch information
belomaxorka committed Oct 1, 2023
1 parent 4cc0c90 commit 4ec64ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
6 changes: 3 additions & 3 deletions admin/stats/tr_stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

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';
Expand Down Expand Up @@ -45,4 +45,4 @@
echo 'gen time: <b>'. sprintf('%.3f', (array_sum(explode(' ', microtime())) - TIMESTART)) ."</b> sec\n";

echo '</pre></div>';
echo '</body></html>';
echo '</body></html>';

0 comments on commit 4ec64ec

Please sign in to comment.