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:
shish 2007-06-01 21:11:38 +00:00
parent 5450237869
commit 1fe43b8d7a

View file

@ -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>