... | ... |
@@ -2,14 +2,11 @@ |
2 | 2 |
/* |
3 | 3 |
This file belongs to the Webinterface of schokokeks.org Hosting |
4 | 4 |
|
5 |
-Written 2008-2018 by schokokeks.org Hosting, namely |
|
5 |
+Written by schokokeks.org Hosting, namely |
|
6 | 6 |
Bernd Wurst <bernd@schokokeks.org> |
7 | 7 |
Hanno Böck <hanno@schokokeks.org> |
8 | 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/ |
|
9 |
+This code is published under a 0BSD license. |
|
13 | 10 |
|
14 | 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. |
15 | 12 |
*/ |
... | ... |
@@ -19,9 +19,9 @@ require_once('include/certs.php'); |
19 | 19 |
$role = $_SESSION['role']; |
20 | 20 |
|
21 | 21 |
if ($role & ROLE_SYSTEMUSER) { |
22 |
- $menu["vhosts_vhosts"] = array("label" => "Websites", "file" => "vhosts", "weight" => 2); |
|
22 |
+ $menu["vhosts_vhosts"] = ["label" => "Websites", "file" => "vhosts", "weight" => 2]; |
|
23 | 23 |
|
24 | 24 |
if (user_has_manual_certs() or ($section == 'vhosts_certs')) { |
25 |
- $menu["vhosts_certs"] = array("label" => "TLS-Zertifikate", "file" => "certs", "weight" => 10, "submenu" => "vhosts_vhosts"); |
|
25 |
+ $menu["vhosts_certs"] = ["label" => "TLS-Zertifikate", "file" => "certs", "weight" => 10, "submenu" => "vhosts_vhosts"]; |
|
26 | 26 |
} |
27 | 27 |
} |
... | ... |
@@ -20,7 +20,6 @@ $role = $_SESSION['role']; |
20 | 20 |
|
21 | 21 |
if ($role & ROLE_SYSTEMUSER) { |
22 | 22 |
$menu["vhosts_vhosts"] = array("label" => "Websites", "file" => "vhosts", "weight" => 2); |
23 |
- $menu["vhosts_stats"] = array("label" => "Zugriffs-Statistiken", "file" => "stats", "weight" => 12, "submenu" => "vhosts_vhosts"); |
|
24 | 23 |
|
25 | 24 |
if (user_has_manual_certs() or ($section == 'vhosts_certs')) { |
26 | 25 |
$menu["vhosts_certs"] = array("label" => "TLS-Zertifikate", "file" => "certs", "weight" => 10, "submenu" => "vhosts_vhosts"); |
... | ... |
@@ -21,7 +21,7 @@ $role = $_SESSION['role']; |
21 | 21 |
if ($role & ROLE_SYSTEMUSER) { |
22 | 22 |
$menu["vhosts_vhosts"] = array("label" => "Websites", "file" => "vhosts", "weight" => 2); |
23 | 23 |
$menu["vhosts_stats"] = array("label" => "Zugriffs-Statistiken", "file" => "stats", "weight" => 12, "submenu" => "vhosts_vhosts"); |
24 |
- |
|
24 |
+ |
|
25 | 25 |
if (user_has_manual_certs() or ($section == 'vhosts_certs')) { |
26 | 26 |
$menu["vhosts_certs"] = array("label" => "TLS-Zertifikate", "file" => "certs", "weight" => 10, "submenu" => "vhosts_vhosts"); |
27 | 27 |
} |
... | ... |
@@ -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. |
... | ... |
@@ -18,14 +18,11 @@ require_once('include/certs.php'); |
18 | 18 |
|
19 | 19 |
$role = $_SESSION['role']; |
20 | 20 |
|
21 |
-if ($role & ROLE_SYSTEMUSER) |
|
22 |
-{ |
|
21 |
+if ($role & ROLE_SYSTEMUSER) { |
|
23 | 22 |
$menu["vhosts_vhosts"] = array("label" => "Websites", "file" => "vhosts", "weight" => 2); |
24 | 23 |
$menu["vhosts_stats"] = array("label" => "Zugriffs-Statistiken", "file" => "stats", "weight" => 12, "submenu" => "vhosts_vhosts"); |
25 | 24 |
|
26 | 25 |
if (user_has_manual_certs() or ($section == 'vhosts_certs')) { |
27 |
- $menu["vhosts_certs"] = array("label" => "TLS-Zertifikate", "file" => "certs", "weight" => 10, "submenu" => "vhosts_vhosts"); |
|
26 |
+ $menu["vhosts_certs"] = array("label" => "TLS-Zertifikate", "file" => "certs", "weight" => 10, "submenu" => "vhosts_vhosts"); |
|
28 | 27 |
} |
29 | 28 |
} |
30 |
- |
|
31 |
-?> |
... | ... |
@@ -14,13 +14,18 @@ http://creativecommons.org/publicdomain/zero/1.0/ |
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. |
15 | 15 |
*/ |
16 | 16 |
|
17 |
+require_once('include/certs.php'); |
|
18 |
+ |
|
17 | 19 |
$role = $_SESSION['role']; |
18 | 20 |
|
19 | 21 |
if ($role & ROLE_SYSTEMUSER) |
20 | 22 |
{ |
21 | 23 |
$menu["vhosts_vhosts"] = array("label" => "Websites", "file" => "vhosts", "weight" => 2); |
22 |
- $menu["vhosts_certs"] = array("label" => "SSL-Zertifikate", "file" => "certs", "weight" => 10, "submenu" => "vhosts_vhosts"); |
|
23 | 24 |
$menu["vhosts_stats"] = array("label" => "Zugriffs-Statistiken", "file" => "stats", "weight" => 12, "submenu" => "vhosts_vhosts"); |
25 |
+ |
|
26 |
+ if (user_has_manual_certs() or ($section == 'vhosts_certs')) { |
|
27 |
+ $menu["vhosts_certs"] = array("label" => "TLS-Zertifikate", "file" => "certs", "weight" => 10, "submenu" => "vhosts_vhosts"); |
|
28 |
+ } |
|
24 | 29 |
} |
25 | 30 |
|
26 | 31 |
?> |
... | ... |
@@ -18,7 +18,7 @@ $role = $_SESSION['role']; |
18 | 18 |
|
19 | 19 |
if ($role & ROLE_SYSTEMUSER) |
20 | 20 |
{ |
21 |
- $menu["vhosts_vhosts"] = array("label" => "Webserver", "file" => "vhosts", "weight" => 2); |
|
21 |
+ $menu["vhosts_vhosts"] = array("label" => "Websites", "file" => "vhosts", "weight" => 2); |
|
22 | 22 |
$menu["vhosts_certs"] = array("label" => "SSL-Zertifikate", "file" => "certs", "weight" => 10, "submenu" => "vhosts_vhosts"); |
23 | 23 |
$menu["vhosts_stats"] = array("label" => "Zugriffs-Statistiken", "file" => "stats", "weight" => 12, "submenu" => "vhosts_vhosts"); |
24 | 24 |
} |
... | ... |
@@ -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@1723 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -4,7 +4,7 @@ $role = $_SESSION['role']; |
4 | 4 |
|
5 | 5 |
if ($role & ROLE_SYSTEMUSER) |
6 | 6 |
{ |
7 |
- $menu["vhosts_vhosts"] = array("label" => "Webserver", "file" => "vhosts", "weight" => 1); |
|
7 |
+ $menu["vhosts_vhosts"] = array("label" => "Webserver", "file" => "vhosts", "weight" => 2); |
|
8 | 8 |
$menu["vhosts_certs"] = array("label" => "SSL-Zertifikate", "file" => "certs", "weight" => 10, "submenu" => "vhosts_vhosts"); |
9 | 9 |
$menu["vhosts_stats"] = array("label" => "Zugriffs-Statistiken", "file" => "stats", "weight" => 12, "submenu" => "vhosts_vhosts"); |
10 | 10 |
} |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1615 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -6,6 +6,7 @@ if ($role & ROLE_SYSTEMUSER) |
6 | 6 |
{ |
7 | 7 |
$menu["vhosts_vhosts"] = array("label" => "Webserver", "file" => "vhosts", "weight" => 1); |
8 | 8 |
$menu["vhosts_certs"] = array("label" => "SSL-Zertifikate", "file" => "certs", "weight" => 10, "submenu" => "vhosts_vhosts"); |
9 |
+ $menu["vhosts_stats"] = array("label" => "Zugriffs-Statistiken", "file" => "stats", "weight" => 12, "submenu" => "vhosts_vhosts"); |
|
9 | 10 |
} |
10 | 11 |
|
11 | 12 |
?> |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1421 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -5,6 +5,7 @@ $role = $_SESSION['role']; |
5 | 5 |
if ($role & ROLE_SYSTEMUSER) |
6 | 6 |
{ |
7 | 7 |
$menu["vhosts_vhosts"] = array("label" => "Webserver", "file" => "vhosts", "weight" => 1); |
8 |
+ $menu["vhosts_certs"] = array("label" => "SSL-Zertifikate", "file" => "certs", "weight" => 10, "submenu" => "vhosts_vhosts"); |
|
8 | 9 |
} |
9 | 10 |
|
10 | 11 |
?> |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1128 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -4,7 +4,7 @@ $role = $_SESSION['role']; |
4 | 4 |
|
5 | 5 |
if ($role & ROLE_SYSTEMUSER) |
6 | 6 |
{ |
7 |
- $menu["vhosts_vhosts"] = array("label" => "Webserver", "file" => "vhosts.php", "weight" => 1); |
|
7 |
+ $menu["vhosts_vhosts"] = array("label" => "Webserver", "file" => "vhosts", "weight" => 1); |
|
8 | 8 |
} |
9 | 9 |
|
10 | 10 |
?> |
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_SYSTEMUSER) |
... | ... |
@@ -9,8 +7,4 @@ if ($role & ROLE_SYSTEMUSER) |
9 | 7 |
$menu["vhosts_vhosts"] = array("label" => "Webserver", "file" => "vhosts.php", "weight" => 1); |
10 | 8 |
} |
11 | 9 |
|
12 |
-if (empty($menu)) |
|
13 |
- $menu = false; |
|
14 |
- |
|
15 |
- |
|
16 | 10 |
?> |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@670 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -6,7 +6,7 @@ $role = $_SESSION['role']; |
6 | 6 |
|
7 | 7 |
if ($role & ROLE_SYSTEMUSER) |
8 | 8 |
{ |
9 |
- $menu["vhosts_vhosts"] = array("label" => "Webserver-Subdomains", "file" => "vhosts.php", "weight" => 1); |
|
9 |
+ $menu["vhosts_vhosts"] = array("label" => "Webserver", "file" => "vhosts.php", "weight" => 1); |
|
10 | 10 |
} |
11 | 11 |
|
12 | 12 |
if (empty($menu)) |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@647 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -6,7 +6,7 @@ $role = $_SESSION['role']; |
6 | 6 |
|
7 | 7 |
if ($role & ROLE_SYSTEMUSER) |
8 | 8 |
{ |
9 |
- $menu["vhosts_vhosts"] = array("label" => "Subdomains", "file" => "vhosts.php", "weight" => 1); |
|
9 |
+ $menu["vhosts_vhosts"] = array("label" => "Webserver-Subdomains", "file" => "vhosts.php", "weight" => 1); |
|
10 | 10 |
} |
11 | 11 |
|
12 | 12 |
if (empty($menu)) |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@600 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -6,7 +6,7 @@ $role = $_SESSION['role']; |
6 | 6 |
|
7 | 7 |
if ($role & ROLE_SYSTEMUSER) |
8 | 8 |
{ |
9 |
- $menu["vhosts_vhosts"] = array("label" => "Webserver (VHosts)", "file" => "vhosts.php", "weight" => 1); |
|
9 |
+ $menu["vhosts_vhosts"] = array("label" => "Subdomains", "file" => "vhosts.php", "weight" => 1); |
|
10 | 10 |
} |
11 | 11 |
|
12 | 12 |
if (empty($menu)) |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@593 87cf0b9e-d624-0410-a070-f6ee81989793
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,16 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+$menu = array(); |
|
4 |
+ |
|
5 |
+$role = $_SESSION['role']; |
|
6 |
+ |
|
7 |
+if ($role & ROLE_SYSTEMUSER) |
|
8 |
+{ |
|
9 |
+ $menu["vhosts_vhosts"] = array("label" => "Webserver (VHosts)", "file" => "vhosts.php", "weight" => 1); |
|
10 |
+} |
|
11 |
+ |
|
12 |
+if (empty($menu)) |
|
13 |
+ $menu = false; |
|
14 |
+ |
|
15 |
+ |
|
16 |
+?> |