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_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 5 years ago

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

Bernd Wurst authored 12 years ago

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

Hanno authored 5 years ago

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

Bernd Wurst authored 12 years ago

24) }
25) 
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

26) $_POST['username'] = $_SESSION['userinfo']['username'] . '_' . $_POST['username'];
Bernd Wurst Subusers-Modul in einer ers...

Bernd Wurst authored 12 years ago

27) 
28) if (isset($_GET['id']) && (int) $_GET['id'] != 0) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

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

Bernd Wurst authored 12 years ago

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

Hanno authored 5 years ago

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

Bernd Wurst authored 12 years ago

32) }
33) 
34) 
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 6 months ago

35) if (!$debugmode) {