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

Bernd Wurst authored 10 years ago

1) <?php
2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
Bernd Wurst Lizenzinfos in eigenes Modu...

Bernd Wurst authored 10 years ago

5) Written 2008-2014 by schokokeks.org Hosting, namely
Bernd Wurst Neues Modul zum Prüfen der...

Bernd Wurst authored 10 years ago

6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
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.
10) 
11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
12) http://creativecommons.org/publicdomain/zero/1.0/
13) 
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.
15) */
16) 
Bernd Wurst Neuer API-Zugriff auf regsp...

Bernd Wurst authored 9 years ago

17) require_once('external/tld-systems/domainRobotApi.php');
18) 
Bernd Wurst Neues Modul zum Prüfen der...

Bernd Wurst authored 10 years ago

19) require_once('inc/debug.php');
20) require_once('inc/base.php');
21) require_once('inc/security.php');
22) require_once('inc/error.php');
23) 
24) 
25) function terions_available($domainname) 
26) {
Bernd Wurst Neuer API-Zugriff auf regsp...

Bernd Wurst authored 9 years ago

27)   if (! config('tld-systems-apikey')) {
28)     system_failure("Kein API-Key vorhanden!");
Bernd Wurst Neues Modul zum Prüfen der...

Bernd Wurst authored 10 years ago

29)   }
Bernd Wurst Neuer API-Zugriff auf regsp...

Bernd Wurst authored 9 years ago

30)   $api = new domainRobotApi(config('tld-systems-apikey'));
31)   $result = $api->domainStatus($domainname);
32)   if (isset($api->getValues()[0])) {
33)     return ($api->getValues()[0]->status == 'available');
Bernd Wurst Neues Modul zum Prüfen der...

Bernd Wurst authored 10 years ago

34)   }
Bernd Wurst Neuer API-Zugriff auf regsp...

Bernd Wurst authored 9 years ago

35)   return false;