This repository has been archived on 2025-06-10. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
server/onyx/include/admin/exercice.php
2013-12-01 20:03:20 +01:00

20 lines
345 B
PHP

<?php
if(!defined('ONYX')) exit;
$p = $out[0];
if (isset($p[2]))
{
$tmp = explode("-", $p[2]);
$id = intval($tmp[0]);
if ($id == 0)
return "404";
$theme = new Theme($id);
$template->assign("theme", $theme);
}
if (isset($p[3]))
$template->assign("ex", new Exercice($p[3], $theme));
return SALT_ADMIN."/exercice";