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) if (isset($_GET['type'])) {
Bernd Wurst Erste Vorbereitungen für Do...

Bernd Wurst authored 6 years ago

15)     $caller = 'detail';
16)     if (isset($_REQUEST['backto'])) {
17)         $caller = $_REQUEST['backto'];
18)     }
19)     $_SESSION['domains_choose_redirect'] = $caller;
20) 
Bernd Wurst Rudimentäre Adressauswahl/D...

Bernd Wurst authored 6 years ago

21)     $function = 'owner';
22)     if ($_GET['type'] == 'admin_c') {
23)         if (isset($_GET['detach'])) {
Bernd Wurst Erste Vorbereitungen für Do...

Bernd Wurst authored 6 years ago

24)             $_SESSION['domains_'.$caller.'_detach'] = $_GET['detach'];
Bernd Wurst Rudimentäre Adressauswahl/D...

Bernd Wurst authored 6 years ago

25)         }
26)         $function = 'admin_c';
27)     }
28)     $t = 'Inhaber';
29)     if ($function == 'admin_c') {
30)         $t = 'Verwalter';
31)     }
Bernd Wurst Erste Vorbereitungen für Do...

Bernd Wurst authored 6 years ago

32)     $_SESSION['contacts_choose_header'] = 'Wählen Sie einen neuen '.$t.' für die Domain '.$_SESSION['domains_'.$caller.'_domainname'];
33)     $_SESSION['contacts_choose_key'] = 'domains_'.$caller.'_'.$function;
34)     $_SESSION['contacts_choose_redirect'] = '../domains/choose';
Bernd Wurst Rudimentäre Adressauswahl/D...

Bernd Wurst authored 6 years ago

35)     redirect('../contacts/choose');
36) } else {
37)     unset($_SESSION['contacts_choose_key']);
38)     unset($_SESSION['contacts_choose_header']);
39)     unset($_SESSION['contacts_choose_redirect']);
Bernd Wurst Erste Vorbereitungen für Do...

Bernd Wurst authored 6 years ago

40)     $backto = $_SESSION['domains_choose_redirect'];
41)     unset($_SESSION['domains_choose_redirect']);
42)     redirect($backto);