dcc202fb249a446ac15c7cf413b9f1b4a3f31b58
Bernd Wurst Subusers-Modul in einer ers...

Bernd Wurst authored 13 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 2 years 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 2 years 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 13 years ago

14) require_role(ROLE_SYSTEMUSER);
15) include("subuser.php");
16) 
17) $section = 'subusers_subusers';
18) 
19) if (!isset($_POST['username']) || $_POST['username'] == '') {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

20)     system_failure("Der Benutzername muss eingegeben werden!");
Bernd Wurst Subusers-Modul in einer ers...

Bernd Wurst authored 13 years ago

21) }
22) if (!isset($_POST['modules']) || count($_POST['modules']) == 0) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

23)     system_failure("Der zusätzliche Zugang muss irgendwelche Rechte erhalten!");
Bernd Wurst Subusers-Modul in einer ers...

Bernd Wurst authored 13 years ago

24) }
25) 
26) $_POST['username'] = $_SESSION['userinfo']['username'].'_'.$_POST['username'];
27) 
28) if (isset($_GET['id']) && (int) $_GET['id'] != 0) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

29)     edit_subuser($_GET['id'], $_POST['username'], $_POST['modules'], $_POST['password']);
Bernd Wurst Subusers-Modul in einer ers...

Bernd Wurst authored 13 years ago

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

Hanno authored 6 years ago

31)     new_subuser($_POST['username'], $_POST['modules'], $_POST['password']);
Bernd Wurst Subusers-Modul in einer ers...

Bernd Wurst authored 13 years ago

32) }
33) 
34)