Bernd Wurst
Typo
Bernd Wurst commited 524c3a2 at 2018-01-24 16:49:03
<?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/debug.php');
require_once('inc/icons.php');
require_once('class/domain.php');
require_once('domains.php');
require_once('domainapi.php');
require_role(ROLE_CUSTOMER);
use_module('contacts');
require_once('contacts.php');
$dom = NULL;
if (isset($_REQUEST['id'])) {
api_download_domain($_REQUEST['id']);
$dom = new Domain( (int) $_REQUEST['id']);
if ($dom->provider == 'external' || $dom->provider != 'terions') {
system_failure("<p>Diese Domain ist extern registriert!</p>");
}
$_SESSION['domains_update_domainname'] = $dom->fqdn;
$_SESSION['domains_update_owner'] = $dom->owner;
$_SESSION['domains_update_admin_c'] = $dom->admin_c;
} else {
$dom = new Domain($_SESSION['domains_update_domainname']);
}
if (!$dom) {
system_failure("Keine Domain gewählt!");
}
if (!update_possible($dom->id)) {
system_failure("Diese Domain verwendet eine unübliche Endung. Daher kann der Inhaber nicht auf diesem Weg verändert werden. Bitte kontaktieren Sie den Support.");
}
if ($_SESSION['domains_update_admin_c'] == $dom->admin_c &&
$_SESSION['domains_update_owner'] != $dom->owner &&
(!isset($_SESSION['domains_update_detach']) || $_SESSION['domains_update_detach'] == 0)) {
// Wenn der Owner geändert wurde, der Admin aber nicht und das detach-Flag
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX