Clean admin pages
This commit is contained in:
parent
8540aa2340
commit
efeacf5f22
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
if(!defined('ONYX')) exit;
|
if(!defined('ONYX')) exit;
|
||||||
|
|
||||||
$p = $out[0];
|
|
||||||
|
|
||||||
if (count($p) > 2)
|
if (count($p) > 2)
|
||||||
{
|
{
|
||||||
switch($p[2])
|
switch($p[2])
|
||||||
|
@ -2,11 +2,16 @@
|
|||||||
|
|
||||||
if(!defined('ONYX')) exit;
|
if(!defined('ONYX')) exit;
|
||||||
|
|
||||||
$template->assign("fortyp", array("raw" => "RAW", "sha1" => "SHA-1", "md5" => "MD5", "sha224" => "SHA-224", "sha256" => "SHA-256", "sha384" => "SHA-384", "sha512" => "SHA-512", "whirlpool" => "Whirlpool"));
|
$template->assign("fortyp", array(
|
||||||
|
"raw" => "RAW",
|
||||||
|
"sha1" => "SHA-1",
|
||||||
|
"md5" => "MD5",
|
||||||
|
"sha224" => "SHA-224",
|
||||||
|
"sha256" => "SHA-256",
|
||||||
|
"sha384" => "SHA-384",
|
||||||
|
"sha512" => "SHA-512",
|
||||||
|
"whirlpool" => "Whirlpool"));
|
||||||
|
|
||||||
$p = $out[0];
|
|
||||||
|
|
||||||
//TODO maybe move the try catch to index.html ?
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (isset($p[2]))
|
if (isset($p[2]))
|
||||||
@ -53,18 +58,12 @@ try
|
|||||||
|
|
||||||
$template->assign("ex", $exercice);
|
$template->assign("ex", $exercice);
|
||||||
}
|
}
|
||||||
}
|
} catch (ThemeNotFoundException $e) {
|
||||||
catch (ThemeNotFoundException $e)
|
return "404";
|
||||||
{
|
} catch(ExerciceNotFoundException $e) {
|
||||||
return "404";
|
return "404";
|
||||||
}
|
} catch(ExerciceNotFoundException $e) {
|
||||||
catch(ExerciceNotFoundException $e)
|
return "404";
|
||||||
{
|
|
||||||
return "404";
|
|
||||||
}
|
|
||||||
catch(ExerciceNotFoundException $e)
|
|
||||||
{
|
|
||||||
return "404";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return "admin/exercice";
|
return "admin/exercice";
|
||||||
|
Loading…
Reference in New Issue
Block a user