dcc202fb249a446ac15c7cf413b9f1b4a3f31b58
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 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 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 6 years ago

21)     $sure = user_is_sure();
22)     if ($sure === null) {
23)         $subuser = load_subuser($_GET['subuser']);
24)         are_you_sure("subuser={$subuser['id']}", '
Bernd Wurst Subusers-Modul in einer ers...

Bernd Wurst authored 12 years 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 6 years ago

26)     } elseif ($sure === true) {
27)         delete_subuser($_GET['subuser']);
28)         if (! $debugmode) {
29)             header('Location: subusers');
30)         }
31)         die();
32)     } elseif ($sure === false) {
33)         if (! $debugmode) {
34)             header("Location: subusers");
35)         }
36)         die();
37)     }