83f1505a9ad5e6279afc96cc3d0d8cd8db622508
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) {
9)   $menu["email_vmail"] = array("label" => "E-Mail", "file" => "vmail.php", "weight" => 3);
10) }
11) if ($role & (ROLE_VMAIL_ACCOUNT | ROLE_MAILACCOUNT))
12) {
13)   $menu['email_chpass'] = array("label" => "Passwort ändern", "file" => "chpass.php", "weight" => 15);
14) }
15) if ($role & ROLE_SYSTEMUSER) {
16)   $menu["email_domains"] = array("label" => "Mail-Verwaltung", "file" => "domains.php", "weight" => 2, "submenu" => "domains_domains");
17) }
18) if ($role & ROLE_SYSTEMUSER && (user_has_accounts() || ! user_has_vmail_domain() || user_has_regular_domain() ) )
19) {
bernd IMAP ganz nach unten

bernd authored 16 years ago

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