Browse code

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

Hanno authored on 26/06/2018 13:58:19
Showing 1 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.
... ...
@@ -20,15 +20,15 @@ require_once('inc/debug.php');
20 20
 require_once('invoice.php');
21 21
 
22 22
 
23
-$iban = NULL;
23
+$iban = null;
24 24
 if (isset($_GET['iban'])) {
25
-  $iban = $_GET['iban'];
25
+    $iban = $_GET['iban'];
26 26
 } elseif (isset($_GET['kto']) && isset($_GET['blz'])) {
27
-  $iban = find_iban($_GET['blz'], $_GET['kto']);
27
+    $iban = find_iban($_GET['blz'], $_GET['kto']);
28 28
 }
29
-if ($iban == NULL) {
30
-  echo "Fehler!";
31
-  die();
29
+if ($iban == null) {
30
+    echo "Fehler!";
31
+    die();
32 32
 }
33 33
 
34 34
 $iban_ok = (verify_iban($iban) ? '1' : '0');
... ...
@@ -41,5 +41,3 @@ echo ' { "iban_ok": "'.$iban_ok.'", "iban": "'.$iban.'", "bic": "'.$bank['bic'].
41 41
 echo '
42 42
 ]';
43 43
 die();
44
-
45
-
Browse code

Copyright year update

Bernd Wurst authored on 13/01/2018 06:07:05
Showing 1 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

Lizenzinfos in eigenes Modul ausgelagert und Copyright auf 2014 angepasst

Bernd Wurst authored on 08/02/2014 05:45:07
Showing 1 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-2013 by schokokeks.org Hosting, namely
5
+Written 2008-2014 by schokokeks.org Hosting, namely
6 6
   Bernd Wurst <bernd@schokokeks.org>
7 7
   Hanno Böck <hanno@schokokeks.org>
8 8
 
Browse code

Ermögliche das Berechnen der IBAN aus BLZ/Kontonummer

Bernd Wurst authored on 11/01/2014 17:43:19
Showing 1 changed files
... ...
@@ -20,7 +20,16 @@ require_once('inc/debug.php');
20 20
 require_once('invoice.php');
21 21
 
22 22
 
23
-$iban = $_GET['iban'];
23
+$iban = NULL;
24
+if (isset($_GET['iban'])) {
25
+  $iban = $_GET['iban'];
26
+} elseif (isset($_GET['kto']) && isset($_GET['blz'])) {
27
+  $iban = find_iban($_GET['blz'], $_GET['kto']);
28
+}
29
+if ($iban == NULL) {
30
+  echo "Fehler!";
31
+  die();
32
+}
24 33
 
25 34
 $iban_ok = (verify_iban($iban) ? '1' : '0');
26 35
 
... ...
@@ -28,7 +37,7 @@ $bank = get_bank_info($iban);
28 37
 
29 38
 header("Content-Type: text/javascript");
30 39
 echo "[\n";
31
-echo ' { "iban_ok": "'.$iban_ok.'", "bic": "'.$bank['bic'].'", "bankname" : "'.$bank['name'].'" } ';
40
+echo ' { "iban_ok": "'.$iban_ok.'", "iban": "'.$iban.'", "bic": "'.$bank['bic'].'", "bankname" : "'.$bank['name'].'" } ';
32 41
 echo '
33 42
 ]';
34 43
 die();
Browse code

Zeige gleich an, ob eine (deutsch) IBAN gültig ist

Bernd Wurst authored on 27/12/2013 11:46:26
Showing 1 changed files
... ...
@@ -22,11 +22,13 @@ require_once('invoice.php');
22 22
 
23 23
 $iban = $_GET['iban'];
24 24
 
25
+$iban_ok = (verify_iban($iban) ? '1' : '0');
26
+
25 27
 $bank = get_bank_info($iban);
26 28
 
27 29
 header("Content-Type: text/javascript");
28 30
 echo "[\n";
29
-echo ' { "bic": "'.$bank['bic'].'", "bankname" : "'.$bank['name'].'" } ';
31
+echo ' { "iban_ok": "'.$iban_ok.'", "bic": "'.$bank['bic'].'", "bankname" : "'.$bank['name'].'" } ';
30 32
 echo '
31 33
 ]';
32 34
 die();
Browse code

Vervollständige Bankname und BIC automatisch

Bernd Wurst authored on 27/12/2013 11:04:38
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,34 @@
1
+<?php
2
+/*
3
+This file belongs to the Webinterface of schokokeks.org Hosting
4
+
5
+Written 2008-2013 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
+
20
+require_once('invoice.php');
21
+
22
+
23
+$iban = $_GET['iban'];
24
+
25
+$bank = get_bank_info($iban);
26
+
27
+header("Content-Type: text/javascript");
28
+echo "[\n";
29
+echo ' { "bic": "'.$bank['bic'].'", "bankname" : "'.$bank['name'].'" } ';
30
+echo '
31
+]';
32
+die();
33
+
34
+