mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Refactoring: Created constants for datetime values (#1648)
* Refactoring: Created constants for datetime values * Updated * Updated * Update tracker.php * Update tracker.php * Update index.php * Update admin_log.php * Update viewtopic.php * Updated * Update Poll.php * Updated * Updated * Update viewtopic.php * Update User.php * Update privmsg.php * Update poll.php * Update tr_make_snapshot.php * Update displaying_torrent.php * Update CHANGELOG.md
This commit is contained in:
parent
4fe467e64a
commit
6eca29714a
30 changed files with 58 additions and 52 deletions
|
@ -109,7 +109,7 @@ if (isset($_GET['pane']) && $_GET['pane'] == 'left') {
|
|||
$total_topics = $stats['topiccount'];
|
||||
$total_users = $stats['usercount'];
|
||||
$start_date = bb_date($bb_cfg['board_startdate']);
|
||||
$boarddays = (TIMENOW - $bb_cfg['board_startdate']) / 86400;
|
||||
$boarddays = (TIMENOW - $bb_cfg['board_startdate']) / DAY_IN_SECS;
|
||||
|
||||
$posts_per_day = sprintf('%.2f', $total_posts / $boarddays);
|
||||
$topics_per_day = sprintf('%.2f', $total_topics / $boarddays);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue