Page/Maintenance
* send appropriate status code: 503 (temporarily unavailable) thx @Magnifikator for the heads up
This commit is contained in:
parent
889f14a64f
commit
d83f370fb4
1 changed files with 7 additions and 2 deletions
|
|
@ -482,7 +482,8 @@ class GenericPage
|
|||
if (isset($this->tabId))
|
||||
$this->pageTemplate['activeTab'] = $this->tabId;
|
||||
|
||||
header("HTTP/1.0 404 Not Found", true, 404);
|
||||
header('HTTP/1.0 404 Not Found', true, 404);
|
||||
|
||||
$this->display('list-page-generic');
|
||||
exit();
|
||||
}
|
||||
|
|
@ -500,13 +501,17 @@ class GenericPage
|
|||
|
||||
Util::arraySumByKey($this->mysql, DB::Aowow()->getStatistics(), DB::World()->getStatistics());
|
||||
|
||||
header("HTTP/1.0 404 Not Found", true, 404);
|
||||
header('HTTP/1.0 404 Not Found', true, 404);
|
||||
|
||||
$this->display('list-page-generic');
|
||||
exit();
|
||||
}
|
||||
|
||||
public function maintenance() // display brb gnomes
|
||||
{
|
||||
header('HTTP/1.0 503 Service Temporarily Unavailable', true, 503);
|
||||
header('Retry-After: '.(3 * HOURS));
|
||||
|
||||
$this->display('maintenance');
|
||||
exit();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue