475a8c30cfba78f17a90e40443793406e6dabef5
bernd webinterface => /webinterface

bernd authored 17 years ago

1) <?php
2) 
3) $role = $_SESSION['role'];
4) 
bernd Auch mailaccounts können si...

bernd authored 16 years ago

5) if ($role == ROLE_ANONYMOUS) {
6)   $menu["index_login"] = array("label" => "Login", "file" => "index.php", "weight" => 0);
7) } else {
8)   if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) {
bernd webinterface => /webinterface

bernd authored 17 years ago

9)     $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass.php", "weight" => 98);
bernd Auch mailaccounts können si...

bernd authored 16 years ago

10)   }
11) 
12)   $menu["index_logout"] = array("label" => "Logout", "file" => "logout.php", "weight" => 99);
13)   $menu["index_index"] = array("label" => "Übersicht", "file" => "index.php", "weight" => 0);
bernd webinterface => /webinterface

bernd authored 17 years ago

14) }
15) 
bernd Menü-Includes sinnvoller /...

bernd authored 16 years ago

16)