mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Page/Header
* send 404 if an incorrect page or typeId was requested
This commit is contained in:
@@ -433,6 +433,7 @@ class GenericPage
|
|||||||
if (isset($this->tabId))
|
if (isset($this->tabId))
|
||||||
$this->pageTemplate['activeTab'] = $this->tabId;
|
$this->pageTemplate['activeTab'] = $this->tabId;
|
||||||
|
|
||||||
|
header("HTTP/1.0 404 Not Found", true, 404);
|
||||||
$this->display('text-page-generic');
|
$this->display('text-page-generic');
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
@@ -450,6 +451,7 @@ class GenericPage
|
|||||||
|
|
||||||
Util::arraySumByKey($this->mysql, DB::Aowow()->getStatistics(), DB::World()->getStatistics());
|
Util::arraySumByKey($this->mysql, DB::Aowow()->getStatistics(), DB::World()->getStatistics());
|
||||||
|
|
||||||
|
header("HTTP/1.0 404 Not Found", true, 404);
|
||||||
$this->display('text-page-generic');
|
$this->display('text-page-generic');
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user