d5f29a796a95bd329851539e985f2915436582c3
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) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
Bernd Wurst Rudimentäre Adressauswahl/D...

Bernd Wurst authored 6 years ago

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 Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

25) if (!isset($_REQUEST['action'])) {
26)     system_failure("Falscher Aufruf");
Bernd Wurst Aktualisiere Domain- und In...

Bernd Wurst authored 6 years ago

27) }
Bernd Wurst Rudimentäre Adressauswahl/D...

Bernd Wurst authored 6 years ago

28) 
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

32) }
Hanno remove whitespace in empty...

Hanno authored 5 years ago

33) 
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

34) if ($_REQUEST['action'] == 'ownerchange') {
35)     if (!(isset($_POST['accept']) && $_POST['accept'] == '1')) {
36)         redirect('detail?error=1');
Bernd Wurst Änderung des betreffenden U...

Bernd Wurst authored 6 years ago

37)     }
Bernd Wurst Erste Vorbereitungen für Do...

Bernd Wurst authored 6 years ago

38)     check_form_token('domains_update');
Bernd Wurst Änderungen durch Umbenennun...

Bernd Wurst authored 6 years ago

39)     $dom = new Domain($_SESSION['domains_detail_domainname']);
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

40)     if (!$dom) {
41)         system_failure("Keine Domain gewählt!");
Bernd Wurst Änderung des betreffenden U...

Bernd Wurst authored 6 years ago

42)     }
Bernd Wurst Rudimentäre Adressauswahl/D...

Bernd Wurst authored 6 years ago

43) 
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

44)     DEBUG($dom);
Bernd Wurst Änderungen durch Umbenennun...

Bernd Wurst authored 6 years ago

45)     domain_ownerchange($_SESSION['domains_detail_domainname'], $_SESSION['domains_detail_owner'], $_SESSION['domains_detail_admin_c']);
Bernd Wurst Rudimentäre Adressauswahl/D...

Bernd Wurst authored 6 years ago

46) 
47) 
Bernd Wurst Änderungen durch Umbenennun...

Bernd Wurst authored 6 years ago

48)     unset($_SESSION['domains_detail_domainname']);
49)     unset($_SESSION['domains_detail_owner']);
50)     unset($_SESSION['domains_detail_admin_c']);
51)     unset($_SESSION['domains_detail_detach']);
Bernd Wurst Rudimentäre Adressauswahl/D...

Bernd Wurst authored 6 years ago

52)