Page/Header

* send 404 if an incorrect page or typeId was requested
This commit is contained in:
Sarjuuk
2017-01-08 22:58:46 +01:00
parent 8a01124eed
commit 8fd52835a6

View File

@@ -433,6 +433,7 @@ class GenericPage
if (isset($this->tabId))
$this->pageTemplate['activeTab'] = $this->tabId;
header("HTTP/1.0 404 Not Found", true, 404);
$this->display('text-page-generic');
exit();
}
@@ -450,6 +451,7 @@ class GenericPage
Util::arraySumByKey($this->mysql, DB::Aowow()->getStatistics(), DB::World()->getStatistics());
header("HTTP/1.0 404 Not Found", true, 404);
$this->display('text-page-generic');
exit();
}