mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -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
|
@ -29,8 +29,8 @@ $forum_id = $t_data['forum_id'];
|
|||
|
||||
if ($t_data['seeders'] > 2) {
|
||||
$this->ajax_die(sprintf($lang['CALLSEED_HAVE_SEED'], $t_data['seeders']));
|
||||
} elseif ($t_data['call_seed_time'] > (TIMENOW - 86400)) {
|
||||
$time_left = delta_time($t_data['call_seed_time'] + 86400, TIMENOW, 'days');
|
||||
} elseif ($t_data['call_seed_time'] > TIME_DAY) {
|
||||
$time_left = delta_time($t_data['call_seed_time'] + DAY_IN_SECS, TIMENOW, 'days');
|
||||
$this->ajax_die(sprintf($lang['CALLSEED_MSG_SPAM'], $time_left));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue