mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 13:24:01 -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;
|
global $bb_cfg;
|
||||||
|
|
||||||
// Exit if tracker is disabled
|
// Exit if tracker is disabled
|
||||||
if ($bb_cfg['tracker']['off']) {
|
if ($bb_cfg['tracker']['bt_off']) {
|
||||||
msg_die($bb_cfg['tracker']['off_reason']);
|
msg_die($bb_cfg['tracker']['bt_off_reason']);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -38,7 +38,6 @@ switch ($mode) {
|
||||||
global $template;
|
global $template;
|
||||||
|
|
||||||
$match = XS_TPL_PREFIX;
|
$match = XS_TPL_PREFIX;
|
||||||
$match_len = strlen($match);
|
|
||||||
$dir = $template->cachedir;
|
$dir = $template->cachedir;
|
||||||
$res = @opendir($dir);
|
$res = @opendir($dir);
|
||||||
while (($file = readdir($res)) !== false) {
|
while (($file = readdir($res)) !== false) {
|
||||||
|
|
|
@ -627,8 +627,8 @@ $bb_cfg['page'] = [
|
||||||
// Tracker settings
|
// Tracker settings
|
||||||
$bb_cfg['tracker'] = [
|
$bb_cfg['tracker'] = [
|
||||||
'autoclean' => true,
|
'autoclean' => true,
|
||||||
'off' => false,
|
'bt_off' => false,
|
||||||
'off_reason' => 'temporarily disabled',
|
'bt_off_reason' => 'Temporarily disabled',
|
||||||
'numwant' => 50,
|
'numwant' => 50,
|
||||||
'update_dlstat' => true,
|
'update_dlstat' => true,
|
||||||
'expire_factor' => 2.5,
|
'expire_factor' => 2.5,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue