server/onyx/include/admin/exercice.php

21 lines
345 B
PHP
Raw Normal View History

2013-11-28 21:03:27 +00:00
<?php
if(!defined('ONYX')) exit;
$p = $out[0];
if (isset($p[2]))
2013-12-01 19:03:20 +00:00
{
$tmp = explode("-", $p[2]);
$id = intval($tmp[0]);
if ($id == 0)
return "404";
$theme = new Theme($id);
$template->assign("theme", $theme);
}
2013-11-28 21:03:27 +00:00
if (isset($p[3]))
2013-12-01 19:03:20 +00:00
$template->assign("ex", new Exercice($p[3], $theme));
2013-11-28 21:03:27 +00:00
2013-12-01 19:03:20 +00:00
return SALT_ADMIN."/exercice";