auth->check_module_permissions('designer'); if($_SESSION["s"]["user"]["typ"] != "admin") die("Admin permissions required."); $app->uses('tpl'); $app->tpl->newTemplate("form.tpl.htm"); $app->tpl->setInclude('content_tpl','templates/module_show.htm'); $module_name = $_REQUEST["id"]; if(!preg_match('/^[A-Za-z0-9_]{0,50}$/',$module_name)) die("id contains invalid chars."); include_once("../".$module_name."/lib/module.conf.php"); $navi = $module["nav"]; unset($module["nav"]); $record = $module; // loading language file $lng_file = "lib/lang/".$_SESSION["s"]["user"]["language"]."_module_show.lng"; include($lng_file); $app->tpl->setVar($wb); // baue Modul navi $content = ""; $n1 = 0; $n2 = 0; if(is_array($navi)) { foreach($navi as $nav_id => $section) { $content .= "
$section[title] | |
Bereich: | |
Titel: | |
Ziel: | |
Link: | |
$item[title] | |