bf290f81cefa9db968caeb0368abae06c9781158
Bernd Wurst Verify-Funktion für Kunden-...

Bernd Wurst authored 6 years ago

modules/index/include/kundendaten.php  1) <?php
modules/index/include/kundendaten.php  2) /*
modules/index/include/kundendaten.php  3) This file belongs to the Webinterface of schokokeks.org Hosting
modules/index/include/kundendaten.php  4) 
modules/index/include/kundendaten.php  5) Written 2008-2014 by schokokeks.org Hosting, namely
modules/index/include/kundendaten.php  6)   Bernd Wurst <bernd@schokokeks.org>
modules/index/include/kundendaten.php  7)   Hanno Böck <hanno@schokokeks.org>
modules/index/include/kundendaten.php  8) 
modules/index/include/kundendaten.php  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.
modules/index/include/kundendaten.php 10) 
modules/index/include/kundendaten.php 11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
modules/index/include/kundendaten.php 12) http://creativecommons.org/publicdomain/zero/1.0/
modules/index/include/kundendaten.php 13) 
modules/index/include/kundendaten.php 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.
modules/index/include/kundendaten.php 15) */
modules/index/include/kundendaten.php 16) 
modules/index/include/kundendaten.php 17) 
modules/index/include/kundendaten.php 18) function verify_mail_token($token)
modules/index/include/kundendaten.php 19) {
modules/index/include/kundendaten.php 20)   db_query("DELETE FROM kundendaten.mailaddress_token WHERE expire<NOW()");
modules/index/include/kundendaten.php 21)   $args = array(":token" => $token);
Bernd Wurst Neue Datenbanktabelle für T...

Bernd Wurst authored 6 years ago

modules/index/include/kundendaten.php 22)   $result = db_query("SELECT handle, email FROM kundendaten.mailaddress_token WHERE token=:token AND expire>NOW()", $args);
Bernd Wurst Verify-Funktion für Kunden-...

Bernd Wurst authored 6 years ago

modules/index/include/kundendaten.php 23)   if ($result->rowCount() > 0)
modules/index/include/kundendaten.php 24)   {
modules/index/include/kundendaten.php 25)     $line = $result->fetch();
modules/index/include/kundendaten.php 26)     db_query("DELETE FROM kundendaten.mailaddress_token WHERE token=:token", $args); 
modules/index/include/kundendaten.php 27)     return $line;
modules/index/include/kundendaten.php 28)   } else {
modules/index/include/kundendaten.php 29)     return NULL;
modules/index/include/kundendaten.php 30)   }
modules/index/include/kundendaten.php 31) }
modules/index/include/kundendaten.php 32) 
modules/index/include/kundendaten.php 33) 
modules/index/include/kundendaten.php 34) function update_mailaddress($daten)
modules/index/include/kundendaten.php 35) {
Bernd Wurst Neue Datenbanktabelle für T...

Bernd Wurst authored 6 years ago

modules/index/include/kundendaten.php 36)     $kunde = $daten['handle'];
Bernd Wurst Verify-Funktion für Kunden-...

Bernd Wurst authored 6 years ago

modules/index/include/kundendaten.php 37)     $email = $daten['email'];
modules/index/include/kundendaten.php 38) 
modules/index/include/kundendaten.php 39)     if (! check_emailaddr($email)) {
modules/index/include/kundendaten.php 40)         system_failure('Es ist eine ungültige Adresse hinterlegt. So wird das nichts. Bitte die Änderung von vorne machen.');
modules/index/include/kundendaten.php 41)     } 
modules/index/include/kundendaten.php 42) 
Bernd Wurst Neue Datenbanktabelle für T...

Bernd Wurst authored 6 years ago

modules/index/include/kundendaten.php 43)     $args = array(':handle' => $handle,
Bernd Wurst Verify-Funktion für Kunden-...

Bernd Wurst authored 6 years ago

modules/index/include/kundendaten.php 44)                   ':email' => $email);
Bernd Wurst Neue Datenbanktabelle für T...

Bernd Wurst authored 6 years ago

modules/index/include/kundendaten.php 45)     db_query("UPDATE kundendaten.handles SET email=:email WHERE id=:handle", $args);