Update ajax.php

This commit is contained in:
Roman Kelesidis 2024-07-03 13:52:28 +07:00
parent ae4bcd4bfd
commit 4edd0fff52

View File

@ -142,14 +142,14 @@ class ajax_common
// Exit if board is disabled via ON/OFF trigger or by admin
if ($bb_cfg['board_disable'] || file_exists(BB_DISABLED))
{
if ($bb_cfg['board_disable'])
{
if (!DBG_USER) $this->ajax_die($lang['BOARD_DISABLE']);
}
else if (file_exists(BB_DISABLED))
if (file_exists(BB_DISABLED))
{
$this->ajax_die($lang['BOARD_DISABLE_CRON']);
}
else if ($bb_cfg['board_disable'] && !DBG_USER)
{
$this->ajax_die($lang['BOARD_DISABLE']);
}
// Старый вариант
//