Bernd Wurst
Entferne Beta-Hinweis bei der Domain-Reg-Funktion
Bernd Wurst commited 90ed4f8 at 2018-07-11 20:49:28
<?php
/*
This file belongs to the Webinterface of schokokeks.org Hosting
Written 2008-2018 by schokokeks.org Hosting, namely
Bernd Wurst <bernd@schokokeks.org>
Hanno Böck <hanno@schokokeks.org>
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.
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
http://creativecommons.org/publicdomain/zero/1.0/
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.
*/
require_once('inc/security.php');
require_once('inc/icons.php');
require_once('inc/jquery.php');
javascript();
require_once('domainapi.php');
require_once('domains.php');
require_role(ROLE_CUSTOMER);
if (! config('http.net-apikey')) {
system_failure("Dieses System ist nicht eingerichtet zum Hinzufügen von Domains");
}
title("Domain hinzufügen");
$section='domains_domains';
output('<p>Mit dieser Funktion können Sie eine neue Domain bestellen oder eine bestehende, extern registrierte Domain verfügbar machen.</p>');
$form = '<p>Domainname: <input type="text" name="domain" size="50" /> <input type="submit" value="Verfügbarkeit prüfen" />';
output(html_form('adddomain_search', '', '', $form));
if (isset($_REQUEST['domain'])) {
$request = idn_to_utf8($_REQUEST['domain'], 0, INTL_IDNA_VARIANT_UTS46);
if (substr($request, 0, 4) == 'www.') {
$request = str_replace('www.', '', $request);
}
verify_input_general($request);
$punycode = idn_to_ascii($request, 0, INTL_IDNA_VARIANT_UTS46);
if (!check_domain($punycode)) {
warning("Ungültiger Domainname: ".filter_input_general($request));
redirect('');
}
$dom = new Domain();
if ($dom->loadByName($request) !== false) {
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX