207e27f1d65a23f5d2150a53bf9c7ab202510fe2
Bernd Wurst Erste Version des SEPA-Mand...

Bernd Wurst authored 11 years ago

1) <?php
2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
Bernd Wurst Lizenzinfos in eigenes Modu...

Bernd Wurst authored 10 years ago

5) Written 2008-2014 by schokokeks.org Hosting, namely
Bernd Wurst Erste Version des SEPA-Mand...

Bernd Wurst authored 11 years ago

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_role(ROLE_CUSTOMER);
18) 
19) require('invoice.php');
20) require_once("inc/debug.php");
Bernd Wurst Fehlendes Include

Bernd Wurst authored 10 years ago

21) require_once("inc/security.php");
Bernd Wurst Erste Version des SEPA-Mand...

Bernd Wurst authored 11 years ago

22) global $debugmode;
23) 
24) $section = 'invoice_current';
25) 
26) 
27) if ($_GET['action'] == 'new')
28) {
29)   check_form_token('sepamandat_neu');
30)   
31)   $gueltig_ab = $_REQUEST['gueltig_ab'];
32)   if ($gueltig_ab == 'datum') {
33)     $gueltig_ab = $_REQUEST['gueltig_ab_datum_year'].'-'.$_REQUEST['gueltig_ab_datum_month'].'-'.$_REQUEST['gueltig_ab_datum_day'];
34)   }
35)   if (! check_date($gueltig_ab)) {
36)     system_failure('Konnte das Datum nicht auslesen');
37)   }
38)   DEBUG('Gültig ab: '.$gueltig_ab);
39) 
40)   if (empty($_REQUEST['kontoinhaber'])) {
41)     system_failure('Bitte geben Sie den Kontoinhaber so an, wie dies bei Ihrer Bank hinterlegt ist.');
42)   }
43)   $name = $_REQUEST['kontoinhaber'];
44)   DEBUG('Kontoinhaber:'.$name);
45) 
46)   if (empty($_REQUEST['adresse'])) {
47)     system_failure('Bitte geben Sie die Adresse des Kontoinhabers an.');
48)   }
49)   $adresse = $_REQUEST['adresse'];
50)   DEBUG('Adresse: '.$adresse);
51) 
52)   if (empty($_REQUEST['iban'])) {
53)     system_failure('Es wurde keine IBAN angegeben.');
54)   }
Bernd Wurst Entferne Spaces aus der IBAN

Bernd Wurst authored 7 years ago

55)   $iban = str_replace(' ', '', $_REQUEST['iban']);