dcc202fb249a446ac15c7cf413b9f1b4a3f31b58
Bernd Wurst Vervollständige Bankname un...

Bernd Wurst authored 10 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 Vervollständige Bankname un...

Bernd Wurst authored 10 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 Vervollständige Bankname un...

Bernd Wurst authored 10 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) require_once('inc/base.php');
15) require_once('inc/debug.php');
16) 
17) require_once('invoice.php');
18) 
19) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

20) $iban = null;
Bernd Wurst Ermögliche das Berechnen de...

Bernd Wurst authored 10 years ago

21) if (isset($_GET['iban'])) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

22)     $iban = $_GET['iban'];
Bernd Wurst Ermögliche das Berechnen de...

Bernd Wurst authored 10 years ago

23) } elseif (isset($_GET['kto']) && isset($_GET['blz'])) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

24)     $iban = find_iban($_GET['blz'], $_GET['kto']);
Bernd Wurst Ermögliche das Berechnen de...

Bernd Wurst authored 10 years ago

25) }
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

26) if ($iban == null) {
27)     echo "Fehler!";
28)     die();
Bernd Wurst Ermögliche das Berechnen de...

Bernd Wurst authored 10 years ago

29) }
Bernd Wurst Vervollständige Bankname un...

Bernd Wurst authored 10 years ago

30) 
Bernd Wurst Zeige gleich an, ob eine (d...

Bernd Wurst authored 10 years ago

31) $iban_ok = (verify_iban($iban) ? '1' : '0');
32) 
Bernd Wurst Vervollständige Bankname un...

Bernd Wurst authored 10 years ago

33) $bank = get_bank_info($iban);
34) 
35) header("Content-Type: text/javascript");
36) echo "[\n";
Bernd Wurst Ermögliche das Berechnen de...

Bernd Wurst authored 10 years ago

37) echo ' { "iban_ok": "'.$iban_ok.'", "iban": "'.$iban.'", "bic": "'.$bank['bic'].'", "bankname" : "'.$bank['name'].'" } ';