$module"); DEBUG($menu); // $menu["foo"]["file"] enthält den Link foreach (array_keys($menu) as $key) { $menu[$key]["file"] = $prefix."go/".$module."/".$menu[$key]["file"]; $weight = $menu[$key]["weight"]; if (isset($menu[$key]['submenu'])) { if (isset($submenu[$menu[$key]['submenu']])) $submenu[$menu[$key]['submenu']] = array_merge($submenu[$menu[$key]['submenu']], array($key => $menu[$key])); else $submenu[$menu[$key]['submenu']] = array($key => $menu[$key]); } else { if (array_key_exists($weight, $weighted_menuitem)) $weighted_menuitem[$weight] = array_merge($weighted_menuitem[$weight], array($key => $menu[$key])); else $weighted_menuitem[$weight] = array($key => $menu[$key]); } } $menuitem = array_merge($menuitem, $menu); } ksort($weighted_menuitem); DEBUG($weighted_menuitem); DEBUG($submenu); /* $menuitem["index"]["label"] = "Übersicht"; $menuitem["index"]["file"] = "index.php"; $menuitem["domains"]["label"] = "Domains"; $menuitem["domains"]["file"] = "domains.php"; $menuitem["mail"]["label"] = "E-Mail"; $menuitem["mail"]["file"] = "mail.php"; $menuitem["chpass"]["label"] = "Passwort ändern"; $menuitem["chpass"]["file"] = "chpass.php"; $menuitem["logout"]["label"] = "Abmelden"; $menuitem["logout"]["file"] = "logout.php"; */ header("Content-Type: {$config['mime_type']}"); ?> '."\n"; ?>
Administration - '.$title.''; else echo '