3ef995c2108fe77d22c0b556fb9717cb848bc48f
bernd webinterface => /webinterface

bernd authored 17 years ago

1) <?php
Hanno Böck Add newlines before comment...

Hanno Böck authored 1 week ago

2) 
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 13 years ago

3) /*
4) This file belongs to the Webinterface of schokokeks.org Hosting
5) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

6) Written by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 13 years ago

7)   Bernd Wurst <bernd@schokokeks.org>
8)   Hanno Böck <hanno@schokokeks.org>
9) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

10) This code is published under a 0BSD license.
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 13 years ago

11) 
12) 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.
13) */
14) 
bernd webinterface => /webinterface

bernd authored 17 years ago

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

Bernd Wurst authored 5 years ago

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

bernd authored 17 years ago

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

Hanno authored 6 years ago

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

Bernd Wurst authored 11 years ago

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

Hanno authored 6 years ago

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

Bernd Wurst authored 11 years ago

23) 
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

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

Bernd Wurst authored 11 years ago

25) 
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

26)     $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 11 years ago

27) Bitte besuchen Sie folgende Adresse um Ihr Passwort neu zu setzen:
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

28)   ' . $tokenurl . '
Bernd Wurst Ermögliche Kunden sich eine...

Bernd Wurst authored 11 years ago

29) 
30) Mit freundlichen Grüßen,
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

31) Ihre Admins von ' . config('company_name');
Bernd Wurst Passwort-Reset-Funktion akt...

Bernd Wurst authored 8 years ago

32) 
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

33)     $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 8 years ago

34) 
Hanno Böck "für" statt "fuer" in Passw...

Hanno Böck authored 10 months ago

35)     send_mail($email, "Passwortanforderung für schokokeks.org", $msg);
Bernd Wurst Ermögliche Kunden sich eine...

Bernd Wurst authored 11 years ago

36) }
bernd webinterface => /webinterface

bernd authored 17 years ago

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

Hanno authored 6 years ago

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

bernd authored 17 years ago

53) 
54) Sie haben auf unserem Web-Administrations-Interface ein neues
55) Passwort für Ihren Kunden-Zugang angefordert.
56) Diese automatische Nachricht dient der Überprüfung Ihrer Identität.
57) 
58) Um sich ein neues Passwort setzen zu können, rufen Sie bitte den
59) folgenden Link auf:
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

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

bernd authored 17 years ago

61) 
62) Sollte Ihr E-Mail-Programm diesen Link nicht korrekt an den Browser
63) übertragen, rufen Sie bitte die Seite
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

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

bernd authored 17 years ago

65) auf und geben Sie die folgenden Daten ein:
66)  Kundennummer: {$customer['customerno']}
67)  Token:        {$token}
68) 
69) Diese Prozedur müssen Sie bis spätestens 24 Stunden nach Erhalt
70) dieser Nachricht durchführen, sonst verliert das Token seine
71) Gültigkeit.
72) ";
Hanno Böck "für" statt "fuer" in Passw...

Hanno Böck authored 10 months ago

73)     send_mail($customer['email'], "Passwortanforderung für Webinterface", $msg);