dcc202fb249a446ac15c7cf413b9f1b4a3f31b58
bernd Großer VMail-move

bernd authored 16 years ago

1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

5) Written by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

9) This code is published under a 0BSD license.
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

10) 
11) Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
12) */
bernd Großer VMail-move

bernd authored 16 years ago

13) 
14) $role = $_SESSION['role'];
15) 
16) require_once('include/hasdomain.php');
17) require_once('include/hasaccount.php');
18) 
19) if ($role & ROLE_SYSTEMUSER) {
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

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

bernd authored 16 years ago

21) }
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

22) if ($role & ROLE_VMAIL_ACCOUNT) {
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

23)     $menu['email_edit'] = ["label" => "Einstellungen", "file" => "edit", "weight" => 10];
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

24) }
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

25) if ($role & (ROLE_VMAIL_ACCOUNT | ROLE_MAILACCOUNT)) {
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

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

bernd authored 16 years ago

27) }
28) if ($role & ROLE_SYSTEMUSER) {
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

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

bernd authored 16 years ago

30) }
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

31) if ($role & ROLE_SYSTEMUSER && (user_has_accounts() || ! user_has_vmail_domain() || user_has_dotcourier_domain())) {
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

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