3ef995c2108fe77d22c0b556fb9717cb848bc48f
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 7 years ago

modules/handles/list.php   1) <?php
Hanno Böck Add newlines before comment...

Hanno Böck authored 4 months ago

modules/contacts/list.php  2) 
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 7 years ago

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

Hanno Böck authored 2 years ago

modules/contacts/list.php  6) Written by schokokeks.org Hosting, namely
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 7 years ago

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

Hanno Böck authored 2 years ago

modules/contacts/list.php 10) This code is published under a 0BSD license.
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 7 years ago

modules/handles/list.php  11) 
modules/handles/list.php  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.
modules/handles/list.php  13) */
modules/handles/list.php  14) 
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 7 years ago

modules/contacts/list.php 15) require_once('contacts.php');
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 7 years ago

modules/handles/list.php  16) require_once('inc/debug.php');
Bernd Wurst Kontakt kopieren

Bernd Wurst authored 7 years ago

modules/contacts/list.php 17) require_once('inc/icons.php');
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 7 years ago

modules/handles/list.php  18) 
modules/handles/list.php  19) require_once('session/start.php');
modules/handles/list.php  20) 
modules/handles/list.php  21) 
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/list.php 22) require_role([ROLE_CUSTOMER]);
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 7 years ago

modules/handles/list.php  23) 
modules/handles/list.php  24) title("Adressen verwalten");
modules/handles/list.php  25) 
modules/handles/list.php  26) 
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 7 years ago

modules/contacts/list.php 27) $contacts = get_contacts();
modules/contacts/list.php 28) $kundenkontakte = get_kundenkontakte();
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 7 years ago

modules/handles/list.php  29) 
modules/handles/list.php  30) output('<p>Sie haben aktuell diese Adressen gespeichert:</p>
Bernd Wurst Neue Darstellung der Kontak...

Bernd Wurst authored 7 years ago

modules/contacts/list.php 31) <div class="contact-list">');
Bernd Wurst Security

Bernd Wurst authored 7 years ago

modules/contacts/list.php 32) 
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/list.php 33) $liste = array_merge(array_filter([$kundenkontakte['kunde'], $kundenkontakte['rechnung'], $kundenkontakte['extern']]), array_keys($contacts));
modules/contacts/list.php 34) $already_displayed = [];
Bernd Wurst Security

Bernd Wurst authored 7 years ago

modules/contacts/list.php 35) foreach ($liste as $id) {
Bernd Wurst Zeige Kundenkontakte immer...

Bernd Wurst authored 7 years ago

modules/contacts/list.php 36)     if (in_array($id, $already_displayed)) {
Bernd Wurst Security

Bernd Wurst authored 7 years ago

modules/contacts/list.php 37)         continue;
modules/contacts/list.php 38)     }
Bernd Wurst Zeige Kundenkontakte immer...

Bernd Wurst authored 7 years ago

modules/contacts/list.php 39)     $already_displayed[] = $id;
Bernd Wurst Adressdarstellung gleichmäß...

Bernd Wurst authored 7 years ago

modules/contacts/list.php 40)     $cssclass = 'contact-mainlist ';
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

modules/contacts/list.php 41)     if (!isset($contacts[$id])) {
Bernd Wurst catch a situation when cont...

Bernd Wurst authored 5 years ago

modules/contacts/list.php 42)         system_failure('Fehlerhafte Kunden-Zuordnung bei den Kontakten');
modules/contacts/list.php 43)     }
Bernd Wurst Security

Bernd Wurst authored 7 years ago

modules/contacts/list.php 44)     $contact = $contacts[$id];
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 3 years ago

modules/contacts/list.php 45)     $usage = [];
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 7 years ago

modules/contacts/list.php 46)     if ($id == $kundenkontakte['kunde']) {
Bernd Wurst Adressdarstellung gleichmäß...

Bernd Wurst authored 7 years ago

modules/contacts/list.php 47)         $cssclass .= 'mainaddress';
Bernd Wurst $usage ist ein array

Bernd Wurst authored 7 years ago

modules/handles/list.php  48)         $usage[] = 'Stamm-Adresse';
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 7 years ago

modules/handles/list.php  49)     }
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 7 years ago

modules/contacts/list.php 50)     if ($id == $kundenkontakte['extern']) {
Bernd Wurst $usage ist ein array

Bernd Wurst authored 7 years ago

modules/handles/list.php  51)         $usage[] = 'Ersatz-Adresse';
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 7 years ago

modules/handles/list.php  52)     }
Hanno Fix coding style with php-c...

Hanno authored 7 years ago

modules/contacts/list.php 53)     if ($id == $kundenkontakte['rechnung'] || ($id == $kundenkontakte['kunde'] && $kundenkontakte['rechnung'] == null)) {
Bernd Wurst $usage ist ein array

Bernd Wurst authored 7 years ago

modules/handles/list.php  54)         $usage[] = 'Rechnungs-Adresse';
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 7 years ago

modules/handles/list.php  55)     }
Bernd Wurst Verwaltung eines betrieblic...

Bernd Wurst authored 7 years ago

modules/contacts/list.php 56)     if ($id == $kundenkontakte['dataprotection']) {
modules/contacts/list.php 57)         $usage[] = 'Datenschutzbeauftragter';
modules/contacts/list.php 58)     }
Bernd Wurst Abstrahieren der Anzeigefun...

Bernd Wurst authored 7 years ago

modules/contacts/list.php 59)     if (is_domainholder($id)) {
Bernd Wurst $usage ist ein array

Bernd Wurst authored 7 years ago

modules/handles/list.php  60)         $usage[] = 'Domain-Kontakt';
modules/handles/list.php  61)     }
Bernd Wurst Abstrahieren der Anzeigefun...

Bernd Wurst authored 7 years ago

modules/contacts/list.php 62)     if ($usage) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

modules/contacts/list.php 63)         $usage = "Verwendet als " . join(', ', $usage);
Bernd Wurst Abstrahieren der Anzeigefun...

Bernd Wurst authored 7 years ago

modules/contacts/list.php 64)     } else {
modules/contacts/list.php 65)         $usage = "Zur Zeit unbenutzt";
Bernd Wurst E-Mail-Adresse verifizieren...

Bernd Wurst authored 7 years ago

modules/handles/list.php  66)     }
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

modules/contacts/list.php 67)     output(internal_link('useas', display_contact($contact, "<p class=\"contact-usage\">$usage</p>", $cssclass), 'id=' . $contact['id'], 'class="contacts-choose"'));
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 7 years ago

modules/handles/list.php  68) }
Bernd Wurst Neue Darstellung der Kontak...

Bernd Wurst authored 7 years ago

modules/contacts/list.php 69) output("</div><br />");