<?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_SYSTEMUSER, ROLE_CUSTOMER]);
if (have_role(ROLE_CUSTOMER)) {
$user_domains = get_domain_list($_SESSION['customerinfo']['customerno']);
} else {
$user_domains = get_domain_list($_SESSION['userinfo']['customerno'], $_SESSION['userinfo']['uid']);
}
// Session-Variablen aufräumen
unset($_SESSION['domains_detail_domainname']);
unset($_SESSION['domains_detail_owner']);
unset($_SESSION['domains_detail_admin_c']);
unset($_SESSION['domains_detail_detach']);
unset($_SESSION['domains_domainreg_owner']);
unset($_SESSION['domains_domainreg_admin_c']);
unset($_SESSION['domains_domainreg_detach']);
unset($_SESSION['domains_domainreg_domainname']);
title("Domains");
output('<p>In Ihrem Account werden die folgenden Domains verwaltet:</p>');
output('<div class="domain-list">');
foreach ($user_domains as $domain) {
$status = 'regular';
$locked = '';
$mailserver_lock = '';
if ($domain->mail != 'none' && $domain->mailserver_lock == 1) {
$locked = 'locked';
$mailserver_lock = '<br><strong>Mail-Verarbeitung eingeschränkt!</strong>'.footnote('Diese Domain ist extern registriert und wurde noch nicht bestätigt. Momentan ist daher der Mail-Empfang auf dieser Domain nicht möglich.');
}