Skip to content

Commit b3eca71

Browse files
author
Marius Burkard
committed
Merge branch '5856-dnssec-wanted-wizard' into 'develop'
Resolve "Process dnssec_wanted in DNS wizard" Closes #5856 See merge request ispconfig/ispconfig3!1294
2 parents 2e23c29 + 9b6d055 commit b3eca71

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

interface/web/dns/dns_wizard.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,9 @@
323323
if($_POST['ns1'] != '') $tpl_content = str_replace('{NS1}', $_POST['ns1'], $tpl_content);
324324
if($_POST['ns2'] != '') $tpl_content = str_replace('{NS2}', $_POST['ns2'], $tpl_content);
325325
if($_POST['email'] != '') $tpl_content = str_replace('{EMAIL}', $_POST['email'], $tpl_content);
326-
$enable_dnssec = (($_POST['dnssec'] == 'Y') ? 'Y' : 'N');
326+
// $enable_dnssec = (($_POST['dnssec'] == 'Y') ? 'Y' : 'N');
327+
// if(isset($_POST['dnssec'])) $vars['dnssec_wanted'] = 'Y';
328+
if(isset($_POST['dnssec'])) $tpl_content = str_replace('[ZONE]', '[ZONE]'."\n".'dnssec_wanted=Y', $tpl_content);
327329
if(isset($_POST['dkim']) && preg_match('/^[\w\.\-\/]{2,255}\.[a-zA-Z0-9\-]{2,63}[\.]{0,1}$/', $_POST['domain'])) {
328330
$sql = $app->db->queryOneRecord("SELECT dkim_public, dkim_selector FROM mail_domain WHERE domain = ? AND dkim = 'y' AND ".$app->tform->getAuthSQL('r'), $_POST['domain']);
329331
$public_key = $sql['dkim_public'];
@@ -339,6 +341,7 @@
339341
$section = '';
340342
$vars = array();
341343
$vars['xfer']='';
344+
$vars['dnssec_wanted']='';
342345
$vars['dnssec_algo']='ECDSAP256SHA256';
343346
$dns_rr = array();
344347
foreach($tpl_rows as $row) {
@@ -399,6 +402,7 @@
399402
$xfer = $vars['xfer'];
400403
$also_notify = $vars['also_notify'];
401404
$update_acl = $vars['update_acl'];
405+
$dnssec_wanted = $vars['dnssec_wanted'];
402406
$dnssec_algo = $vars['dnssec_algo'];
403407
$serial = $app->validate_dns->increase_serial(0);
404408

@@ -422,7 +426,7 @@
422426
"xfer" => $xfer,
423427
"also_notify" => $also_notify,
424428
"update_acl" => $update_acl,
425-
"dnssec_wanted" => $enable_dnssec,
429+
"dnssec_wanted" => $dnssec_wanted,
426430
"dnssec_algo" => $dnssec_algo
427431
);
428432
$dns_soa_id = $app->db->datalogInsert('dns_soa', $insert_data, 'id');

interface/web/dns/lib/lang/ar_dns_wizard.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$wb['template_id_txt'] = 'Template';
33
$wb['server_id_txt'] = 'Server';
44
$wb['client_txt'] = 'Client';
5-
$wb['btn_save_txt'] = 'Create DNS Record';
5+
$wb['btn_save_txt'] = 'Create new DNS zone';
66
$wb['btn_cancel_txt'] = 'Cancel';
77
$wb['domain_txt'] = 'Domain';
88
$wb['email_txt'] = 'Email';

interface/web/dns/lib/lang/dk_dns_wizard.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $wb['dns_zone_txt'] = 'DNS Zone';
55
$wb['template_id_txt'] = 'Skabelon';
66
$wb['server_id_txt'] = 'Server';
77
$wb['client_txt'] = 'Kunde';
8-
$wb['btn_save_txt'] = 'Create DNS-Record';
8+
$wb['btn_save_txt'] = 'Create new DNS zone';
99
$wb['btn_cancel_txt'] = 'Annullere';
1010
$wb['domain_txt'] = 'Domæne';
1111
$wb['email_txt'] = 'E-mail';

interface/web/dns/lib/lang/en_dns_wizard.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $wb['dns_zone_txt'] = 'DNS Zone';
55
$wb['template_id_txt'] = 'Template';
66
$wb['server_id_txt'] = 'Server';
77
$wb['client_txt'] = 'Client';
8-
$wb['btn_save_txt'] = 'Create DNS-Record';
8+
$wb['btn_save_txt'] = 'Create new DNS zone';
99
$wb['btn_cancel_txt'] = 'Cancel';
1010
$wb['domain_txt'] = 'Domain';
1111
$wb['email_txt'] = 'Email';

interface/web/dns/lib/lang/se_dns_wizard.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$wb['template_id_txt'] = 'Template';
33
$wb['server_id_txt'] = 'Server';
44
$wb['client_txt'] = 'Client';
5-
$wb['btn_save_txt'] = 'Create DNS Record';
5+
$wb['btn_save_txt'] = 'Create new DNS zone';
66
$wb['btn_cancel_txt'] = 'Cancel';
77
$wb['domain_txt'] = 'Domain';
88
$wb['email_txt'] = 'Email';

0 commit comments

Comments
 (0)