uses('tpl'); $app->tpl->newTemplate("form.tpl.htm"); $app->tpl->setInclude('content_tpl','templates/module_list.htm'); // lese Module aus $bgcolor = "#FFFFFF"; $modules_list = array(); $handle = @opendir($conf["rootpath"]."/web"); while ($file = @readdir ($handle)) { if ($file != "." && $file != "..") { if(@is_dir($conf["rootpath"]."/web/".$file)) { if(is_file($conf["rootpath"]."/web/".$file."/lib/module.conf.php") and $file != 'login') { include_once($conf["rootpath"]."/web/".$file."/lib/module.conf.php"); // Farbwechsel $bgcolor = ($bgcolor == "#FFFFFF")?"#EEEEEE":"#FFFFFF"; $modules_list[] = array( 'module' => $module["name"], 'title' => $module["title"], 'bgcolor' => $bgcolor); } } } } $app->tpl->setLoop('records',$modules_list); // loading language file $lng_file = "lib/lang/".$_SESSION["s"]["language"]."_module_list.lng"; include($lng_file); $app->tpl->setVar($wb); $app->tpl_defaults(); $app->tpl->pparse(); ?>