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