dcc202fb249a446ac15c7cf413b9f1b4a3f31b58
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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

5) Written by schokokeks.org Hosting, namely
Bernd Wurst Rudimentäre Adressauswahl/D...

Bernd Wurst authored 6 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 Rudimentäre Adressauswahl/D...

Bernd Wurst authored 6 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) 
14) require_once('inc/debug.php');
15) require_once('inc/icons.php');
16) 
17) require_once('class/domain.php');
18) require_once('domains.php');
19) 
20) require_role(ROLE_CUSTOMER);
21) 
Bernd Wurst Alle Domain-Details auf ein...

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

29) }
Hanno remove whitespace in empty...

Hanno authored 5 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

42)     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

43) 
44) 
Bernd Wurst Änderungen durch Umbenennun...

Bernd Wurst authored 6 years ago

45)     unset($_SESSION['domains_detail_domainname']);
46)     unset($_SESSION['domains_detail_owner']);
47)     unset($_SESSION['domains_detail_admin_c']);
48)     unset($_SESSION['domains_detail_detach']);
Bernd Wurst Rudimentäre Adressauswahl/D...

Bernd Wurst authored 6 years ago

49)