Clean admin pages

This commit is contained in:
nemunaire 2015-01-14 11:20:29 +01:00 committed by Nemunaire
parent 8540aa2340
commit efeacf5f22
2 changed files with 15 additions and 18 deletions

View File

@ -2,8 +2,6 @@
if(!defined('ONYX')) exit;
$p = $out[0];
if (count($p) > 2)
{
switch($p[2])

View File

@ -2,11 +2,16 @@
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
{
if (isset($p[2]))
@ -53,17 +58,11 @@ try
$template->assign("ex", $exercice);
}
}
catch (ThemeNotFoundException $e)
{
} catch (ThemeNotFoundException $e) {
return "404";
}
catch(ExerciceNotFoundException $e)
{
} catch(ExerciceNotFoundException $e) {
return "404";
}
catch(ExerciceNotFoundException $e)
{
} catch(ExerciceNotFoundException $e) {
return "404";
}