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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

43)     $backto = $_SESSION['domains_choose_redirect'];
44)     unset($_SESSION['domains_choose_redirect']);
45)     redirect($backto);