modules/index/menu.php
defbfa55
 <?php
 
deedc3e3
 $menu = array();
 
defbfa55
 $role = $_SESSION['role'];
 
ce0caaf4
 if ($role == ROLE_ANONYMOUS) {
   $menu["index_login"] = array("label" => "Login", "file" => "index.php", "weight" => 0);
 } else {
   if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) {
defbfa55
     $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass.php", "weight" => 98);
ce0caaf4
   }
 
   $menu["index_logout"] = array("label" => "Logout", "file" => "logout.php", "weight" => 99);
   $menu["index_index"] = array("label" => "√úbersicht", "file" => "index.php", "weight" => 0);
defbfa55
 }
 
deedc3e3
 if (empty($menu))
   $menu = false;
 
 
defbfa55
 ?>