bernd
Diverse XML-Fehler behoben
bernd commited aebc4ea at 2010-03-09 15:12:06
dns_record_edit.php
<?php
require_once('inc/base.php');
require_once('inc/security.php');
require_once('class/domain.php');
require_role(ROLE_CUSTOMER);
require_once('dnsinclude.php');
$section = 'dns_dns';
$data = array();
$type = NULL;
$dyndns = false;
$dyndns_accounts = array();
foreach (get_dyndns_accounts() AS $t)
{
$dyndns_accounts[$t['id']] = $t['handle'];
}
if (isset($_REQUEST['type']) && $_REQUEST['type'] == "dyndns")
{
$_REQUEST['type'] = 'a';
$dyndns = true;
}
$new = false;
if ($_REQUEST['id'] == 'new')
{
$new = true;
$data = blank_dns_record($_REQUEST['type']);
$domain = new Domain((int) $_REQUEST['domain']);
$domain->ensure_customerdomain();
$type = $_REQUEST['type'];
if (! in_array($type, $valid_record_types))
system_failure('Ungültiger Record-Typ!');
$data['domain'] = $domain->id;
if ($dyndns)
$data['ttl'] = 120;
}
if (! $new)
{
$data = get_dns_record($_REQUEST['id']);
$type = $data['type'];
$dyndns = isset($data['dyndns']);
$domain = new Domain((int) $data['domain']);
$domain->ensure_customerdomain();
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX