@@ -221,11 +221,11 @@ if ($action == 'add_record' && ! empty($_POST)) {
|
||||
// success message (inline)
|
||||
$success_message = $lng['success']['dns_record_added'];
|
||||
|
||||
unset($record);
|
||||
unset($type);
|
||||
unset($prio);
|
||||
unset($content);
|
||||
unset($ttl);
|
||||
$record = "";
|
||||
$type = 'A';
|
||||
$prio = "";
|
||||
$content = "";
|
||||
$ttl = "";
|
||||
} else {
|
||||
// show $errors
|
||||
$errors = implode("<br>", $errors);
|
||||
|
||||
@@ -95,7 +95,7 @@ function createDomainZone($domain_id)
|
||||
|
||||
// now generate all records and unset the required entries we have
|
||||
foreach ($dom_entries as $entry) {
|
||||
if (array_key_exists($entry['type'], $required_entries) && $required_entries[$entry['type']][md5($entry['record'])] == $entry['record']) {
|
||||
if (array_key_exists($entry['type'], $required_entries) && array_key_exists(md5($entry['record']), $required_entries[$entry['type']])) {
|
||||
unset($required_entries[$entry['type']][md5($entry['record'])]);
|
||||
}
|
||||
$zonefile .= formatEntry($entry['record'], $entry['type'], $entry['content'], $entry['prio'], $entry['ttl']);
|
||||
@@ -181,8 +181,6 @@ function createDomainZone($domain_id)
|
||||
}
|
||||
}
|
||||
|
||||
var_dump($required_entries);
|
||||
|
||||
return $zonefile;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user