e7d6974dda5839688a923152f6819340a655d1af
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 years ago

1) <?php
2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
Bernd Wurst Copyright year update

Bernd Wurst authored 6 years ago

5) Written 2008-2018 by schokokeks.org Hosting, namely
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 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_once('handles.php');
18) require_once('inc/debug.php');
19) 
20) require_once('session/start.php');
21) 
22) 
23) require_role(array(ROLE_CUSTOMER));
24) 
25) title("Adressen verwalten");
26) 
27) 
28) $handles = get_handles();
29) $kundenhandles = get_kundenhandles();
30) 
31) output('<p>Sie haben aktuell diese Adressen gespeichert:</p>
32) <table>
33) <tr><th>#</th><th>Name</th><th>Adresse</th><th>E-Mail</th><th>Verwendung</th><th>Aktionen</th></tr>
34) ');
35) foreach ($handles as $id => $handle) {
36)     $adresse = nl2br($handle['address']."\n".$handle['country'].'-'.$handle['zip'].' '.$handle['city']);
37)     $usage = '';
38)     if ($id == $kundenhandles['kunde']) {
39)         $usage .= 'Stamm-Adresse';
40)     }
41)     if ($id == $kundenhandles['extern']) {
42)         $usage .= 'Ersatz-Adresse';
43)     }
44)     if ($id == $kundenhandles['rechnung']) {
45)         $usage .= 'Rechnungs-Adresse';
46)     }
Bernd Wurst E-Mail-Adresse verifizieren...

Bernd Wurst authored 6 years ago

47)     $email = $handle['email'];
48)     $new_email = update_pending($id);
49)     if ($new_email) {
Bernd Wurst Zeige alte und neue Adresse...

Bernd Wurst authored 6 years ago

50)         $email = "<strike>$email</strike><br/>".$new_email.footnote('Die E-Mail-Adresse wurde noch nicht bestätigt');
Bernd Wurst E-Mail-Adresse verifizieren...

Bernd Wurst authored 6 years ago

51)     }
52)     output("<tr><td>{$handle['id']}</td><td><strong>{$handle['name']}</strong></td><td>$adresse</td><td>$email</td><td>$usage</td><td>...</td></tr>");