fe8d7c2025e33349ab1e51c0e906ec3ee69dcff2
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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

modules/contacts/include/verify.php    5) Written by schokokeks.org Hosting, namely
Bernd Wurst Verify-Funktion für Kunden-...

Bernd Wurst authored 6 years ago

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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 2 years ago

modules/contacts/include/verify.php    9) This code is published under a 0BSD license.
Bernd Wurst Verify-Funktion für Kunden-...

Bernd Wurst authored 6 years ago

modules/index/include/kundendaten.php 10) 
modules/index/include/kundendaten.php 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.
modules/index/include/kundendaten.php 12) */
modules/index/include/kundendaten.php 13) 
Bernd Wurst Ermögliche das Bestätigen d...

Bernd Wurst authored 6 years ago

modules/contacts/include/verify.php   14) require_once("inc/api.php");
Bernd Wurst sync legacy contact data wh...

Bernd Wurst authored 4 years ago

modules/contacts/include/verify.php   15) require_once("contacts.php");
Bernd Wurst Verify-Funktion für Kunden-...

Bernd Wurst authored 6 years ago

modules/index/include/kundendaten.php 16) 
modules/index/include/kundendaten.php 17) function verify_mail_token($token)
modules/index/include/kundendaten.php 18) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/verify.php   19)     db_query("DELETE FROM kundendaten.mailaddress_token WHERE expire<NOW()");
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/verify.php   20)     $args = [":token" => $token];
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/verify.php   21)     $result = db_query("SELECT contact, email FROM kundendaten.mailaddress_token WHERE token=:token AND expire>NOW()", $args);
modules/contacts/include/verify.php   22)     if ($result->rowCount() > 0) {
modules/contacts/include/verify.php   23)         $line = $result->fetch();
modules/contacts/include/verify.php   24)         db_query("DELETE FROM kundendaten.mailaddress_token WHERE token=:token", $args);
modules/contacts/include/verify.php   25)         return $line;
modules/contacts/include/verify.php   26)     } else {
modules/contacts/include/verify.php   27)         return null;
modules/contacts/include/verify.php   28)     }
Bernd Wurst Verify-Funktion für Kunden-...

Bernd Wurst authored 6 years ago

modules/index/include/kundendaten.php 29) }
modules/index/include/kundendaten.php 30) 
modules/index/include/kundendaten.php 31) 
modules/index/include/kundendaten.php 32) function update_mailaddress($daten)
modules/index/include/kundendaten.php 33) {
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 6 years ago

modules/contacts/include/verify.php   34)     $contact = $daten['contact'];
Bernd Wurst Verify-Funktion für Kunden-...

Bernd Wurst authored 6 years ago

modules/index/include/kundendaten.php 35)     $email = $daten['email'];
modules/index/include/kundendaten.php 36) 
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

modules/contacts/include/verify.php   37)     if (!check_emailaddr($email)) {
Bernd Wurst Verify-Funktion für Kunden-...

Bernd Wurst authored 6 years ago

modules/index/include/kundendaten.php 38)         system_failure('Es ist eine ungültige Adresse hinterlegt. So wird das nichts. Bitte die Änderung von vorne machen.');
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/verify.php   39)     }
Bernd Wurst Verify-Funktion für Kunden-...

Bernd Wurst authored 6 years ago

modules/index/include/kundendaten.php 40) 
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/verify.php   41)     $args = [':contact' => $contact,
Hanno Böck Neue codingstyle-rule array...

Hanno Böck authored 8 months ago

modules/contacts/include/verify.php   42)         ':email' => $email, ];
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 6 years ago

modules/contacts/include/verify.php   43)     db_query("UPDATE kundendaten.contacts SET email=:email WHERE id=:contact", $args);
Bernd Wurst sync legacy contact data wh...

Bernd Wurst authored 4 years ago

modules/contacts/include/verify.php   44)     sync_legacy_contactdata();
Bernd Wurst Verify-Funktion für Kunden-...

Bernd Wurst authored 6 years ago

modules/index/include/kundendaten.php 45) }
modules/index/include/kundendaten.php 46) 
modules/index/include/kundendaten.php 47) 
Bernd Wurst Ermögliche das Bestätigen d...

Bernd Wurst authored 6 years ago

modules/contacts/include/verify.php   48) function upload_changed_contact($id)
modules/contacts/include/verify.php   49) {
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/verify.php   50)     $args = [
modules/contacts/include/verify.php   51)         "id" => (int) $id, ];
Bernd Wurst Ermögliche das Bestätigen d...

Bernd Wurst authored 6 years ago

modules/contacts/include/verify.php   52)     $result = db_query("SELECT id, state, lastchange, nic_id, nic_handle, company, name, address, zip, city, country, phone, mobile, fax, email, pgp_id, pgp_key FROM kundendaten.contacts WHERE id=:id", $args);
modules/contacts/include/verify.php   53)     if ($result->rowCount() == 0) {
modules/contacts/include/verify.php   54)         return ;
modules/contacts/include/verify.php   55)     }
modules/contacts/include/verify.php   56)     $c = $result->fetch();
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

modules/contacts/include/verify.php   57)     if (!($c['nic_id'] || $c['nic_handle'])) {
Bernd Wurst Ermögliche das Bestätigen d...

Bernd Wurst authored 6 years ago

modules/contacts/include/verify.php   58)         return ;
modules/contacts/include/verify.php   59)     }
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/verify.php   60)     $ac = [];
Bernd Wurst Ermögliche das Bestätigen d...

Bernd Wurst authored 6 years ago

modules/contacts/include/verify.php   61)     $ac['id'] = $c['nic_id'];
modules/contacts/include/verify.php   62)     $ac['handle'] = $c['nic_handle'];
modules/contacts/include/verify.php   63)     $ac['type'] = 'person';
modules/contacts/include/verify.php   64)     $ac['name'] = $c['name'];
modules/contacts/include/verify.php   65)     $ac['organization'] = $c['company'];
modules/contacts/include/verify.php   66)     $ac['street'] = explode("\n", $c['address'], 3);
modules/contacts/include/verify.php   67)     $ac['postalCode'] = $c['zip'];
modules/contacts/include/verify.php   68)     $ac['city'] = $c['city'];
modules/contacts/include/verify.php   69)     $ac['country'] = strtolower($c['country']);
modules/contacts/include/verify.php   70)     $ac['emailAddress'] = $c['email'];
modules/contacts/include/verify.php   71)     $ac['phoneNumber'] = $c['phone'];
modules/contacts/include/verify.php   72)     $ac['faxNumber'] = $c['fax'];
modules/contacts/include/verify.php   73)     if ($c['state'] == 'deleted') {
modules/contacts/include/verify.php   74)         $ac['hidden'] = true;
modules/contacts/include/verify.php   75)     }
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/verify.php   76)     $data = ["contact" => $ac,
Hanno Böck Neue codingstyle-rule array...

Hanno Böck authored 8 months ago

modules/contacts/include/verify.php   77)         "actingAs" => "designatedAgent", ];
Bernd Wurst Ermögliche das Bestätigen d...

Bernd Wurst authored 6 years ago

modules/contacts/include/verify.php   78)     $result = api_request('contactUpdate', $data);
modules/contacts/include/verify.php   79)     if ($result['status'] != 'success') {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/verify.php   80)         warning("Es gab ein Problem beim Hochladen der geänderten Adresse zum Domainregistrar. Das sollte nicht sein!");