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']); if (! in_array($type, $valid_record_types)) system_failure('Ungültiger Record-Typ!'); } if ($new) output('

DNS-Record erstellen

'); else output('

DNS-Record bearbeiten

'); output('

Record-Typ: '.strtoupper($type).'

'); $submit = 'Speichern'; if ($new) $submit = 'Anlegen'; $form = ''; if (! $dyndns && ($type == 'a' || $type == 'aaaa')) { $form .= ' '; } if ($type == 'ptr' || $type == 'cname') { $form .= ' '; } if ($dyndns) { $form .= ' '.html_select('dyndns', $dyndns_accounts, $data['dyndns']).' '; } if ($type == 'mx') { $form .= ' '; } output(html_form('dns_record_edit', 'dns_record_save', "type={$type}&domain={$domain->id}&id={$_REQUEST['id']}", ' '.$form.'
 .'.$domain->fqdn.'

')); ?>