deedc3e35d94c0d716ccb63996c7d4cafd95267d
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) 
7) switch ($role)
8) {
9)   case ROLE_SYSTEMUSER:
10)     $menu["imap_accounts"] = array("label" => "IMAP/POP3", "file" => "accounts.php", "weight" => 10);
11)     
12) }
13) 
bernd MenĂ¼-Includes sinnvoller /...

bernd authored 16 years ago

14) if (empty($menu))
15)   $menu = false;
16) 
17)