96649f21ba18d07757afa9d98998f7a22c0d86a3
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Hanno authored 5 years ago

modules/contacts/list.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/list.php  12) http://creativecommons.org/publicdomain/zero/1.0/
modules/handles/list.php  13) 
modules/handles/list.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/list.php  15) */
modules/handles/list.php  16) 
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Hanno Böck authored 2 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Hanno Böck authored 2 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

modules/contacts/list.php 39)         continue;
modules/contacts/list.php 40)     }
Bernd Wurst Zeige Kundenkontakte immer...

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

modules/contacts/list.php 42)     $cssclass = 'contact-mainlist ';
Bernd Wurst catch a situation when cont...

Bernd Wurst authored 4 years ago

modules/contacts/list.php 43)     if (! isset($contacts[$id])) {
modules/contacts/list.php 44)         system_failure('Fehlerhafte Kunden-Zuordnung bei den Kontakten');
modules/contacts/list.php 45)     }
Bernd Wurst Security

Bernd Wurst authored 6 years ago

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

Hanno Böck authored 2 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Hanno authored 5 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 5 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

modules/contacts/list.php 64)     if ($usage) {
modules/contacts/list.php 65)         $usage = "Verwendet als ".join(', ', $usage);
modules/contacts/list.php 66)     } else {
modules/contacts/list.php 67)         $usage = "Zur Zeit unbenutzt";
Bernd Wurst E-Mail-Adresse verifizieren...

Bernd Wurst authored 6 years ago

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

Hanno authored 5 years ago

modules/contacts/list.php 69)     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 6 years ago

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

Bernd Wurst authored 6 years ago

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