94e4fcbb052f4ca5976343656fa823c376073abe
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php     5) Written 2008-2018 by schokokeks.org Hosting, namely
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php     6)   Bernd Wurst <bernd@schokokeks.org>
modules/handles/include/handles.php     7)   Hanno Böck <hanno@schokokeks.org>
modules/handles/include/handles.php     8) 
modules/handles/include/handles.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/handles/include/handles.php    10) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php  11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php    12) http://creativecommons.org/publicdomain/zero/1.0/
modules/handles/include/handles.php    13) 
modules/handles/include/handles.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/handles/include/handles.php    15) */
modules/handles/include/handles.php    16) 
modules/handles/include/handles.php    17) require_once('inc/debug.php');
Bernd Wurst Fehlendes Include eingetragen

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  18) require_once('inc/icons.php');
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  19) require_once('inc/security.php');
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php  20) require_role([ROLE_CUSTOMER]);
Bernd Wurst Security

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  21) require_once('class/domain.php');
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php    22) 
Bernd Wurst Setzen als Kundenkontakte e...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  23) require_once('contactapi.php');
Bernd Wurst API-Funktionen um Kontakte...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  24) 
Bernd Wurst $usage ist ein array

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php    25) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php  26) function new_contact()
modules/contacts/include/contacts.php  27) {
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php  28)     return ["id" => null,
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php  29)         "state" => null,
Bernd Wurst Vorbereitung für edit/new

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  30)         "lastchange" => time(),
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php  31)         "nic_handle" => null,
modules/contacts/include/contacts.php  32)         "nic_id" => null,
Bernd Wurst Ermögliche das Speichern de...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php  33)         "salutation" => null,
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php  34)         "company" => null,
modules/contacts/include/contacts.php  35)         "name" => null,
modules/contacts/include/contacts.php  36)         "address" => null,
modules/contacts/include/contacts.php  37)         "zip" => null,
modules/contacts/include/contacts.php  38)         "city" => null,
Bernd Wurst Vorbereitung für edit/new

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  39)         "country" => "DE",
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php  40)         "phone" => null,
modules/contacts/include/contacts.php  41)         "mobile" => null,
modules/contacts/include/contacts.php  42)         "fax" => null,
modules/contacts/include/contacts.php  43)         "email" => null,
modules/contacts/include/contacts.php  44)         "pgp_id" => null,
modules/contacts/include/contacts.php  45)         "pgp_key" => null,
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php  46)         "customer" => $_SESSION['customerinfo']['customerno'], ];
Bernd Wurst Vorbereitung für edit/new

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  47) }
modules/contacts/include/contacts.php  48) 
modules/contacts/include/contacts.php  49) 
Bernd Wurst Ermögliche das Speichern de...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php  50) function get_contact($id, $customer = null)
Bernd Wurst Vorbereitung für edit/new

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  51) {
Bernd Wurst Ermögliche das Speichern de...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php  52)     $c = $_SESSION['customerinfo']['customerno'];
modules/contacts/include/contacts.php  53)     if ($customer != null && have_role(ROLE_SYSADMIN)) {
modules/contacts/include/contacts.php  54)         $c = $customer;
modules/contacts/include/contacts.php  55)     }
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php  56)     $args = [
Bernd Wurst Ermögliche das Speichern de...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php  57)         "cid" => (int) $c,
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php  58)         "id" => (int) $id, ];
Bernd Wurst Ermögliche das Speichern de...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php  59)     $result = db_query("SELECT id, state, lastchange, nic_id, nic_handle, salutation, company, name, address, zip, city, country, phone, mobile, fax, email, pgp_id, pgp_key FROM kundendaten.contacts WHERE id=:id AND customer=:cid", $args);
Bernd Wurst Vorbereitung für edit/new

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  60)     if ($result->rowCount() == 0) {
Bernd Wurst fix runtime warning when cr...

Bernd Wurst authored 4 years ago

modules/contacts/include/contacts.php  61)         DEBUG("Soll Kontakt #".$id." laden, MySQL lieferte aber keine Daten");
Bernd Wurst Vorbereitung für edit/new

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  62)         system_failure("Kontakt nicht gefunden oder gehört nicht diesem Kunden");
modules/contacts/include/contacts.php  63)     }
Bernd Wurst Zeige bestehende Daten in d...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  64)     $contact = $result->fetch();
Bernd Wurst Vorbereitung für edit/new

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  65)     return $contact;
modules/contacts/include/contacts.php  66) }
modules/contacts/include/contacts.php  67) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php  68) function get_contacts()
modules/contacts/include/contacts.php  69) {
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php    70)     $cid = (int) $_SESSION['customerinfo']['customerno'];
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php  71)     $result = db_query("SELECT id, state, lastchange, nic_id, nic_handle, salutation, company, name, address, zip, city, country, phone, mobile, fax, email, pgp_id, pgp_key FROM kundendaten.contacts WHERE (state<>'deleted' OR state IS NULL) AND customer=? ORDER BY COALESCE(company, name)", [$cid]);
modules/contacts/include/contacts.php  72)     $ret = [];
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  73)     while ($contact = $result->fetch()) {
modules/contacts/include/contacts.php  74)         $ret[$contact['id']] = $contact;
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php    75)     }
modules/handles/include/handles.php    76)     DEBUG($ret);
modules/handles/include/handles.php    77)     return $ret;
modules/handles/include/handles.php    78) }
modules/handles/include/handles.php    79) 
Bernd Wurst Prüfe Telefonnummer

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  80) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php  81) function is_domainholder($contactid)
modules/contacts/include/contacts.php  82) {
Bernd Wurst Neue Darstellung der Kontak...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  83)     $contactid = (int) $contactid;
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php  84)     $result = db_query("SELECT id FROM kundendaten.domains WHERE owner=? OR admin_c=?", [$contactid, $contactid]);
Bernd Wurst Neue Darstellung der Kontak...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  85)     if ($result->rowCount() > 0) {
modules/contacts/include/contacts.php  86)         return true;
modules/contacts/include/contacts.php  87)     }
modules/contacts/include/contacts.php  88)     return false;
modules/contacts/include/contacts.php  89) }
modules/contacts/include/contacts.php  90) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php  91) function possible_domainholders()
modules/contacts/include/contacts.php  92) {
Bernd Wurst Prüfe Telefonnummer

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  93)     $allcontacts = get_contacts();
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php  94)     $ret = [];
Bernd Wurst Prüfe Telefonnummer

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  95)     foreach ($allcontacts as $id => $c) {
Bernd Wurst API-Funktionen um Kontakte...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  96)         if (possible_domainholder($c)) {
Bernd Wurst Prüfe Telefonnummer

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php  97)             $ret[$id] = $c;
modules/contacts/include/contacts.php  98)         }
modules/contacts/include/contacts.php  99)     }
modules/contacts/include/contacts.php 100)     return $ret;
modules/contacts/include/contacts.php 101) }
modules/contacts/include/contacts.php 102) 
Bernd Wurst API-Funktionen um Kontakte...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 103) function possible_domainholder($c)
modules/contacts/include/contacts.php 104) {
modules/contacts/include/contacts.php 105)     if ($c['name'] && $c['address'] && $c['zip'] && $c['city'] && $c['country'] && $c['phone'] && $c['email']) {
modules/contacts/include/contacts.php 106)         return true;
modules/contacts/include/contacts.php 107)     }
modules/contacts/include/contacts.php 108)     return false;
modules/contacts/include/contacts.php 109) }
Bernd Wurst Prüfe Telefonnummer

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 110) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 111) function have_mailaddress($email)
Bernd Wurst Speichern der Änderungen mö...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 112) {
modules/contacts/include/contacts.php 113)     $cid = (int) $_SESSION['customerinfo']['customerno'];
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 114)     $result = db_query("SELECT id FROM kundendaten.contacts WHERE customer=? AND email=?", [$cid, $email]);
Bernd Wurst Speichern der Änderungen mö...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 115)     if ($result->rowCount() > 0) {
modules/contacts/include/contacts.php 116)         return true;
modules/contacts/include/contacts.php 117)     }
modules/contacts/include/contacts.php 118)     return false;
modules/contacts/include/contacts.php 119) }
modules/contacts/include/contacts.php 120) 
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php   121) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 122) function possible_kundenkontakt($c)
modules/contacts/include/contacts.php 123) {
Bernd Wurst Setzen als Kundenkontakte e...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 124)     if ($c['name'] && $c['email']) {
modules/contacts/include/contacts.php 125)         return true;
modules/contacts/include/contacts.php 126)     }
modules/contacts/include/contacts.php 127) }
modules/contacts/include/contacts.php 128) 
modules/contacts/include/contacts.php 129) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 130) function set_kundenkontakt($typ, $id)
modules/contacts/include/contacts.php 131) {
Bernd Wurst Setzen als Kundenkontakte e...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 132)     if (! $id) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 133)         $id = null;
Bernd Wurst Setzen als Kundenkontakte e...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 134)     } else {
modules/contacts/include/contacts.php 135)         $id = (int) $id;
modules/contacts/include/contacts.php 136)     }
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 137)     $args = [
Bernd Wurst Setzen als Kundenkontakte e...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 138)         "kunde" => (int) $_SESSION['customerinfo']['customerno'],
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 139)         "contact" => $id,
modules/contacts/include/contacts.php 140)         ];
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 141)     $field = null;
Bernd Wurst Setzen als Kundenkontakte e...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 142)     if ($typ == 'kunde') {
modules/contacts/include/contacts.php 143)         $field = 'contact_kunde';
modules/contacts/include/contacts.php 144)     } elseif ($typ == 'extern') {
modules/contacts/include/contacts.php 145)         $field = 'contact_extern';
modules/contacts/include/contacts.php 146)     } elseif ($typ == 'rechnung') {
modules/contacts/include/contacts.php 147)         $field = 'contact_rechnung';
Bernd Wurst Verwaltung eines betrieblic...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 148)     } elseif ($typ == 'dataprotection') {
modules/contacts/include/contacts.php 149)         $field = 'contact_dataprotection';
Bernd Wurst Setzen als Kundenkontakte e...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 150)     } else {
modules/contacts/include/contacts.php 151)         system_failure("Falscher Typ!");
modules/contacts/include/contacts.php 152)     }
modules/contacts/include/contacts.php 153)     db_query("UPDATE kundendaten.kunden SET ".$field."=:contact WHERE id=:kunde", $args);
Bernd Wurst Synchronisiere die Legacy-D...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 154)     sync_legacy_contactdata();
Bernd Wurst Setzen als Kundenkontakte e...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 155) }
modules/contacts/include/contacts.php 156) 
Bernd Wurst Synchronisiere die Legacy-D...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 157) 
modules/contacts/include/contacts.php 158) function sync_legacy_contactdata()
modules/contacts/include/contacts.php 159) {
modules/contacts/include/contacts.php 160)     $cid = (int) $_SESSION['customerinfo']['customerno'];
modules/contacts/include/contacts.php 161)     $kundenkontakte = get_kundenkontakte();
modules/contacts/include/contacts.php 162)     $kunde = get_contact($kundenkontakte['kunde']);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 163)     $vorname = null;
modules/contacts/include/contacts.php 164)     $nachname = null;
Bernd Wurst Beim synchronisieren der le...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 165)     if ($kunde['name']) {
modules/contacts/include/contacts.php 166)         $vorname = explode(' ', $kunde['name'], 2)[0];
modules/contacts/include/contacts.php 167)         $nachname = explode(' ', $kunde['name'], 2)[1];
modules/contacts/include/contacts.php 168)     }
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 169)     $args = ["firma" => $kunde['company'],
Bernd Wurst Ermögliche das Speichern de...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 170)             "anrede" => $kunde['salutation'],
Bernd Wurst Beim synchronisieren der le...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 171)             "vorname" => $vorname,
modules/contacts/include/contacts.php 172)             "nachname" => $nachname,
Bernd Wurst Synchronisiere die Legacy-D...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 173)             "adresse" => $kunde['address'],
modules/contacts/include/contacts.php 174)             "plz" => $kunde['zip'],
modules/contacts/include/contacts.php 175)             "ort" => $kunde['city'],
modules/contacts/include/contacts.php 176)             "land" => $kunde['country'],
modules/contacts/include/contacts.php 177)             "telefon" => $kunde['phone'],
modules/contacts/include/contacts.php 178)             "mobile" => $kunde['mobile'],
modules/contacts/include/contacts.php 179)             "telefax" => $kunde['fax'],
modules/contacts/include/contacts.php 180)             "email" => $kunde['email'],
Bernd Wurst Synchronisiere pgp-key-date...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 181)             "pgp_id" => $kunde['pgp_id'],
modules/contacts/include/contacts.php 182)             "pgp_key" => $kunde['pgp_key'],
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 183)             "cid" => $cid, ];
Bernd Wurst Ermögliche das Speichern de...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 184)     db_query("UPDATE kundendaten.kunden SET anrede=:anrede, firma=:firma, vorname=:vorname, nachname=:nachname, adresse=:adresse,
Bernd Wurst Synchronisiere pgp-key-date...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 185)             plz=:plz, ort=:ort, land=:land, telefon=:telefon, mobile=:mobile, telefax=:telefax, email=:email, 
modules/contacts/include/contacts.php 186)             pgp_id=:pgp_id, pgp_key=:pgp_key WHERE id=:cid", $args);
Bernd Wurst Synchronisiere die Legacy-D...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 187)     if ($kundenkontakte['extern']) {
modules/contacts/include/contacts.php 188)         $extern = get_contact($kundenkontakte['extern'])['email'];
modules/contacts/include/contacts.php 189)         if ($extern) {
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 190)             db_query("UPDATE kundendaten.kunden SET email_extern=? WHERE id=?", [$extern, $cid]);
Bernd Wurst Synchronisiere die Legacy-D...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 191)         }
modules/contacts/include/contacts.php 192)     }
modules/contacts/include/contacts.php 193)     if ($kundenkontakte['rechnung']) {
modules/contacts/include/contacts.php 194)         $kunde = get_contact($kundenkontakte['rechnung']);
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 195)         $args = ["firma" => $kunde['company'],
Bernd Wurst Synchronisiere die Legacy-D...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 196)                 "name" => $kunde['name'],
modules/contacts/include/contacts.php 197)                 "adresse" => $kunde['address'],
modules/contacts/include/contacts.php 198)                 "plz" => $kunde['zip'],
modules/contacts/include/contacts.php 199)                 "ort" => $kunde['city'],
modules/contacts/include/contacts.php 200)                 "email" => $kunde['email'],
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 201)                 "cid" => $cid, ];
Bernd Wurst Synchronisiere die Legacy-D...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 202)         db_query("UPDATE kundendaten.kunden SET re_firma=:firma, re_name=:name, re_adresse=:adresse,
modules/contacts/include/contacts.php 203)                 re_plz=:plz, re_ort=:ort, email_rechnung=:email WHERE id=:cid", $args);
modules/contacts/include/contacts.php 204)     }
modules/contacts/include/contacts.php 205) }
modules/contacts/include/contacts.php 206) 
modules/contacts/include/contacts.php 207) 
Bernd Wurst Erlaube Admins das Abfragen...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 208) function get_kundenkontakte($customer = null)
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 209) {
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php   210)     $cid = (int) $_SESSION['customerinfo']['customerno'];
Bernd Wurst Erlaube Admins das Abfragen...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 211)     if ($customer and have_role(ROLE_SYSADMIN)) {
modules/contacts/include/contacts.php 212)         $cid = (int) $customer;
modules/contacts/include/contacts.php 213)     }
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 214)     $result = db_query("SELECT contact_kunde, contact_extern, contact_rechnung, contact_dataprotection FROM kundendaten.kunden WHERE id=?", [$cid]);
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php   215)     $res = $result->fetch();
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 216)     $ret = ["kunde" => $res['contact_kunde'],
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 217)                  "extern" => $res['contact_extern'],
Bernd Wurst Verwaltung eines betrieblic...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 218)                  "rechnung" => $res['contact_rechnung'],
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 219)                  "dataprotection" => $res['contact_dataprotection'], ];
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php   220)     return $ret;
modules/handles/include/handles.php   221) }
modules/handles/include/handles.php   222) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 223) function save_emailaddress($id, $email)
Bernd Wurst Speichern der Änderungen mö...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 224) {
Bernd Wurst Aktualisiere Domain- und In...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 225)     // Speichert eine E-Mail-Adresse direkt, z.B. wenn diese schonmal geprüft wurde
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 226)     $args = ["cid" => (int) $_SESSION['customerinfo']['customerno'],
Bernd Wurst Speichere E-Mail-Adresse oh...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 227)         "id" => (int) $id,
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 228)         "email" => $email, ];
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 229)     db_query("UPDATE kundendaten.contacts SET email=:email WHERE id=:id AND customer=:cid", $args);
Bernd Wurst Speichern der Änderungen mö...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 230) }
modules/contacts/include/contacts.php 231) 
modules/contacts/include/contacts.php 232) function save_contact($c)
modules/contacts/include/contacts.php 233) {
Bernd Wurst API-Funktionen um Kontakte...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 234)     if ($c['nic_id']) {
modules/contacts/include/contacts.php 235)         if (! possible_domainholder($c)) {
modules/contacts/include/contacts.php 236)             system_failure("Sie haben ein Feld geleert, das für die Eigenschaft als Domaininhaber erhalten bleiben muss. Ihre Änderungen wurden nicht gespeichert.");
modules/contacts/include/contacts.php 237)         }
modules/contacts/include/contacts.php 238)     }
Bernd Wurst Speichern der Änderungen mö...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 239)     for ($i=0;array_key_exists($i, $c);$i++) {
modules/contacts/include/contacts.php 240)         unset($c[$i]);
modules/contacts/include/contacts.php 241)     }
modules/contacts/include/contacts.php 242)     unset($c['state']);
modules/contacts/include/contacts.php 243)     unset($c['lastchange']);
modules/contacts/include/contacts.php 244)     unset($c['email']);
modules/contacts/include/contacts.php 245)     $c['customer'] = (int) $_SESSION['customerinfo']['customerno'];
Bernd Wurst ensure two-character-countr...

Bernd Wurst authored 3 years ago

modules/contacts/include/contacts.php 246)     if ($c['country'] == 'D') {
modules/contacts/include/contacts.php 247)         $c['country'] = 'DE';
modules/contacts/include/contacts.php 248)     }
modules/contacts/include/contacts.php 249)     if (strlen($c['country']) != 2) {
modules/contacts/include/contacts.php 250)         system_failure('Bitte geben Sie das Land als Zwei-Buchstaben-Kürzel an.');
modules/contacts/include/contacts.php 251)     }
Bernd Wurst Speichern der Änderungen mö...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 252)     if ($c['id']) {
modules/contacts/include/contacts.php 253)         // Kontakt bestaht schon, Update
Bernd Wurst Ermögliche das Speichern de...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 254)         db_query("UPDATE kundendaten.contacts SET nic_id=:nic_id, nic_handle=:nic_handle, salutation=:salutation, company=:company, name=:name, address=:address, zip=:zip, city=:city, country=:country, phone=:phone, mobile=:mobile, fax=:fax, pgp_id=:pgp_id, pgp_key=:pgp_key WHERE id=:id AND customer=:customer", $c);
Bernd Wurst Speichern der Änderungen mö...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 255)     } else {
modules/contacts/include/contacts.php 256)         unset($c['id']);
modules/contacts/include/contacts.php 257)         // Neu anlegen
Bernd Wurst Ermögliche das Speichern de...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 258)         db_query("INSERT INTO kundendaten.contacts (nic_id, nic_handle, customer, salutation, company, name, address, zip, city, country, phone, mobile, fax, pgp_id, pgp_key) VALUES (:nic_id, :nic_handle, :customer, :salutation, :company, :name, :address, :zip, :city, :country, :phone, :mobile, :fax, :pgp_id, :pgp_key)", $c);
Bernd Wurst Speichern der Änderungen mö...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 259)         $c['id'] = db_insert_id();
modules/contacts/include/contacts.php 260)     }
Bernd Wurst Synchronisiere die Legacy-D...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 261)     // FIXME: Das sollte eigentlich nicht bei jedem einzelnen Speicherovrgang passieren
modules/contacts/include/contacts.php 262)     sync_legacy_contactdata();
Bernd Wurst Speichern der Änderungen mö...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 263)     return $c['id'];
modules/contacts/include/contacts.php 264) }
modules/contacts/include/contacts.php 265) 
modules/contacts/include/contacts.php 266) 
modules/contacts/include/contacts.php 267) function send_emailchange_token($id, $email)
modules/contacts/include/contacts.php 268) {
modules/contacts/include/contacts.php 269)     if (! check_emailaddr($email)) {
modules/contacts/include/contacts.php 270)         system_falure("Die E-Mail-Adresse scheint nicht gültig zu sein.");
modules/contacts/include/contacts.php 271)     }
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 272)     $args = ["id" => (int) $id,
Bernd Wurst Speichern der Änderungen mö...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 273)         "email" => $email,
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 274)         "token" => random_string(20), ];
Bernd Wurst Speichern der Änderungen mö...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 275) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 276)     db_query("INSERT INTO kundendaten.mailaddress_token (token, expire, contact, email) VALUES (:token, NOW() + INTERVAL 1 DAY, :id, :email)", $args);
Bernd Wurst Speichern der Änderungen mö...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 277)     DEBUG('Token erzeugt: '.print_r($args, true));
modules/contacts/include/contacts.php 278)     $message = 'Diese E-Mail-Adresse wurde angegeben als möglicher Domaininhaber oder Kundenkontakt bei schokokeks.org Hosting.
modules/contacts/include/contacts.php 279) 
modules/contacts/include/contacts.php 280) Bitte bestätigen Sie mit einem Klick auf den nachfolgenden Link, dass diese E-Mail-Adresse funktioniert und verwendet werden soll:
modules/contacts/include/contacts.php 281) 
modules/contacts/include/contacts.php 282)     '.config('webinterface_url').'/verify'.$args['token'].'
modules/contacts/include/contacts.php 283) 
modules/contacts/include/contacts.php 284) Wenn Sie diesen Link nicht innerhalb von 24 Stunden abrufen, wird Ihre Adresse gelöscht und nicht verwendet.
modules/contacts/include/contacts.php 285) Sollten Sie mit der Verwendung Ihrer E-Mail-Adresse nicht einverstanden sein, so ignorieren Sie daher bitte diese Nachricht oder teilen Sie uns dies mit.
modules/contacts/include/contacts.php 286) 
modules/contacts/include/contacts.php 287) -- 
modules/contacts/include/contacts.php 288) schokokeks.org GbR, Bernd Wurst, Johannes Böck
modules/contacts/include/contacts.php 289) Köchersberg 32, 71540 Murrhardt
modules/contacts/include/contacts.php 290) 
modules/contacts/include/contacts.php 291) https://schokokeks.org
modules/contacts/include/contacts.php 292) ';
modules/contacts/include/contacts.php 293)     # send welcome message
modules/contacts/include/contacts.php 294)     mail($email, '=?UTF-8?Q?Best=C3=A4tigung_Ihrer_E-Mail-Adresse?=', $message, "X-schokokeks-org-message: verify\nFrom: ".config('company_name').' <'.config('adminmail').">\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\n");
modules/contacts/include/contacts.php 295) }
Bernd Wurst E-Mail-Adresse verifizieren...

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php   296) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 297) function update_pending($contactid)
modules/contacts/include/contacts.php 298) {
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 299)     $contactid = (int) $contactid;
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 300)     $result = db_query("SELECT email FROM kundendaten.mailaddress_token WHERE contact=?", [$contactid]);
Bernd Wurst E-Mail-Adresse verifizieren...

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php   301)     if ($result->rowCount() == 0) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 302)         return null;
Bernd Wurst E-Mail-Adresse verifizieren...

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php   303)     }
modules/handles/include/handles.php   304)     $res = $result->fetch();
modules/handles/include/handles.php   305)     return $res['email'];
modules/handles/include/handles.php   306) }
modules/handles/include/handles.php   307) 
modules/handles/include/handles.php   308) 
modules/handles/include/handles.php   309) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 310) function delete_contact($id)
modules/contacts/include/contacts.php 311) {
Bernd Wurst Neue Darstellung der Kontak...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 312)     $c = get_contact($id);
Bernd Wurst Zeige Kundenkontakte immer...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 313)     $kundenkontakte = get_kundenkontakte();
modules/contacts/include/contacts.php 314)     if ($id == $kundenkontakte['kunde']) {
modules/contacts/include/contacts.php 315)         system_failure("Die Stamm-Adresse kann nicht gelöscht werden, bitte erst eine andere Adresse als Stamm-Adresse festlegen!");
modules/contacts/include/contacts.php 316)     }
modules/contacts/include/contacts.php 317)     if ($id == $kundenkontakte['rechnung']) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 318)         set_kundenkontakt('rechnung', null);
Bernd Wurst Zeige Kundenkontakte immer...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 319)     }
modules/contacts/include/contacts.php 320)     if ($id == $kundenkontakte['extern']) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 321)         set_kundenkontakt('extern', null);
Bernd Wurst Zeige Kundenkontakte immer...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 322)     }
Bernd Wurst Neue Darstellung der Kontak...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 323)     if ($c['nic_id']) {
modules/contacts/include/contacts.php 324)         // Lösche bei der Registry
modules/contacts/include/contacts.php 325)         $c['state'] = 'deleted';
modules/contacts/include/contacts.php 326)         upload_contact($c);
modules/contacts/include/contacts.php 327)     }
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 328)     db_query("UPDATE kundendaten.contacts SET state='deleted' WHERE id=?", [$c['id']]);
Bernd Wurst Neue Darstellung der Kontak...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 329) }
modules/contacts/include/contacts.php 330) 
Bernd Wurst Security

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 331) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 332) function search_pgp_key($search)
modules/contacts/include/contacts.php 333) {
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 334)     if (! check_emailaddr($search)) {
modules/contacts/include/contacts.php 335)         # Keine Ausgabe weil diese Funktion im AJAX-Call verwendet wird
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 336)         return null;
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 337)     }
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 338)     $output = [];
Bernd Wurst timeout for keyserver opera...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 339)     $command = 'LC_ALL=C /usr/bin/timeout 10 /usr/bin/gpg --batch --with-colons --keyserver hkps://hkps.pool.sks-keyservers.net --search-key '.escapeshellarg($search);
Bernd Wurst Prüfe die Verwendbarkeit vo...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 340)     DEBUG($command);
modules/contacts/include/contacts.php 341)     exec($command, $output);
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 342)     DEBUG($output);
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 343)     $keys = [];
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 344)     foreach ($output as $row) {
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 345)         if (substr($row, 0, 4) === 'pub:') {
modules/contacts/include/contacts.php 346)             $parts = explode(':', $row);
modules/contacts/include/contacts.php 347)             if ($parts[5] && ($parts[5] < time())) {
modules/contacts/include/contacts.php 348)                 // abgelaufener key
modules/contacts/include/contacts.php 349)                 continue;
modules/contacts/include/contacts.php 350)             }
modules/contacts/include/contacts.php 351)             // array-key = create-timestamp
modules/contacts/include/contacts.php 352)             // array-value = key-id
modules/contacts/include/contacts.php 353)             $keys[$parts[4]] = $parts[1];
modules/contacts/include/contacts.php 354)         }
modules/contacts/include/contacts.php 355)     }
modules/contacts/include/contacts.php 356)     if (count($keys) == 0) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 357)         return null;
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 358)     }
modules/contacts/include/contacts.php 359)     ksort($keys, SORT_NUMERIC);
modules/contacts/include/contacts.php 360)     DEBUG(end($keys));
modules/contacts/include/contacts.php 361)     // liefert den neuesten Key
modules/contacts/include/contacts.php 362)     return end($keys);
modules/contacts/include/contacts.php 363) }
modules/contacts/include/contacts.php 364) 
modules/contacts/include/contacts.php 365) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 366) function fetch_pgp_key($pgp_id)
modules/contacts/include/contacts.php 367) {
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 368)     $output = [];
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 369)     $ret = null;
Bernd Wurst timeout for keyserver opera...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 370)     $command = '/usr/bin/timeout 10 /usr/bin/gpg --batch --keyserver hkps://hkps.pool.sks-keyservers.net --no-auto-check-trustdb --trust-model=always --recv-key '.escapeshellarg($pgp_id);
Bernd Wurst Prüfe die Verwendbarkeit vo...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 371)     DEBUG($command);
modules/contacts/include/contacts.php 372)     exec($command, $output, $ret);
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 373)     DEBUG($output);
modules/contacts/include/contacts.php 374)     DEBUG($ret);
modules/contacts/include/contacts.php 375)     if ($ret == 0) {
Bernd Wurst Prüfe die Verwendbarkeit vo...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 376)         $command = '/usr/bin/gpg --batch --with-colons --list-keys '.escapeshellarg($pgp_id);
modules/contacts/include/contacts.php 377)         DEBUG($command);
modules/contacts/include/contacts.php 378)         exec($command, $output);
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 379)         DEBUG($output);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 380)         foreach ($output as $row) {
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 381)             if (substr($row, 0, 4) === 'fpr:') {
modules/contacts/include/contacts.php 382)                 $parts = explode(':', $row);
modules/contacts/include/contacts.php 383)                 // Fingerprint
modules/contacts/include/contacts.php 384)                 return $parts[9];
modules/contacts/include/contacts.php 385)             }
modules/contacts/include/contacts.php 386)         }
modules/contacts/include/contacts.php 387)     }
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 388)     return null;
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 389) }
modules/contacts/include/contacts.php 390) 
schokokeks.org web services codestyle fixes

schokokeks.org web services authored 5 years ago

modules/contacts/include/contacts.php 391) function import_pgp_key($pgp_key)
Bernd Wurst Prüfe die Verwendbarkeit vo...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 392) {
modules/contacts/include/contacts.php 393)     $command = 'LC_ALL=C /usr/bin/gpg --batch --no-auto-check-trustdb --trust-model=always --import';
modules/contacts/include/contacts.php 394)     DEBUG($command);
modules/contacts/include/contacts.php 395)     $proc = popen($command, 'w');
modules/contacts/include/contacts.php 396)     fwrite($proc, $pgp_key);
modules/contacts/include/contacts.php 397)     $ret = pclose($proc);
modules/contacts/include/contacts.php 398)     DEBUG('Import des PGP-Keys: '.$ret);
modules/contacts/include/contacts.php 399)     return $ret === 0;
modules/contacts/include/contacts.php 400) }
modules/contacts/include/contacts.php 401) 
modules/contacts/include/contacts.php 402) function test_pgp_key($pgp_id)
modules/contacts/include/contacts.php 403) {
modules/contacts/include/contacts.php 404)     $command = 'LC_ALL=C /usr/bin/gpg --batch --trust-model=always --encrypt --recipient '.escapeshellarg($pgp_id);
modules/contacts/include/contacts.php 405)     DEBUG($command);
modules/contacts/include/contacts.php 406)     $proc = popen($command, 'w');
modules/contacts/include/contacts.php 407)     $ret = pclose($proc);
modules/contacts/include/contacts.php 408)     DEBUG('Test des PGP-Key: '.$ret);
modules/contacts/include/contacts.php 409)     return $ret === 0;
modules/contacts/include/contacts.php 410) }
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 411) 
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 412) function domainlist_by_contact($c)
modules/contacts/include/contacts.php 413) {
Bernd Wurst Beim synchronisieren der le...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 414)     $cid = (int) $_SESSION['customerinfo']['customerno'];
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 415)     $result = db_query("SELECT id FROM kundendaten.domains WHERE (owner=? OR admin_c=?) AND kunde=?", [$c['id'], $c['id'], $cid]);
modules/contacts/include/contacts.php 416)     $ret = [];
Bernd Wurst Security

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 417)     while ($domain = $result->fetch()) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 418)         $ret[] = new Domain((int) $domain['id']);
Bernd Wurst Security

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 419)     }
modules/contacts/include/contacts.php 420)     return $ret;
modules/contacts/include/contacts.php 421) }
modules/contacts/include/contacts.php 422) 
modules/contacts/include/contacts.php 423) 
Bernd Wurst Choose-Funktion

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 424) function contact_as_string($contact)
Bernd Wurst Abstrahieren der Anzeigefun...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 425) {
Bernd Wurst Umstellung von filter_input...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 426)     $adresse = nl2br(filter_output_html("\n".$contact['address']."\n".$contact['country'].'-'.$contact['zip'].' '.$contact['city']));
Bernd Wurst Abstrahieren der Anzeigefun...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 427)     if (! $contact['city']) {
modules/contacts/include/contacts.php 428)         $adresse = '';
modules/contacts/include/contacts.php 429)     }
Bernd Wurst Umstellung von filter_input...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 430)     $name = filter_output_html($contact['name']);
Bernd Wurst Abstrahieren der Anzeigefun...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 431)     if ($contact['company']) {
Bernd Wurst Umstellung von filter_input...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 432)         $name = filter_output_html($contact['company'])."<br />".filter_output_html($contact['name']);
Bernd Wurst Abstrahieren der Anzeigefun...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 433)     }
Bernd Wurst Umstellung von filter_input...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 434)     $email = filter_output_html($contact['email']);
Bernd Wurst Abstrahieren der Anzeigefun...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 435)     $new_email = update_pending($contact['id']);
modules/contacts/include/contacts.php 436)     if ($new_email) {
Bernd Wurst Umstellung von filter_input...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 437)         $email = "<strike>$email</strike><br/>".filter_output_html($new_email).footnote('Die E-Mail-Adresse wurde noch nicht bestätigt');
Bernd Wurst Abstrahieren der Anzeigefun...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 438)     }
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/include/contacts.php 439)     $email = implode("<br>\n", array_filter([$email, filter_output_html($contact['phone']), filter_output_html($contact['fax']), filter_output_html($contact['mobile'])]));
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 440)     $pgp = '';
modules/contacts/include/contacts.php 441)     if ($contact['pgp_id']) {
modules/contacts/include/contacts.php 442)         $pgpid = $contact['pgp_id'];
modules/contacts/include/contacts.php 443)         if (strlen($pgpid) > 20) {
modules/contacts/include/contacts.php 444)             $pgpid = substr($pgpid, 0, 20).' '.substr($pgpid, 20);
modules/contacts/include/contacts.php 445)         }
Bernd Wurst Umstellung von filter_input...

Bernd Wurst authored 5 years ago

modules/contacts/include/contacts.php 446)         $pgp = '<p class="contact-pgp">'.other_icon('key.png').' PGP ID:<br>'.filter_output_html($pgpid).'</p>';
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 447)     }
Hanno remove whitespace in empty...

Hanno authored 6 years ago

modules/contacts/include/contacts.php 448) 
Bernd Wurst Ermögliche das Setzen des P...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 449)     $contact_string = "<p class=\"contact-id\">#{$contact['id']}</p><p class=\"contact-address\"><strong>$name</strong>$adresse</p><p class=\"contact-contact\">$email</p>$pgp";
Bernd Wurst Choose-Funktion

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 450)     return $contact_string;
modules/contacts/include/contacts.php 451) }
modules/contacts/include/contacts.php 452) 
modules/contacts/include/contacts.php 453) function display_contact($contact, $additional_html='', $cssclass='')
modules/contacts/include/contacts.php 454) {
modules/contacts/include/contacts.php 455)     $html = contact_as_string($contact);
modules/contacts/include/contacts.php 456)     $contact_string = "<div class=\"contact {$cssclass}\" id=\"contact-{$contact['id']}\">{$html}{$additional_html}</div>";