Bernd Wurst
Erster Entwurf nomail-Feature
Bernd Wurst commited 0f4e83a at 2023-12-09 06:59:13
<?php
/*
This file belongs to the Webinterface of schokokeks.org Hosting
Written by schokokeks.org Hosting, namely
Bernd Wurst <bernd@schokokeks.org>
Hanno Böck <hanno@schokokeks.org>
This code is published under a 0BSD license.
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_role([ROLE_CUSTOMER, ROLE_SYSTEMUSER]);
$dom = null;
if (isset($_REQUEST['id'])) {
$dom = new Domain((int) $_REQUEST['id']);
$_SESSION['domains_detail_domainname'] = $dom->fqdn;
} elseif (isset($_SESSION['domains_detail_domainname'])) {
$dom = new Domain($_SESSION['domains_detail_domainname']);
} else {
system_failure("Keine Domain angegeben");
}
if (!$dom) {
system_failure("Keine Domain gewählt!");
}
if (have_role(ROLE_CUSTOMER)) {
$dom->ensure_customerdomain();
} else {
$dom->ensure_userdomain();
}
title("Domain {$dom->fqdn}");
$section = 'domains_domains';
// Block gekündigte Domain in externe Domain umwandeln
if ($dom->status == 'transferout') {
output('<h4>Domain wurde transferiert!</h4>');
output('<p>Diese Domain wurde zu einem anderen Anbieter umgezogen. Die mit der Domain verbundenen Dienste werden noch für einige Tage weiterhin erbracht und anschließend gelöscht.</p>');
output('<p>Wenn Sie diese Domain weiterhin über unsere Anlagen nutzen möchten, müssen Sie diese in eine externe Domain umwandeln.</p>');
$form = '<p><input type="hidden" name="domain" value="' . $dom->id . '"><input type="submit" name="submit" value="Die Domain ' . $dom->fqdn . ' in externe Domain umwandeln"></p>';
output(html_form('domains_convertexternal', 'save', 'action=convertexternal', $form));
}
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX