... | ... |
@@ -8,7 +8,7 @@ Written 2008-2018 by schokokeks.org Hosting, namely |
8 | 8 |
|
9 | 9 |
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. |
10 | 10 |
|
11 |
-You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see |
|
11 |
+You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see |
|
12 | 12 |
http://creativecommons.org/publicdomain/zero/1.0/ |
13 | 13 |
|
14 | 14 |
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. |
... | ... |
@@ -17,17 +17,15 @@ Nevertheless, in case you use a significant part of this code, we ask (but not r |
17 | 17 |
$role = $_SESSION['role']; |
18 | 18 |
|
19 | 19 |
if ($role == ROLE_ANONYMOUS) { |
20 |
- $menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0); |
|
20 |
+ $menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0); |
|
21 | 21 |
} else { |
22 |
- if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER | ROLE_VMAIL_ACCOUNT)) |
|
23 |
- $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index"); |
|
24 |
- if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) { |
|
25 |
- $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98); |
|
26 |
- } |
|
27 |
- |
|
28 |
- $menu["index_logout"] = array("label" => "Logout", "file" => "logout", "weight" => 99); |
|
29 |
- $menu["index_index"] = array("label" => "Übersicht", "file" => "index", "weight" => 0); |
|
22 |
+ if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER | ROLE_VMAIL_ACCOUNT)) { |
|
23 |
+ $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index"); |
|
24 |
+ } |
|
25 |
+ if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) { |
|
26 |
+ $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98); |
|
27 |
+ } |
|
28 |
+ |
|
29 |
+ $menu["index_logout"] = array("label" => "Logout", "file" => "logout", "weight" => 99); |
|
30 |
+ $menu["index_index"] = array("label" => "Übersicht", "file" => "index", "weight" => 0); |
|
30 | 31 |
} |
31 |
- |
|
32 |
- |
|
33 |
-?> |
... | ... |
@@ -18,7 +18,6 @@ $role = $_SESSION['role']; |
18 | 18 |
|
19 | 19 |
if ($role == ROLE_ANONYMOUS) { |
20 | 20 |
$menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0); |
21 |
- $menu["certlogin"] = array("label" => "Zertifikat-Login", "file" => "certlogin", "weight" => 10); |
|
22 | 21 |
} else { |
23 | 22 |
if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER | ROLE_VMAIL_ACCOUNT)) |
24 | 23 |
$menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index"); |
... | ... |
@@ -25,9 +25,6 @@ if ($role == ROLE_ANONYMOUS) { |
25 | 25 |
if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) { |
26 | 26 |
$menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98); |
27 | 27 |
} |
28 |
- if ($role & ROLE_CUSTOMER) { |
|
29 |
- $menu["index_chdetails"] = array("label" => "Adressen ändern", "file" => "chdetails", "weight" => 1, "submenu" => "index_index"); |
|
30 |
- } |
|
31 | 28 |
|
32 | 29 |
$menu["index_logout"] = array("label" => "Logout", "file" => "logout", "weight" => 99); |
33 | 30 |
$menu["index_index"] = array("label" => "Übersicht", "file" => "index", "weight" => 0); |
... | ... |
@@ -25,6 +25,9 @@ if ($role == ROLE_ANONYMOUS) { |
25 | 25 |
if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) { |
26 | 26 |
$menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98); |
27 | 27 |
} |
28 |
+ if ($role & ROLE_CUSTOMER) { |
|
29 |
+ $menu["index_chdetails"] = array("label" => "Adressen ändern", "file" => "chdetails", "weight" => 1, "submenu" => "index_index"); |
|
30 |
+ } |
|
28 | 31 |
|
29 | 32 |
$menu["index_logout"] = array("label" => "Logout", "file" => "logout", "weight" => 99); |
30 | 33 |
$menu["index_index"] = array("label" => "Übersicht", "file" => "index", "weight" => 0); |
... | ... |
@@ -18,7 +18,7 @@ $role = $_SESSION['role']; |
18 | 18 |
|
19 | 19 |
if ($role == ROLE_ANONYMOUS) { |
20 | 20 |
$menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0); |
21 |
- $menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 10); |
|
21 |
+ $menu["certlogin"] = array("label" => "Zertifikat-Login", "file" => "certlogin", "weight" => 10); |
|
22 | 22 |
} else { |
23 | 23 |
if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER | ROLE_VMAIL_ACCOUNT)) |
24 | 24 |
$menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index"); |
... | ... |
@@ -1,4 +1,18 @@ |
1 | 1 |
<?php |
2 |
+/* |
|
3 |
+This file belongs to the Webinterface of schokokeks.org Hosting |
|
4 |
+ |
|
5 |
+Written 2008-2012 by schokokeks.org Hosting, namely |
|
6 |
+ Bernd Wurst <bernd@schokokeks.org> |
|
7 |
+ Hanno Böck <hanno@schokokeks.org> |
|
8 |
+ |
|
9 |
+To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. |
|
10 |
+ |
|
11 |
+You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see |
|
12 |
+http://creativecommons.org/publicdomain/zero/1.0/ |
|
13 |
+ |
|
14 |
+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. |
|
15 |
+*/ |
|
2 | 16 |
|
3 | 17 |
$role = $_SESSION['role']; |
4 | 18 |
|
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@2217 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -6,7 +6,7 @@ if ($role == ROLE_ANONYMOUS) { |
6 | 6 |
$menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0); |
7 | 7 |
$menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 10); |
8 | 8 |
} else { |
9 |
- if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER)) |
|
9 |
+ if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER | ROLE_VMAIL_ACCOUNT)) |
|
10 | 10 |
$menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index"); |
11 | 11 |
if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) { |
12 | 12 |
$menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98); |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1824 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -8,7 +8,7 @@ if ($role == ROLE_ANONYMOUS) { |
8 | 8 |
} else { |
9 | 9 |
if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER)) |
10 | 10 |
$menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index"); |
11 |
- if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER) && ! $role & ROLE_SUBUSER) { |
|
11 |
+ if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) { |
|
12 | 12 |
$menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98); |
13 | 13 |
} |
14 | 14 |
|
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1823 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -6,7 +6,7 @@ if ($role == ROLE_ANONYMOUS) { |
6 | 6 |
$menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0); |
7 | 7 |
$menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 10); |
8 | 8 |
} else { |
9 |
- if ($role & ROLE_SYSTEMUSER && ! ($role & ROLE_SUBUSER)) |
|
9 |
+ if ($role & (ROLE_SYSTEMUSER | ROLE_SUBUSER)) |
|
10 | 10 |
$menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index"); |
11 | 11 |
if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER) && ! $role & ROLE_SUBUSER) { |
12 | 12 |
$menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98); |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1822 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -6,9 +6,9 @@ if ($role == ROLE_ANONYMOUS) { |
6 | 6 |
$menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0); |
7 | 7 |
$menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 10); |
8 | 8 |
} else { |
9 |
- if ($role & ROLE_SYSTEMUSER) |
|
9 |
+ if ($role & ROLE_SYSTEMUSER && ! ($role & ROLE_SUBUSER)) |
|
10 | 10 |
$menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index"); |
11 |
- if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) { |
|
11 |
+ if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER) && ! $role & ROLE_SUBUSER) { |
|
12 | 12 |
$menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98); |
13 | 13 |
} |
14 | 14 |
|
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1809 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -4,10 +4,10 @@ $role = $_SESSION['role']; |
4 | 4 |
|
5 | 5 |
if ($role == ROLE_ANONYMOUS) { |
6 | 6 |
$menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0); |
7 |
- $menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 0); |
|
7 |
+ $menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 10); |
|
8 | 8 |
} else { |
9 | 9 |
if ($role & ROLE_SYSTEMUSER) |
10 |
- $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 0, "submenu" => "index_index"); |
|
10 |
+ $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 10, "submenu" => "index_index"); |
|
11 | 11 |
if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) { |
12 | 12 |
$menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98); |
13 | 13 |
} |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1291 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -6,6 +6,8 @@ if ($role == ROLE_ANONYMOUS) { |
6 | 6 |
$menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0); |
7 | 7 |
$menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 0); |
8 | 8 |
} else { |
9 |
+ if ($role & ROLE_SYSTEMUSER) |
|
10 |
+ $menu["index_cert"] = array("label" => "Client-Zertifikat", "file" => "cert", "weight" => 0, "submenu" => "index_index"); |
|
9 | 11 |
if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) { |
10 | 12 |
$menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98); |
11 | 13 |
} |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1290 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -4,6 +4,7 @@ $role = $_SESSION['role']; |
4 | 4 |
|
5 | 5 |
if ($role == ROLE_ANONYMOUS) { |
6 | 6 |
$menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0); |
7 |
+ $menu["certlogin"] = array("label" => "Client-Zertifikat", "file" => "certinfo", "weight" => 0); |
|
7 | 8 |
} else { |
8 | 9 |
if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) { |
9 | 10 |
$menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98); |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1128 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -3,14 +3,14 @@ |
3 | 3 |
$role = $_SESSION['role']; |
4 | 4 |
|
5 | 5 |
if ($role == ROLE_ANONYMOUS) { |
6 |
- $menu["index_login"] = array("label" => "Login", "file" => "index.php", "weight" => 0); |
|
6 |
+ $menu["index_login"] = array("label" => "Login", "file" => "index", "weight" => 0); |
|
7 | 7 |
} else { |
8 | 8 |
if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) { |
9 |
- $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass.php", "weight" => 98); |
|
9 |
+ $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass", "weight" => 98); |
|
10 | 10 |
} |
11 | 11 |
|
12 |
- $menu["index_logout"] = array("label" => "Logout", "file" => "logout.php", "weight" => 99); |
|
13 |
- $menu["index_index"] = array("label" => "Übersicht", "file" => "index.php", "weight" => 0); |
|
12 |
+ $menu["index_logout"] = array("label" => "Logout", "file" => "logout", "weight" => 99); |
|
13 |
+ $menu["index_index"] = array("label" => "Übersicht", "file" => "index", "weight" => 0); |
|
14 | 14 |
} |
15 | 15 |
|
16 | 16 |
|
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@845 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -1,7 +1,5 @@ |
1 | 1 |
<?php |
2 | 2 |
|
3 |
-$menu = array(); |
|
4 |
- |
|
5 | 3 |
$role = $_SESSION['role']; |
6 | 4 |
|
7 | 5 |
if ($role == ROLE_ANONYMOUS) { |
... | ... |
@@ -15,8 +13,5 @@ if ($role == ROLE_ANONYMOUS) { |
15 | 13 |
$menu["index_index"] = array("label" => "Übersicht", "file" => "index.php", "weight" => 0); |
16 | 14 |
} |
17 | 15 |
|
18 |
-if (empty($menu)) |
|
19 |
- $menu = false; |
|
20 |
- |
|
21 | 16 |
|
22 | 17 |
?> |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@625 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -4,16 +4,15 @@ $menu = array(); |
4 | 4 |
|
5 | 5 |
$role = $_SESSION['role']; |
6 | 6 |
|
7 |
-switch ($role) |
|
8 |
-{ |
|
9 |
- case ROLE_ANONYMOUS: |
|
10 |
- $menu["index_login"] = array("label" => "Login", "file" => "index.php", "weight" => 0); |
|
11 |
- break; |
|
12 |
- default: |
|
13 |
- $menu["index_logout"] = array("label" => "Logout", "file" => "logout.php", "weight" => 99); |
|
7 |
+if ($role == ROLE_ANONYMOUS) { |
|
8 |
+ $menu["index_login"] = array("label" => "Login", "file" => "index.php", "weight" => 0); |
|
9 |
+} else { |
|
10 |
+ if ($role & (ROLE_SYSTEMUSER | ROLE_CUSTOMER)) { |
|
14 | 11 |
$menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass.php", "weight" => 98); |
15 |
- $menu["index_index"] = array("label" => "Übersicht", "file" => "index.php", "weight" => 0); |
|
16 |
- |
|
12 |
+ } |
|
13 |
+ |
|
14 |
+ $menu["index_logout"] = array("label" => "Logout", "file" => "logout.php", "weight" => 99); |
|
15 |
+ $menu["index_index"] = array("label" => "Übersicht", "file" => "index.php", "weight" => 0); |
|
17 | 16 |
} |
18 | 17 |
|
19 | 18 |
if (empty($menu)) |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@526 87cf0b9e-d624-0410-a070-f6ee81989793
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@362 87cf0b9e-d624-0410-a070-f6ee81989793
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,17 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+$role = $_SESSION['role']; |
|
4 |
+ |
|
5 |
+switch ($role) |
|
6 |
+{ |
|
7 |
+ case ROLE_ANONYMOUS: |
|
8 |
+ $menu["index_login"] = array("label" => "Login", "file" => "index.php", "weight" => 0); |
|
9 |
+ break; |
|
10 |
+ default: |
|
11 |
+ $menu["index_logout"] = array("label" => "Logout", "file" => "logout.php", "weight" => 99); |
|
12 |
+ $menu["index_chpass"] = array("label" => "Passwort ändern", "file" => "chpass.php", "weight" => 98); |
|
13 |
+ $menu["index_index"] = array("label" => "Übersicht", "file" => "index.php", "weight" => 0); |
|
14 |
+ |
|
15 |
+} |
|
16 |
+ |
|
17 |
+?> |