<?php
require_once('inc/base.php');
require_once('inc/security.php');
require_once('inc/icons.php');
require_role(ROLE_SYSTEMUSER);
require_once('dnsinclude.php');
$section = 'dns_dyndns';
$dyndns = get_dyndns_account($_REQUEST['id']);
title("Hostnames für DynDNS-Account ".filter_input_general($dyndns['handle']));
$available_domains = array();
$domains = get_domain_list($_SESSION['customerinfo']['customerno'], $_SESSION['userinfo']['uid']);
foreach ($domains as $d) {
if ($d->dns) {
$available_domains[$d->id] = $d->fqdn;
}
}
$records = get_dyndns_records($dyndns['id']);
if ($records) {
$output .= '<h4>Folgende DNS-records sind mit diesem DynDNS-Account verknüpft:</h4>
<ul>
';
foreach ($records as $record) {
$type = strtoupper($record['type']).' / '.($record['type'] == 'a' ? 'IPv4' : 'IPv6');
$output .= ' <li>'.$record['fqdn'].' ('.$type.') '.internal_link('dyndns_hostname_delete', icon_delete(), 'id='.$record['id']).'</li>';
}
$output .= '</ul>';
}