aa811d391f5bf692ebc4a538870a2d261bb1edb6
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 16 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) }
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

11) if ($role & ROLE_VMAIL_ACCOUNT)
12) {
13)   $menu['email_edit'] = array("label" => "Einstellungen", "file" => "edit", "weight" => 10);
14) }
bernd Großer VMail-move

bernd authored 16 years ago

15) if ($role & (ROLE_VMAIL_ACCOUNT | ROLE_MAILACCOUNT))
16) {
bernd eliminate .php extensions f...

bernd authored 16 years ago

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

bernd authored 16 years ago

18) }
19) if ($role & ROLE_SYSTEMUSER) {
bernd Menü-Reihenfolge sinnvoller

bernd authored 15 years ago

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

bernd authored 16 years ago

21) }
bernd IMAP/POP3 nur anzeigen wenn...

bernd authored 14 years ago

22) if ($role & ROLE_SYSTEMUSER && (user_has_accounts() || ! user_has_vmail_domain() || user_has_dotcourier_domain() ) )
bernd Großer VMail-move

bernd authored 16 years ago

23) {
bernd eliminate .php extensions f...

bernd authored 16 years ago

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