mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update init_bb.php
This commit is contained in:
parent
3582afbff4
commit
09a92f248a
@ -515,19 +515,28 @@ $dl_status_css = array(
|
|||||||
// Exit if board is disabled via ON/OFF trigger or by admin
|
// Exit if board is disabled via ON/OFF trigger or by admin
|
||||||
if (($bb_cfg['board_disable'] || file_exists(BB_DISABLED)) && !defined('IN_ADMIN') && !defined('IN_AJAX') && !defined('IN_LOGIN'))
|
if (($bb_cfg['board_disable'] || file_exists(BB_DISABLED)) && !defined('IN_ADMIN') && !defined('IN_AJAX') && !defined('IN_LOGIN'))
|
||||||
{
|
{
|
||||||
if ($bb_cfg['cron_enabled']) header('HTTP/1.0 503 Service Unavailable');
|
if ($bb_cfg['cron_enabled'])
|
||||||
|
{
|
||||||
|
header('HTTP/1.0 503 Service Unavailable');
|
||||||
|
}
|
||||||
if ($bb_cfg['board_disable'])
|
if ($bb_cfg['board_disable'])
|
||||||
{
|
{
|
||||||
// admin lock
|
// admin lock
|
||||||
send_no_cache_headers();
|
send_no_cache_headers();
|
||||||
if ($bb_cfg['cron_enabled']) bb_die('BOARD_DISABLE');
|
if ($bb_cfg['cron_enabled'])
|
||||||
|
{
|
||||||
|
bb_die('BOARD_DISABLE');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (file_exists(BB_DISABLED))
|
else if (file_exists(BB_DISABLED))
|
||||||
{
|
{
|
||||||
// trigger lock
|
// trigger lock
|
||||||
cron_release_deadlock();
|
cron_release_deadlock();
|
||||||
send_no_cache_headers();
|
send_no_cache_headers();
|
||||||
if ($bb_cfg['cron_enabled']) bb_die('BOARD_DISABLE_CRON');
|
if ($bb_cfg['cron_enabled'])
|
||||||
|
{
|
||||||
|
bb_die('BOARD_DISABLE_CRON');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user