a78170de6ab2318ca8d88a0fb6d03e02ce6cb4ff
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) 
modules/handles/include/handles.php   11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
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');
modules/handles/include/handles.php   18) require_role(array(ROLE_CUSTOMER));
modules/handles/include/handles.php   19) 
Bernd Wurst $usage ist ein array

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php   20) /*
modules/handles/include/handles.php   21) require_once('external/http.net/domainRobotApi.php');
modules/handles/include/handles.php   22) 
modules/handles/include/handles.php   23) function api_fetch_contact($nic_id)
modules/handles/include/handles.php   24) {
modules/handles/include/handles.php   25)   if (! config('http.net-apikey')) {
modules/handles/include/handles.php   26)     system_failure("Kein API-Key vorhanden!");
modules/handles/include/handles.php   27)   }
modules/handles/include/handles.php   28)   $api = new domainRobotApi(config('http.net-apikey'));
modules/handles/include/handles.php   29) }
modules/handles/include/handles.php   30) */
modules/handles/include/handles.php   31) 
modules/handles/include/handles.php   32) 
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php   34)     $cid = (int) $_SESSION['customerinfo']['customerno'];
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 35)     $result = db_query("SELECT id, state, lastchange, nic_handle, company, name, address, zip, city, country, phone, mobile, fax, email, pgp_id FROM kundendaten.contacts WHERE customer=? ORDER BY id", array($cid));
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php   36)     $ret = array();
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php   39)     }
modules/handles/include/handles.php   40)     DEBUG($ret);
modules/handles/include/handles.php   41)     return $ret;
modules/handles/include/handles.php   42) }
modules/handles/include/handles.php   43) 
modules/handles/include/handles.php   44) 
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 45) function get_kundenkontakte() {
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php   46)     $cid = (int) $_SESSION['customerinfo']['customerno'];
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 6 years ago

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

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php   48)     $res = $result->fetch();
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 49)     $ret = array("kunde" => $res['contact_kunde'],
modules/contacts/include/contacts.php 50)                  "extern" => $res['contact_extern'],
modules/contacts/include/contacts.php 51)                  "rechnung" => $res['contact_rechnung']);
Bernd Wurst In neues Modul ausgelagert

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php   52)     return $ret;
modules/handles/include/handles.php   53) }
modules/handles/include/handles.php   54) 
Bernd Wurst E-Mail-Adresse verifizieren...

Bernd Wurst authored 6 years ago

modules/handles/include/handles.php   55) 
Bernd Wurst Umbenennung Datenbank handl...

Bernd Wurst authored 6 years ago

modules/contacts/include/contacts.php 56) function update_pending($contactid) {
modules/contacts/include/contacts.php 57)     $contactid = (int) $contactid;
modules/contacts/include/contacts.php 58)     $result = db_query("SELECT email FROM kundendaten.mailaddress_token WHERE contact=?", array($contactid));