Browse code

remove whitespace in empty lines

Hanno authored on26/06/2018 23:36:40
Showing1 changed files
... ...
@@ -38,12 +38,12 @@ $dyndns = get_dyndns_account($id);
38 38
   }
39 39
   $record = blank_dns_record($type);
40 40
   // Sicherheitsprüfungen passieren im Backend
41
-  
41
+
42 42
   $record['hostname'] = $_REQUEST['hostname'];
43 43
   $record['domain'] = (int) $_REQUEST['domain'];
44 44
   $record['dyndns'] = $id;
45 45
   $record['ttl'] = 120;
46
-  
46
+
47 47
   save_dns_record(null, $record);
48 48
 
49 49
   if (!$debugmode) {
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.
... ...
@@ -25,8 +25,9 @@ require_once('dnsinclude.php');
25 25
 
26 26
 $section = 'dns_dyndns';
27 27
 
28
-if (!isset($_REQUEST['id']))
29
-  system_failure("Keine ID");
28
+if (!isset($_REQUEST['id'])) {
29
+    system_failure("Keine ID");
30
+}
30 31
 
31 32
 $id = (int) $_REQUEST['id'];
32 33
 $dyndns = get_dyndns_account($id);
... ...
@@ -43,10 +44,8 @@ $dyndns = get_dyndns_account($id);
43 44
   $record['dyndns'] = $id;
44 45
   $record['ttl'] = 120;
45 46
   
46
-  save_dns_record(NULL, $record);
47
-
48
-  if (!$debugmode)
49
-    header('Location: dyndns_hostnames?id='.$dyndns['id']);
50
-
51
-
47
+  save_dns_record(null, $record);
52 48
 
49
+  if (!$debugmode) {
50
+      header('Location: dyndns_hostnames?id='.$dyndns['id']);
51
+  }
Browse code

IPv6-support für DynDNS

Bernd Wurst authored on14/05/2018 07:37:12
Showing1 changed files
... ...
@@ -31,7 +31,11 @@ if (!isset($_REQUEST['id']))
31 31
 $id = (int) $_REQUEST['id'];
32 32
 $dyndns = get_dyndns_account($id);
33 33
 
34
-  $record = blank_dns_record('a');
34
+  $type = 'a';
35
+  if ($_REQUEST['type'] == 'aaaa') {
36
+      $type = 'aaaa';
37
+  }
38
+  $record = blank_dns_record($type);
35 39
   // Sicherheitsprüfungen passieren im Backend
36 40
   
37 41
   $record['hostname'] = $_REQUEST['hostname'];
Browse code

Copyright year update

Bernd Wurst authored on13/01/2018 06:07:05
Showing1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 /*
3 3
 This file belongs to the Webinterface of schokokeks.org Hosting
4 4
 
5
-Written 2008-2014 by schokokeks.org Hosting, namely
5
+Written 2008-2018 by schokokeks.org Hosting, namely
6 6
   Bernd Wurst <bernd@schokokeks.org>
7 7
   Hanno Böck <hanno@schokokeks.org>
8 8
 
Browse code

Erzeuge nicht einen DynDNS-Hostname unser der Masterdomain sondern frage gleich vom User ab welcher Hostname verwendet werden soll

Bernd Wurst authored on01/07/2016 10:19:58
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,48 @@
1
+<?php
2
+/*
3
+This file belongs to the Webinterface of schokokeks.org Hosting
4
+
5
+Written 2008-2014 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
+require_once('inc/base.php');
18
+require_once('inc/debug.php');
19
+global $debugmode;
20
+require_once('inc/security.php');
21
+
22
+require_role(ROLE_SYSTEMUSER);
23
+
24
+require_once('dnsinclude.php');
25
+
26
+$section = 'dns_dyndns';
27
+
28
+if (!isset($_REQUEST['id']))
29
+  system_failure("Keine ID");
30
+
31
+$id = (int) $_REQUEST['id'];
32
+$dyndns = get_dyndns_account($id);
33
+
34
+  $record = blank_dns_record('a');
35
+  // Sicherheitsprüfungen passieren im Backend
36
+  
37
+  $record['hostname'] = $_REQUEST['hostname'];
38
+  $record['domain'] = (int) $_REQUEST['domain'];
39
+  $record['dyndns'] = $id;
40
+  $record['ttl'] = 120;
41
+  
42
+  save_dns_record(NULL, $record);
43
+
44
+  if (!$debugmode)
45
+    header('Location: dyndns_hostnames?id='.$dyndns['id']);
46
+
47
+
48
+