Generate error pages
This commit is contained in:
parent
e4106ef46c
commit
5e8781baf7
6 changed files with 72 additions and 24 deletions
|
@ -217,6 +217,11 @@ else
|
|||
{
|
||||
if ($n == 0)
|
||||
$page = require("public/home.php");
|
||||
else if ($n && $p[0] == "errors")
|
||||
{
|
||||
$template->assign("err", intval($p[1]));
|
||||
$page = "err";
|
||||
}
|
||||
else if ($n == 1)
|
||||
{
|
||||
$TEAM = intval(substr($p[0], 0, strpos($p[0], "-")));
|
||||
|
@ -232,7 +237,7 @@ else
|
|||
if (empty($page) || $page == "404" || ! file_exists(ONYX . "/tpl/bootstrap/".$page.".tpl"))
|
||||
{
|
||||
$template->assign("err", 404);
|
||||
$template->display("404.tpl");
|
||||
$template->display("err.tpl");
|
||||
}
|
||||
else
|
||||
$template->display($page.".tpl");
|
||||
|
|
Reference in a new issue