Index)) { $module_title = $ModsArray[$mod]->HeadTitle[$language]; eval ("\${$ModsArray[$mod]->CurrentVar} = \"".gettemplate("menu_current")."\";"); include $ModsArray[$mod]->Index; } else { $ModNotFound = true; } //## //## Now build the menus //## eval ("\$menu = \"".gettemplate("menu")."\";"); eval ("\$footer = \"".gettemplate("footer")."\";"); if ((($ModsArray[$mod]->Flags & 1) > 0) && ($ModsArray[$mod]->AnzSubs > 0)) { $mb_exist = true; $mb_content = ""; for ($i=1;$i<=$ModsArray[$mod]->AnzSubs;$i++) { $mb_title = $ModsArray[$mod]->Title[$language]; $mb_sub = $ModsArray[$mod]->Subs[$i]['Name']; $mb_subtitle = $ModsArray[$mod]->Subs[$i]['Title'][$language]; eval ("\$mb_content .= \"".gettemplate("menubox_row")."\";"); } eval ("\$menubox = \"".gettemplate("menubox")."\";"); } //## //## Now we are save (logged in) //## Write secure code ONLY in the following IF-Brackats //## if($login_status==1) { } //## //## Module not found //## if ($ModNotFound == true) { //$output = "Module: $mod
SubModule: $sub1
"; $output .= $error; } //## //## Build the site //## $textbox = ''; eval ("\$tb_content = \"".gettemplate("textbox_content")."\";"); if ($mb_exist == true) eval ("\$textbox = \"".gettemplate("textbox_normal")."\";"); else eval ("\$textbox = \"".gettemplate("textbox_wide")."\";"); eval("dooutput(\"".gettemplate("main")."\");"); ?>