2626dd47daad110c63a82c0560b134e2364eeac3
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) 
modules/handles/list.php  24) require_role(array(ROLE_CUSTOMER));
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) 
Bernd Wurst Zeige Kundenkontakte immer...

Bernd Wurst authored 6 years ago

modules/contacts/list.php 35) $liste = array_merge(array_filter(array($kundenkontakte['kunde'], $kundenkontakte['rechnung'], $kundenkontakte['extern'])), array_keys($contacts));
modules/contacts/list.php 36) $already_displayed = array();
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 Security

Bernd Wurst authored 6 years ago

modules/contacts/list.php 43)     $contact = $contacts[$id];
Bernd Wurst $usage ist ein array

Bernd Wurst authored 6 years ago

modules/handles/list.php  44)     $usage = array();
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Hanno authored 5 years ago

modules/contacts/list.php 52)     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  53)         $usage[] = 'Rechnungs-Adresse';
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 5 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

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

Hanno authored 5 years ago

modules/contacts/list.php 66)     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  67) }
Bernd Wurst Neue Darstellung der Kontak...

Bernd Wurst authored 6 years ago

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