cf54502a10b16c985ea28db17885d377226b6145
Bernd Wurst Neues Modul zum Prüfen der...

Bernd Wurst authored 10 years ago

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

Bernd Wurst authored 6 years ago

modules/adddomain/include/httpnet.php  5) Written 2008-2018 by schokokeks.org Hosting, namely
Bernd Wurst Neues Modul zum Prüfen der...

Bernd Wurst authored 10 years ago

modules/adddomain/include/terions.php  6)   Bernd Wurst <bernd@schokokeks.org>
modules/adddomain/include/terions.php  7)   Hanno Böck <hanno@schokokeks.org>
modules/adddomain/include/terions.php  8) 
modules/adddomain/include/terions.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/adddomain/include/terions.php 10) 
modules/adddomain/include/terions.php 11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
modules/adddomain/include/terions.php 12) http://creativecommons.org/publicdomain/zero/1.0/
modules/adddomain/include/terions.php 13) 
modules/adddomain/include/terions.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/adddomain/include/terions.php 15) */
modules/adddomain/include/terions.php 16) 
Bernd Wurst Neue Version der http.net-P...

Bernd Wurst authored 8 years ago

modules/adddomain/include/httpnet.php 17) require_once('external/http.net/domainRobotApi.php');
Bernd Wurst Neuer API-Zugriff auf regsp...

Bernd Wurst authored 10 years ago

modules/adddomain/include/terions.php 18) 
Bernd Wurst Neues Modul zum Prüfen der...

Bernd Wurst authored 10 years ago

modules/adddomain/include/terions.php 19) require_once('inc/debug.php');
modules/adddomain/include/terions.php 20) require_once('inc/base.php');
modules/adddomain/include/terions.php 21) require_once('inc/security.php');
modules/adddomain/include/terions.php 22) require_once('inc/error.php');
modules/adddomain/include/terions.php 23) 
Bernd Wurst incomplete stub

Bernd Wurst authored 7 years ago

modules/adddomain/include/httpnet.php 24) $url = 'https://partner.http.net/api/domain/v1/json/';
modules/adddomain/include/httpnet.php 25) $available_methods = array("domainStatus","domainUpdate");
modules/adddomain/include/httpnet.php 26) 
modules/adddomain/include/httpnet.php 27) function httpnet_request($method, $data) {
modules/adddomain/include/httpnet.php 28)   if (! in_array($method, $avalable_methods)) {
modules/adddomain/include/httpnet.php 29)     system_failure("invalid API method: $method");
modules/adddomain/include/httpnet.php 30)   }
modules/adddomain/include/httpnet.php 31)   //$data
modules/adddomain/include/httpnet.php 32) }
modules/adddomain/include/httpnet.php 33) 
modules/adddomain/include/httpnet.php 34) 
Bernd Wurst Neues Modul zum Prüfen der...

Bernd Wurst authored 10 years ago

modules/adddomain/include/terions.php 35) 
modules/adddomain/include/terions.php 36) function terions_available($domainname) 
modules/adddomain/include/terions.php 37) {
Bernd Wurst Neue Version der http.net-P...

Bernd Wurst authored 8 years ago

modules/adddomain/include/httpnet.php 38)   if (! config('http.net-apikey')) {
Bernd Wurst Neuer API-Zugriff auf regsp...

Bernd Wurst authored 10 years ago

modules/adddomain/include/terions.php 39)     system_failure("Kein API-Key vorhanden!");
Bernd Wurst Neues Modul zum Prüfen der...

Bernd Wurst authored 10 years ago

modules/adddomain/include/terions.php 40)   }
Bernd Wurst Neue Version der http.net-P...

Bernd Wurst authored 8 years ago

modules/adddomain/include/httpnet.php 41)   $api = new domainRobotApi(config('http.net-apikey'));
Bernd Wurst Neuer API-Zugriff auf regsp...

Bernd Wurst authored 10 years ago

modules/adddomain/include/terions.php 42)   $result = $api->domainStatus($domainname);
Bernd Wurst Neue Version der http.net-P...

Bernd Wurst authored 8 years ago

modules/adddomain/include/httpnet.php 43)   if (isset($api->getValue()[0])) {
modules/adddomain/include/httpnet.php 44)     return ($api->getValue()[0]->status == 'available');
Bernd Wurst Neues Modul zum Prüfen der...

Bernd Wurst authored 10 years ago

modules/adddomain/include/terions.php 45)   }
Bernd Wurst Neuer API-Zugriff auf regsp...

Bernd Wurst authored 10 years ago

modules/adddomain/include/terions.php 46)   return false;