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) require_once('inc/security.php');
16) 
17) include('subuser.php');
18) $section = 'subusers_subusers';
19) 
20) if (isset($_GET['subuser'])) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

21)     $sure = user_is_sure();
22)     if ($sure === null) {
23)         $subuser = load_subuser($_GET['subuser']);
24)         are_you_sure("subuser={$subuser['id']}", '
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

25)     <p>Soll der zusätzliche Admin-Zugang »' . $subuser['username'] . '« wirklich gelöscht werden?</p>');
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

26)     } elseif ($sure === true) {
27)         delete_subuser($_GET['subuser']);
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 6 months ago

28)         if (!$debugmode) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

29)             header('Location: subusers');
30)         }
31)         die();
32)     } elseif ($sure === false) {
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 6 months ago

33)         if (!$debugmode) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

34)             header("Location: subusers");
35)         }
36)         die();
37)     }