Browse code

Fix coding style with php-cs-checker, see https://cs.sensiolabs.org/

Hanno authored on26/06/2018 13:58:19
Showing1 changed files
... ...
@@ -8,7 +8,7 @@ Written 2008-2018 by schokokeks.org Hosting, namely
8 8
 
9 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 10
 
11
-You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
11
+You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
12 12
 http://creativecommons.org/publicdomain/zero/1.0/
13 13
 
14 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.
... ...
@@ -44,5 +44,3 @@ if (isset($_GET['type'])) {
44 44
     unset($_SESSION['domains_choose_redirect']);
45 45
     redirect($backto);
46 46
 }
47
-
48
-
Browse code

Erste Vorbereitungen für Domainregistrierung

Bernd Wurst authored on02/02/2018 05:25:41
Showing1 changed files
... ...
@@ -15,10 +15,16 @@ Nevertheless, in case you use a significant part of this code, we ask (but not r
15 15
 */
16 16
 
17 17
 if (isset($_GET['type'])) {
18
+    $caller = 'detail';
19
+    if (isset($_REQUEST['backto'])) {
20
+        $caller = $_REQUEST['backto'];
21
+    }
22
+    $_SESSION['domains_choose_redirect'] = $caller;
23
+
18 24
     $function = 'owner';
19 25
     if ($_GET['type'] == 'admin_c') {
20 26
         if (isset($_GET['detach'])) {
21
-            $_SESSION['domains_update_detach'] = $_GET['detach'];
27
+            $_SESSION['domains_'.$caller.'_detach'] = $_GET['detach'];
22 28
         }
23 29
         $function = 'admin_c';
24 30
     }
... ...
@@ -26,15 +32,17 @@ if (isset($_GET['type'])) {
26 32
     if ($function == 'admin_c') {
27 33
         $t = 'Verwalter';
28 34
     }
29
-    $_SESSION['contacts_choose_header'] = 'Wählen Sie einen neuen '.$t.' für die Domain '.$_SESSION['domains_update_domainname'];
30
-    $_SESSION['contacts_choose_key'] = 'domains_update_'.$function;
31
-    $_SESSION['contacts_choose_redirect'] = '../domains/detail';
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';
32 38
     redirect('../contacts/choose');
33 39
 } else {
34 40
     unset($_SESSION['contacts_choose_key']);
35 41
     unset($_SESSION['contacts_choose_header']);
36 42
     unset($_SESSION['contacts_choose_redirect']);
37
-    redirect("detail");
43
+    $backto = $_SESSION['domains_choose_redirect'];
44
+    unset($_SESSION['domains_choose_redirect']);
45
+    redirect($backto);
38 46
 }
39 47
 
40 48
 
Browse code

Alle Domain-Details auf einer Übersichtsseite zusammengeführt

Bernd Wurst authored on31/01/2018 16:43:10
Showing1 changed files
... ...
@@ -28,13 +28,13 @@ if (isset($_GET['type'])) {
28 28
     }
29 29
     $_SESSION['contacts_choose_header'] = 'Wählen Sie einen neuen '.$t.' für die Domain '.$_SESSION['domains_update_domainname'];
30 30
     $_SESSION['contacts_choose_key'] = 'domains_update_'.$function;
31
-    $_SESSION['contacts_choose_redirect'] = '../domains/update';
31
+    $_SESSION['contacts_choose_redirect'] = '../domains/detail';
32 32
     redirect('../contacts/choose');
33 33
 } else {
34 34
     unset($_SESSION['contacts_choose_key']);
35 35
     unset($_SESSION['contacts_choose_header']);
36 36
     unset($_SESSION['contacts_choose_redirect']);
37
-    redirect("update.php");
37
+    redirect("detail");
38 38
 }
39 39
 
40 40
 
Browse code

Rudimentäre Adressauswahl/Domainupdate-UI

Bernd Wurst authored on23/01/2018 13:20:36
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,40 @@
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'])) {
18
+    $function = 'owner';
19
+    if ($_GET['type'] == 'admin_c') {
20
+        if (isset($_GET['detach'])) {
21
+            $_SESSION['domains_update_detach'] = $_GET['detach'];
22
+        }
23
+        $function = 'admin_c';
24
+    }
25
+    $t = 'Inhaber';
26
+    if ($function == 'admin_c') {
27
+        $t = 'Verwalter';
28
+    }
29
+    $_SESSION['contacts_choose_header'] = 'Wählen Sie einen neuen '.$t.' für die Domain '.$_SESSION['domains_update_domainname'];
30
+    $_SESSION['contacts_choose_key'] = 'domains_update_'.$function;
31
+    $_SESSION['contacts_choose_redirect'] = '../domains/update';
32
+    redirect('../contacts/choose');
33
+} else {
34
+    unset($_SESSION['contacts_choose_key']);
35
+    unset($_SESSION['contacts_choose_header']);
36
+    unset($_SESSION['contacts_choose_redirect']);
37
+    redirect("update.php");
38
+}
39
+
40
+