0d1b76072a5fdddb7ac45b1d3bc414d6365aadac
bernd webinterface => /webinterface

bernd authored 17 years ago

1) <?php
2) 
3) if (! defined("TOP_INCLUDED"))
4) {
5) 
6) define("TOP_INCLUDED", true);
7) 
8) require_once("config.php");
9) global $config; 
10) require_once("inc/error.php");
11) global $prefix;
12) 
13) $menuitem = array();
14) $weighted_menuitem = array();
15) 
16) foreach ($config['modules'] as $module)
17) {
18)   $menu = array();
19)   include("modules/$module/menu.php");
20)   // $menu["foo"]["file"] enthält den Link
21)   foreach (array_keys($menu) as $key)
22)   {
23)     $menu[$key]["file"] = $prefix."go/".$module."/".$menu[$key]["file"];
24)     $weight = $menu[$key]["weight"];
25)     if (array_key_exists($weight, $weighted_menuitem))
bernd Neues Modul für "Kunde werden"

bernd authored 16 years ago

26)       $weighted_menuitem[$weight] = array_merge($weighted_menuitem[$weight], array($key => $menu[$key]));
bernd webinterface => /webinterface

bernd authored 17 years ago

27)     else
28)       $weighted_menuitem[$weight] = array($key => $menu[$key]);
29)   }
30)   $menuitem = array_merge($menuitem, $menu);
31) }
32) 
33) ksort($weighted_menuitem);
34) DEBUG(print_r($weighted_menuitem, true));
35) 
36) 
37) 
38) /*
39) $menuitem["index"]["label"] = "&Uuml;bersicht";
40) $menuitem["index"]["file"] = "index.php";
41) 
42) 
43) $menuitem["domains"]["label"] = "Domains";
44) $menuitem["domains"]["file"] = "domains.php";
45) 
46) 
47) $menuitem["mail"]["label"] = "E-Mail";
48) $menuitem["mail"]["file"] = "mail.php";
49) 
50) $menuitem["chpass"]["label"] = "Passwort &auml;ndern";
51) $menuitem["chpass"]["file"] = "chpass.php";
52) 
53) 
54) $menuitem["logout"]["label"] = "Abmelden";
55) $menuitem["logout"]["file"] = "logout.php";
56) 
57) */
58) 
59) 
60) ?>
bernd Neues Modul für "Kunde werden"

bernd authored 16 years ago

61) <?php echo '<?xml version="1.0" encoding="utf-8"?>'."\n"; ?>