mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Minor improvements (#893)
This commit is contained in:
parent
b80874abe4
commit
5ed4fdadd3
3 changed files with 4 additions and 5 deletions
|
@ -14,8 +14,8 @@ if (!defined('IN_TRACKER')) {
|
|||
global $bb_cfg;
|
||||
|
||||
// Exit if tracker is disabled
|
||||
if ($bb_cfg['tracker']['off']) {
|
||||
msg_die($bb_cfg['tracker']['off_reason']);
|
||||
if ($bb_cfg['tracker']['bt_off']) {
|
||||
msg_die($bb_cfg['tracker']['bt_off_reason']);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
@ -38,7 +38,6 @@ switch ($mode) {
|
|||
global $template;
|
||||
|
||||
$match = XS_TPL_PREFIX;
|
||||
$match_len = strlen($match);
|
||||
$dir = $template->cachedir;
|
||||
$res = @opendir($dir);
|
||||
while (($file = readdir($res)) !== false) {
|
||||
|
|
|
@ -627,8 +627,8 @@ $bb_cfg['page'] = [
|
|||
// Tracker settings
|
||||
$bb_cfg['tracker'] = [
|
||||
'autoclean' => true,
|
||||
'off' => false,
|
||||
'off_reason' => 'temporarily disabled',
|
||||
'bt_off' => false,
|
||||
'bt_off_reason' => 'Temporarily disabled',
|
||||
'numwant' => 50,
|
||||
'update_dlstat' => true,
|
||||
'expire_factor' => 2.5,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue