5bd1e31b4a341f0fdf682c67da8d39fcf207eebc
Bernd Wurst Rudimentäre Adressauswahl/D...

Bernd Wurst authored 6 years ago

1) <?php
2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
5) Written 2008-2018 by schokokeks.org Hosting, namely
6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
9) To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
10) 
11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
12) http://creativecommons.org/publicdomain/zero/1.0/
13) 
14) 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.
15) */
16) 
17) require_once('inc/debug.php');
18) require_once('inc/icons.php');
19) 
20) require_once('class/domain.php');
21) require_once('domains.php');
22) 
23) require_role(ROLE_CUSTOMER);
24) 
Bernd Wurst Änderung des betreffenden U...

Bernd Wurst authored 6 years ago

25) if (!isset($_REQUEST['action'])) {
26)     system_failure("Falscher Aufruf");
Bernd Wurst Rudimentäre Adressauswahl/D...

Bernd Wurst authored 6 years ago

27) }
Bernd Wurst Änderung des betreffenden U...

Bernd Wurst authored 6 years ago

28) 
29) if ($_REQUEST['action'] == 'chguser') {
30)     change_user((int)$_REQUEST['id'], $_REQUEST['domainuser']);
31)     redirect('update?id='.(int)$_REQUEST['id']);
Bernd Wurst Rudimentäre Adressauswahl/D...

Bernd Wurst authored 6 years ago

32) }
Bernd Wurst Änderung des betreffenden U...

Bernd Wurst authored 6 years ago

33)     
34) if ($_REQUEST['action'] == 'ownerchange') {
35) 
36)     if (!(isset($_POST['accept']) && $_POST['accept'] == '1')) {
37)         redirect('update?error=1');
38)     }
39)     $dom = new Domain($_SESSION['domains_update_domainname']);
40)     if (!$dom) {
41)         system_failure("Keine Domain gewählt!");
42)     }
Bernd Wurst Rudimentäre Adressauswahl/D...

Bernd Wurst authored 6 years ago

43) 
Bernd Wurst Änderung des betreffenden U...

Bernd Wurst authored 6 years ago

44)     DEBUG($dom);
45)     domain_ownerchange($_SESSION['domains_update_domainname'], $_SESSION['domains_update_owner'], $_SESSION['domains_update_admin_c']);
Bernd Wurst Rudimentäre Adressauswahl/D...

Bernd Wurst authored 6 years ago

46) 
Bernd Wurst Domain-Update (Ownerchange)...

Bernd Wurst authored 6 years ago

47) 
Bernd Wurst Änderung des betreffenden U...

Bernd Wurst authored 6 years ago

48)     unset($_SESSION['domains_update_domainname']);
49)     unset($_SESSION['domains_update_owner']);
50)     unset($_SESSION['domains_update_admin_c']);
51)     unset($_SESSION['domains_update_detach']);
Bernd Wurst Domain-Update (Ownerchange)...

Bernd Wurst authored 6 years ago

52)