ce0caaf4a67def494ea8ed9153053f062bb26ff2
bernd webinterface => /webinterface

bernd authored 17 years ago

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

bernd authored 16 years ago

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

bernd authored 17 years ago

5) $role = $_SESSION['role'];
6) 
bernd * Initialisierung der Sessi...

bernd authored 16 years ago

7) if ($role & ROLE_SYSTEMUSER)
bernd webinterface => /webinterface

bernd authored 17 years ago

8) {
bernd * Initialisierung der Sessi...

bernd authored 16 years ago

9)   $menu["imap_accounts"] = array("label" => "IMAP/POP3", "file" => "accounts.php", "weight" => 10);
bernd webinterface => /webinterface

bernd authored 17 years ago

10) }
bernd Auch mailaccounts können si...

bernd authored 16 years ago

11) elseif ($role & ROLE_MAILACCOUNT)
12) {
13)   $menu["imap_chpass"] = array("label" => "Passwort ändern", "file" => "chpass.php", "weight" => 10);
14) }
bernd webinterface => /webinterface

bernd authored 17 years ago

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

bernd authored 16 years ago

16) if (empty($menu))
17)   $menu = false;
18) 
19)