Skip to content
Snippets Groups Projects
Commit e1071013 authored by tbrehm's avatar tbrehm
Browse files

Fixed serials in dns wizard.

parent 0ea264c1
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ $app->auth->check_module_permissions('dns'); ...@@ -36,7 +36,7 @@ $app->auth->check_module_permissions('dns');
// Loading the template // Loading the template
$app->uses('tpl'); $app->uses('tpl,validate_dns');
$app->tpl->newTemplate("form.tpl.htm"); $app->tpl->newTemplate("form.tpl.htm");
$app->tpl->setInclude('content_tpl','templates/dns_wizard.htm'); $app->tpl->setInclude('content_tpl','templates/dns_wizard.htm');
...@@ -181,9 +181,10 @@ if($_POST['create'] == 1) { ...@@ -181,9 +181,10 @@ if($_POST['create'] == 1) {
$minimum = $app->db->quote($vars['minimum']); $minimum = $app->db->quote($vars['minimum']);
$ttl = $app->db->quote($vars['ttl']); $ttl = $app->db->quote($vars['ttl']);
$xfer = $app->db->quote($vars['xfer']); $xfer = $app->db->quote($vars['xfer']);
$serial = $app->validate_dns->increase_serial(0);
$insert_data = "(`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_id`, `origin`, `ns`, `mbox`, `serial`, `refresh`, `retry`, `expire`, `minimum`, `ttl`, `active`, `xfer`) VALUES $insert_data = "(`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_id`, `origin`, `ns`, `mbox`, `serial`, `refresh`, `retry`, `expire`, `minimum`, `ttl`, `active`, `xfer`) VALUES
('$sys_userid', '$sys_groupid', 'riud', 'riud', '', '$server_id', '$origin', '$ns', '$mbox', '1', '$refresh', '$retry', '$expire', '$minimum', '$ttl', 'Y', '$xfer')"; ('$sys_userid', '$sys_groupid', 'riud', 'riud', '', '$server_id', '$origin', '$ns', '$mbox', '$serial', '$refresh', '$retry', '$expire', '$minimum', '$ttl', 'Y', '$xfer')";
$dns_soa_id = $app->db->datalogInsert('dns_soa', $insert_data, 'id'); $dns_soa_id = $app->db->datalogInsert('dns_soa', $insert_data, 'id');
// Insert the dns_rr records // Insert the dns_rr records
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment