diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2009-04-28 08:34:30 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-04-28 08:34:30 +0000 |
commit | 7c418dee552c9d6e59a209e807a61aa26723fea9 (patch) | |
tree | 3314b7ce0fbf9b14b043608fc4af76a1fef309a7 /phpBB/includes/session.php | |
parent | 66918d2ff8485204c3516d6f9164e50481b5e6df (diff) | |
download | forums-7c418dee552c9d6e59a209e807a61aa26723fea9.tar forums-7c418dee552c9d6e59a209e807a61aa26723fea9.tar.gz forums-7c418dee552c9d6e59a209e807a61aa26723fea9.tar.bz2 forums-7c418dee552c9d6e59a209e807a61aa26723fea9.tar.xz forums-7c418dee552c9d6e59a209e807a61aa26723fea9.zip |
#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
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r-- | phpBB/includes/session.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index 9fbe8fc85b..043a637584 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -1793,7 +1793,10 @@ class user extends session // 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_')) { - header('HTTP/1.1 503 Service Unavailable'); + if ($this->data['is_bot']) + { + header('HTTP/1.1 503 Service Unavailable'); + } $message = (!empty($config['board_disable_msg'])) ? $config['board_disable_msg'] : 'BOARD_DISABLE'; trigger_error($message); @@ -1809,7 +1812,10 @@ class user extends session if (!$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_')) { - header('HTTP/1.1 503 Service Unavailable'); + if ($this->data['is_bot']) + { + header('HTTP/1.1 503 Service Unavailable'); + } trigger_error('BOARD_UNAVAILABLE'); } } |