mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Revert "Refactoring: Created constants for datetime values (#1648)"
This reverts commit 6eca29714a
.
This commit is contained in:
parent
6eca29714a
commit
3e9f4006c4
30 changed files with 52 additions and 58 deletions
|
@ -70,7 +70,7 @@ $attach_config = [];
|
|||
|
||||
if (!$attach_config = CACHE('bb_cache')->get('attach_config')) {
|
||||
$attach_config = get_config();
|
||||
CACHE('bb_cache')->set('attach_config', $attach_config, DAY_IN_SECS);
|
||||
CACHE('bb_cache')->set('attach_config', $attach_config, 86400);
|
||||
}
|
||||
|
||||
include ATTACH_DIR . '/displaying.php';
|
||||
|
|
|
@ -549,5 +549,5 @@ $template->assign_vars([
|
|||
'SEED_EXIST' => ($seeders || defined('SEEDER_EXIST')),
|
||||
'LEECH_EXIST' => ($leechers || defined('LEECHER_EXIST')),
|
||||
'TOR_HELP_LINKS' => $bb_cfg['tor_help_links'],
|
||||
'CALL_SEED' => (!IS_GUEST && $bb_cfg['callseed'] && $tor_reged && !isset($bb_cfg['tor_no_tor_act'][$tor_info['tor_status']]) && ($seed_count < 3) && ($tor_info['call_seed_time'] < TIME_DAY)),
|
||||
'CALL_SEED' => (!IS_GUEST && $bb_cfg['callseed'] && $tor_reged && !isset($bb_cfg['tor_no_tor_act'][$tor_info['tor_status']]) && $seed_count < 3 && $tor_info['call_seed_time'] < (TIMENOW - 86400)),
|
||||
]);
|
||||
|
|
|
@ -202,7 +202,7 @@ function search_attachments($order_by, &$total_rows)
|
|||
// Search Attachment Time
|
||||
$search_days_greater = get_var('search_days_greater', '');
|
||||
if ($search_days_greater) {
|
||||
$where_sql[] = ' (a.filetime < ' . (TIME_DAY * (int)$search_days_greater) . ') ';
|
||||
$where_sql[] = ' (a.filetime < ' . (TIMENOW - ((int)$search_days_greater * 86400)) . ') ';
|
||||
}
|
||||
|
||||
// Search Forum
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue