63a0529b21bfd97a4ef395e8d3d3f513526357c6
bernd Großer VMail-move

bernd authored 16 years ago

1) <?php
2) 
3) $role = $_SESSION['role'];
4) 
5) require_once('include/hasdomain.php');
6) require_once('include/hasaccount.php');
7) 
8) if ($role & ROLE_SYSTEMUSER) {
bernd eliminate .php extensions f...

bernd authored 15 years ago

9)   $menu["email_vmail"] = array("label" => "E-Mail", "file" => "vmail", "weight" => 3);
bernd Großer VMail-move

bernd authored 16 years ago

10) }
11) if ($role & (ROLE_VMAIL_ACCOUNT | ROLE_MAILACCOUNT))
12) {
bernd eliminate .php extensions f...

bernd authored 15 years ago

13)   $menu['email_chpass'] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 15);
bernd Großer VMail-move

bernd authored 16 years ago

14) }
15) if ($role & ROLE_SYSTEMUSER) {
bernd eliminate .php extensions f...

bernd authored 15 years ago

16)   $menu["email_domains"] = array("label" => "Mail-Verwaltung", "file" => "domains", "weight" => 2, "submenu" => "domains_domains");
bernd Großer VMail-move

bernd authored 16 years ago

17) }
18) if ($role & ROLE_SYSTEMUSER && (user_has_accounts() || ! user_has_vmail_domain() || user_has_regular_domain() ) )
19) {
bernd eliminate .php extensions f...

bernd authored 15 years ago

20)   $menu["email_imap"] = array("label" => "IMAP/POP3", "file" => "imap", "weight" => 20, 'submenu' => "email_vmail");