dcc202fb249a446ac15c7cf413b9f1b4a3f31b58
bernd webinterface => /webinterface

bernd authored 17 years ago

1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

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 Added license tags for CC0,...

Bernd Wurst authored 12 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 Added license tags for CC0,...

Bernd Wurst authored 12 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) 
bernd webinterface => /webinterface

bernd authored 17 years ago

14) require_once('newpass.php');
15) require_once('session/checkuser.php');
Bernd Wurst Funktion send_mail() global...

Bernd Wurst authored 4 years ago

16) require_once('inc/base.php');
bernd webinterface => /webinterface

bernd authored 17 years ago

17) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

18) function send_user_token($username)
Bernd Wurst Ermögliche Kunden sich eine...

Bernd Wurst authored 10 years ago

19) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

20)     $token = get_user_token($username);
21)     $email = emailaddress_for_user($username);
Bernd Wurst Ermögliche Kunden sich eine...

Bernd Wurst authored 10 years ago

22) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

23)     $tokenurl = config('webinterface_url').'/init'.$token.'?agb=1';
Bernd Wurst Ermögliche Kunden sich eine...

Bernd Wurst authored 10 years ago

24) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

25)     $msg = 'Sie haben für Ihren Zugang bei '.config('company_name').' ein neues Passwort angefordert.
Bernd Wurst Ermögliche Kunden sich eine...

Bernd Wurst authored 10 years ago

26) Bitte besuchen Sie folgende Adresse um Ihr Passwort neu zu setzen:
27)   '.$tokenurl.'
28) 
29) Mit freundlichen Grüßen,
30) Ihre Admins von '.config('company_name');
Bernd Wurst Passwort-Reset-Funktion akt...

Bernd Wurst authored 7 years ago

31) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

32)     $msg .= "\n\nDiese Anforderung haben wir am ".date("r")." von der IP-Adresse\n{$_SERVER['REMOTE_ADDR']} erhalten.\nSofern Sie dies nicht ausgelöst haben, benachrichtigen Sie bitte den Support\ndurch eine Antwort auf diese E-Mail.";
Bernd Wurst Passwort-Reset-Funktion akt...

Bernd Wurst authored 7 years ago

33) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

34)     send_mail($email, "Passwortanforderung fuer schokokeks.org", $msg);
Bernd Wurst Ermögliche Kunden sich eine...

Bernd Wurst authored 10 years ago

35) }
bernd webinterface => /webinterface

bernd authored 17 years ago

36) 
37) function send_customer_token($customerno)
38) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

39)     $customerno = (int) $customerno;
40)     $token = get_customer_token($customerno);
41)     $customer = get_customer_info($customerno);
42)     if ($customer['email'] == '') {
43)         system_failure('Für Ihr Kundenkonto ist keine E-Mail-Adresse eingetragen. Diese Funktion steht Ihnen daher nicht zur Verfügung.');
44)     }
45)     $anrede = "Sehr geehrte Damen und Herren";
46)     if ($customer['title'] == 'Herr') {
47)         $anrede = "Sehr geehrter Herr {$customer['name']}";
48)     } elseif ($customer['title'] == 'Frau') {
49)         $anrede = "Sehr geehrte Frau {$customer['name']}";
50)     }
51)     $msg = "{$anrede},
bernd webinterface => /webinterface

bernd authored 17 years ago

52) 
53) Sie haben auf unserem Web-Administrations-Interface ein neues
54) Passwort für Ihren Kunden-Zugang angefordert.
55) Diese automatische Nachricht dient der Überprüfung Ihrer Identität.
56) 
57) Um sich ein neues Passwort setzen zu können, rufen Sie bitte den
58) folgenden Link auf:
bernd Mehr config-optionen und co...

bernd authored 14 years ago

59)  ".config('webinterface_url')."/go/index/validate_token.php?customerno={$customer['customerno']}&token={$token}
bernd webinterface => /webinterface

bernd authored 17 years ago

60) 
61) Sollte Ihr E-Mail-Programm diesen Link nicht korrekt an den Browser
62) übertragen, rufen Sie bitte die Seite
bernd Mehr config-optionen und co...

bernd authored 14 years ago

63)  ".config('webinterface_url')."/go/index/validate_token.php
bernd webinterface => /webinterface

bernd authored 17 years ago

64) auf und geben Sie die folgenden Daten ein:
65)  Kundennummer: {$customer['customerno']}
66)  Token:        {$token}
67) 
68) Diese Prozedur müssen Sie bis spätestens 24 Stunden nach Erhalt
69) dieser Nachricht durchführen, sonst verliert das Token seine
70) Gültigkeit.
71) ";
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

72)     send_mail($customer['email'], "Passwortanforderung fuer Webinterface", $msg);