Set header to 503, avoids indexing and such
git-svn-id: file:///home/shish/svn/shimmie2/trunk@148 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
5450237869
commit
1fe43b8d7a
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ class Downtime extends Extension {
|
|||
if($config->get_bool("downtime") && !$user->is_admin() &&
|
||||
is_a($event, 'PageRequestEvent') && !$this->is_safe_page($event)) {
|
||||
$msg = $config->get_string("downtime_message");
|
||||
header("HTTP/1.0 503 Service Temporarily Unavailable");
|
||||
print <<<EOD
|
||||
<html>
|
||||
<head>
|
||||
|
|
Reference in a new issue