mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
#44485 - we only send a 503 header if it is a search engine.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9490 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
66918d2ff8
commit
7c418dee55
1 changed files with 8 additions and 2 deletions
|
@ -1792,8 +1792,11 @@ class user extends session
|
||||||
|
|
||||||
// Is board disabled and user not an admin or moderator?
|
// Is board disabled and user not an admin or moderator?
|
||||||
if ($config['board_disable'] && !defined('IN_LOGIN') && !$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
|
if ($config['board_disable'] && !defined('IN_LOGIN') && !$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
|
||||||
|
{
|
||||||
|
if ($this->data['is_bot'])
|
||||||
{
|
{
|
||||||
header('HTTP/1.1 503 Service Unavailable');
|
header('HTTP/1.1 503 Service Unavailable');
|
||||||
|
}
|
||||||
|
|
||||||
$message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE';
|
$message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE';
|
||||||
trigger_error($message);
|
trigger_error($message);
|
||||||
|
@ -1808,8 +1811,11 @@ class user extends session
|
||||||
$config['board_disable'] = '1';
|
$config['board_disable'] = '1';
|
||||||
|
|
||||||
if (!$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
|
if (!$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
|
||||||
|
{
|
||||||
|
if ($this->data['is_bot'])
|
||||||
{
|
{
|
||||||
header('HTTP/1.1 503 Service Unavailable');
|
header('HTTP/1.1 503 Service Unavailable');
|
||||||
|
}
|
||||||
trigger_error('BOARD_UNAVAILABLE');
|
trigger_error('BOARD_UNAVAILABLE');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue