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
4edd0fff52
commit
e5c433a3dd
@ -519,19 +519,19 @@ if (($bb_cfg['board_disable'] || file_exists(BB_DISABLED)) && !defined('IN_ADMIN
|
||||
{
|
||||
header('HTTP/1.0 503 Service Unavailable');
|
||||
}
|
||||
if ($bb_cfg['board_disable'])
|
||||
{
|
||||
// admin lock
|
||||
send_no_cache_headers();
|
||||
if (!DBG_USER) bb_die('BOARD_DISABLE');
|
||||
}
|
||||
else if (file_exists(BB_DISABLED))
|
||||
if (file_exists(BB_DISABLED))
|
||||
{
|
||||
// trigger lock
|
||||
cron_release_deadlock();
|
||||
send_no_cache_headers();
|
||||
bb_die('BOARD_DISABLE_CRON');
|
||||
}
|
||||
else if ($bb_cfg['board_disable'] && !DBG_USER)
|
||||
{
|
||||
// admin lock
|
||||
send_no_cache_headers();
|
||||
bb_die('BOARD_DISABLE');
|
||||
}
|
||||
}
|
||||
|
||||
// Cron functions
|
||||
|
Loading…
Reference in New Issue
Block a user