354c05a4ddd678c49bcbba458bffa7d13482139a
Bernd Wurst Subusers-Modul in einer ers...

Bernd Wurst authored 12 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) */
13) 
Bernd Wurst Subusers-Modul in einer ers...

Bernd Wurst authored 12 years ago

14) require_once('inc/icons.php');
15) 
Bernd Wurst changed subusers module to...

Bernd Wurst authored 12 years ago

16) require_role(ROLE_SYSTEMUSER);
17) 
Bernd Wurst Subusers-Modul in einer ers...

Bernd Wurst authored 12 years ago

18) include("subuser.php");
19) 
20) title("Zusätzliche Admin-Zugänge");
21) 
22) 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>');
23) 
24) $subusers = list_subusers();
25) 
26) $available_modules = available_modules();
27) DEBUG($available_modules);
28) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

29) if ($subusers) {
30)     output('<h4>Momentan vorhandene zusätzliche Admin-Zugänge</h4>');
31)     foreach ($subusers as $subuser) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

32)         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>');
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

33)         output('<ul>');
34)         foreach ($subuser['modules'] as $mod) {
Bernd Wurst Subuser-Berechtigungen nur...

Bernd Wurst authored 5 years ago

35)             if (isset($available_modules[$mod])) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

36)                 output('<li>' . $available_modules[$mod] . '</li>');
Bernd Wurst Subuser-Berechtigungen nur...

Bernd Wurst authored 5 years ago

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

Hanno authored 5 years ago

38)         }
39)         output('</ul></div>');
Bernd Wurst Subusers-Modul in einer ers...

Bernd Wurst authored 12 years ago

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

Hanno authored 5 years ago

41) } else {
42)     output('<p><em>Sie haben bisher keine zusätzlichen Admin-Zugänge</em></p>');