... | ... |
@@ -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 |
*/ |
... | ... |
@@ -35,7 +35,9 @@ if ($subusers) { |
35 | 35 |
output('<div><p><strong>'.$subuser['username'].'</strong> '.internal_link('delete.php', icon_delete('Löschen'), 'subuser='.$subuser['id']).' '.internal_link('edit.php', icon_edit('Bearbeiten'), 'subuser='.$subuser['id']).'</p>'); |
36 | 36 |
output('<ul>'); |
37 | 37 |
foreach ($subuser['modules'] as $mod) { |
38 |
- output('<li>'.$available_modules[$mod].'</li>'); |
|
38 |
+ if (isset($available_modules[$mod])) { |
|
39 |
+ output('<li>'.$available_modules[$mod].'</li>'); |
|
40 |
+ } |
|
39 | 41 |
} |
40 | 42 |
output('</ul></div>'); |
41 | 43 |
} |
... | ... |
@@ -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. |
... | ... |
@@ -29,22 +29,18 @@ $subusers = list_subusers(); |
29 | 29 |
$available_modules = available_modules(); |
30 | 30 |
DEBUG($available_modules); |
31 | 31 |
|
32 |
-if ($subusers) |
|
33 |
-{ |
|
34 |
- output('<h4>Momentan vorhandene zusätzliche Admin-Zugänge</h4>'); |
|
35 |
- foreach ($subusers as $subuser) { |
|
36 |
- output('<div><p><strong>'.$subuser['username'].'</strong> '.internal_link('delete.php', icon_delete('Löschen'), 'subuser='.$subuser['id']).' '.internal_link('edit.php', icon_edit('Bearbeiten'), 'subuser='.$subuser['id']).'</p>'); |
|
37 |
- output('<ul>'); |
|
38 |
- foreach ($subuser['modules'] as $mod) { |
|
39 |
- output('<li>'.$available_modules[$mod].'</li>'); |
|
32 |
+if ($subusers) { |
|
33 |
+ output('<h4>Momentan vorhandene zusätzliche Admin-Zugänge</h4>'); |
|
34 |
+ foreach ($subusers as $subuser) { |
|
35 |
+ output('<div><p><strong>'.$subuser['username'].'</strong> '.internal_link('delete.php', icon_delete('Löschen'), 'subuser='.$subuser['id']).' '.internal_link('edit.php', icon_edit('Bearbeiten'), 'subuser='.$subuser['id']).'</p>'); |
|
36 |
+ output('<ul>'); |
|
37 |
+ foreach ($subuser['modules'] as $mod) { |
|
38 |
+ output('<li>'.$available_modules[$mod].'</li>'); |
|
39 |
+ } |
|
40 |
+ output('</ul></div>'); |
|
40 | 41 |
} |
41 |
- output('</ul></div>'); |
|
42 |
- } |
|
43 |
- |
|
44 |
-} |
|
45 |
-else |
|
46 |
-{ |
|
47 |
- output('<p><em>Sie haben bisher keine zusätzlichen Admin-Zugänge</em></p>'); |
|
42 |
+} else { |
|
43 |
+ output('<p><em>Sie haben bisher keine zusätzlichen Admin-Zugänge</em></p>'); |
|
48 | 44 |
} |
49 | 45 |
|
50 | 46 |
addnew('edit.php', 'Neuen zusätzlichen Admin-Zugang anlegen...'); |
... | ... |
@@ -1,4 +1,19 @@ |
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 |
+*/ |
|
16 |
+ |
|
2 | 17 |
require_once('inc/icons.php'); |
3 | 18 |
|
4 | 19 |
include("subuser.php"); |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@2072 87cf0b9e-d624-0410-a070-f6ee81989793
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,34 @@ |
1 |
+<?php |
|
2 |
+require_role(ROLE_SYSTEMUSER); |
|
3 |
+require_once('inc/icons.php'); |
|
4 |
+ |
|
5 |
+include("subuser.php"); |
|
6 |
+ |
|
7 |
+title("Zusätzliche Admin-Zugänge"); |
|
8 |
+ |
|
9 |
+output('<p>Sie können für dieses Admin-Interface zusätzliche Accounts anlegen, die dann nur Zugriff auf einzelne Module haben. So ist es z.B. möglich, einen Mail-Admin und einen Webserver-Admin festzulegen.</p><p><strong>Wichtig:</strong> Diese zusätzlichen Zugänge gelten ausschließlich für dieses Web-Interface, nicht für die Anmeldung am Server.</p>'); |
|
10 |
+ |
|
11 |
+$subusers = list_subusers(); |
|
12 |
+ |
|
13 |
+$available_modules = available_modules(); |
|
14 |
+DEBUG($available_modules); |
|
15 |
+ |
|
16 |
+if ($subusers) |
|
17 |
+{ |
|
18 |
+ output('<h4>Momentan vorhandene zusätzliche Admin-Zugänge</h4>'); |
|
19 |
+ foreach ($subusers as $subuser) { |
|
20 |
+ output('<div><p><strong>'.$subuser['username'].'</strong> '.internal_link('delete.php', icon_delete('Löschen'), 'subuser='.$subuser['id']).' '.internal_link('edit.php', icon_edit('Bearbeiten'), 'subuser='.$subuser['id']).'</p>'); |
|
21 |
+ output('<ul>'); |
|
22 |
+ foreach ($subuser['modules'] as $mod) { |
|
23 |
+ output('<li>'.$available_modules[$mod].'</li>'); |
|
24 |
+ } |
|
25 |
+ output('</ul></div>'); |
|
26 |
+ } |
|
27 |
+ |
|
28 |
+} |
|
29 |
+else |
|
30 |
+{ |
|
31 |
+ output('<p><em>Sie haben bisher keine zusätzlichen Admin-Zugänge</em></p>'); |
|
32 |
+} |
|
33 |
+ |
|
34 |
+addnew('edit.php', 'Neuen zusätzlichen Admin-Zugang anlegen...'); |