ce0caaf4a67def494ea8ed9153053f062bb26ff2
bernd webinterface => /webinterface

bernd authored 17 years ago

1) <?php
2) 
bernd Menü-Includes sinnvoller /...

bernd authored 17 years ago

3) $menu = array();
4) 
bernd webinterface => /webinterface

bernd authored 17 years ago

5) $role = $_SESSION['role'];
6) 
bernd Auch mailaccounts können si...

bernd authored 17 years ago

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

bernd authored 17 years ago

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

bernd authored 17 years ago

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

bernd authored 17 years ago

16) }
17) 
bernd Menü-Includes sinnvoller /...

bernd authored 17 years ago

18) if (empty($menu))
19)   $menu = false;
20) 
21)