modules/index/menu.php
defbfa55
 <?php
 
 $role = $_SESSION['role'];
 
ce0caaf4
 if ($role == ROLE_ANONYMOUS) {
63a0529b
   $menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0);
fab82227
   $menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 10);
ce0caaf4
 } else {
f89f9cae
   if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER))
fab82227
     $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index");
3d226dfe
   if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) {
63a0529b
     $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98);
ce0caaf4
   }
 
63a0529b
   $menu["index_logout"] = array("label" => "Logout", "file" => "logout", "weight" => 99);
   $menu["index_index"] = array("label" => "√úbersicht", "file" => "index", "weight" => 0);
defbfa55
 }
 
deedc3e3
 
defbfa55
 ?>