Skip to content

Commit 98f80be

Browse files
author
Till Brehm
committed
Merge branch 'stable-3.1' of git.ispconfig.org:ispconfig/ispconfig3 into stable-3.1
2 parents dc89796 + 9ae4482 commit 98f80be

File tree

19 files changed

+52
-46
lines changed

19 files changed

+52
-46
lines changed

install/sql/incremental/upd_dev_collection.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ALTER TABLE `client_template`
2525

2626
ALTER TABLE `client` ADD `contact_firstname` VARCHAR( 64 ) NOT NULL DEFAULT '' AFTER `gender`;
2727

28-
UPDATE `dns_template` SET `fields` = 'DOMAIN,IP,NS1,NS2,EMAIL,DKIM' WHERE `dns_template`.`template_id` =1;
28+
UPDATE `dns_template` SET `fields` = 'DOMAIN,IP,NS1,NS2,EMAIL,DKIM,DNSSEC' WHERE `dns_template`.`template_id` =1;
2929
UPDATE `dns_template` SET `template` = '[ZONE]
3030
origin={DOMAIN}.
3131
ns={NS1}.

install/sql/ispconfig3.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2397,7 +2397,7 @@ INSERT INTO `country` (`iso`, `name`, `printable_name`, `iso3`, `numcode`, `eu`)
23972397
-- Dumping data for table `dns_template`
23982398
--
23992399

2400-
INSERT INTO `dns_template` (`template_id`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `name`, `fields`, `template`, `visible`) VALUES (1, 1, 1, 'riud', 'riud', '', 'Default', 'DOMAIN,IP,NS1,NS2,EMAIL,DKIM', '[ZONE]\norigin={DOMAIN}.\nns={NS1}.\nmbox={EMAIL}.\nrefresh=7200\nretry=540\nexpire=604800\nminimum=3600\nttl=3600\n\n[DNS_RECORDS]\nA|{DOMAIN}.|{IP}|0|3600\nA|www|{IP}|0|3600\nA|mail|{IP}|0|3600\nNS|{DOMAIN}.|{NS1}.|0|3600\nNS|{DOMAIN}.|{NS2}.|0|3600\nMX|{DOMAIN}.|mail.{DOMAIN}.|10|3600\nTXT|{DOMAIN}.|v=spf1 mx a ~all|0|3600', 'y');
2400+
INSERT INTO `dns_template` (`template_id`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `name`, `fields`, `template`, `visible`) VALUES (1, 1, 1, 'riud', 'riud', '', 'Default', 'DOMAIN,IP,NS1,NS2,EMAIL,DKIM,DNSSEC', '[ZONE]\norigin={DOMAIN}.\nns={NS1}.\nmbox={EMAIL}.\nrefresh=7200\nretry=540\nexpire=604800\nminimum=3600\nttl=3600\n\n[DNS_RECORDS]\nA|{DOMAIN}.|{IP}|0|3600\nA|www|{IP}|0|3600\nA|mail|{IP}|0|3600\nNS|{DOMAIN}.|{NS1}.|0|3600\nNS|{DOMAIN}.|{NS2}.|0|3600\nMX|{DOMAIN}.|mail.{DOMAIN}.|10|3600\nTXT|{DOMAIN}.|v=spf1 mx a ~all|0|3600', 'y');
24012401

24022402

24032403
-- --------------------------------------------------------

interface/web/client/client_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function onShowEnd() {
206206
if($reseller['customer_no_template'] != '') {
207207
//* Set customer no default
208208
$customer_no = $app->functions->intval($reseller['customer_no_start']+$reseller['customer_no_counter']);
209-
$customer_no_string = str_replace('[CUSTOMER_NO]',$customer_no,$reseller['customer_no_template']);
209+
$customer_no_string = str_replace(array('[CUSTOMER_NO]','[CLIENTID]'),array($customer_no, $reseller['client_id']),$reseller['customer_no_template']);
210210
$app->tpl->setVar('customer_no',$customer_no_string);
211211
}
212212
}

interface/web/dns/dns_wizard.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@
300300
if($_POST['ns1'] != '') $tpl_content = str_replace('{NS1}', $_POST['ns1'], $tpl_content);
301301
if($_POST['ns2'] != '') $tpl_content = str_replace('{NS2}', $_POST['ns2'], $tpl_content);
302302
if($_POST['email'] != '') $tpl_content = str_replace('{EMAIL}', $_POST['email'], $tpl_content);
303+
$enable_dnssec = (($_POST['dnssec'] == 'Y') ? 'Y' : 'N');
303304
if(isset($_POST['dkim']) && preg_match('/^[\w\.\-\/]{2,255}\.[a-zA-Z0-9\-]{2,30}[\.]{0,1}$/', $_POST['domain'])) {
304305
$sql = $app->db->queryOneRecord("SELECT dkim_public, dkim_selector FROM mail_domain WHERE domain = ? AND dkim = 'y' AND ".$app->tform->getAuthSQL('r'), $_POST['domain']);
305306
$public_key = $sql['dkim_public'];
@@ -395,7 +396,8 @@
395396
"active" => 'Y',
396397
"xfer" => $xfer,
397398
"also_notify" => $also_notify,
398-
"update_acl" => $update_acl
399+
"update_acl" => $update_acl,
400+
"dnssec_wanted" => $enable_dnssec
399401
);
400402
$dns_soa_id = $app->db->datalogInsert('dns_soa', $insert_data, 'id');
401403

interface/web/dns/form/dns_template.tform.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
'formtype' => 'CHECKBOXARRAY',
7575
'default' => '',
7676
'separator' => ',',
77-
'value' => array('DOMAIN' => 'Domain', 'IP' => 'IP Address', 'IPV6' => 'IPv6 Address', 'NS1' => 'NS 1', 'NS2' => 'NS 2', 'EMAIL' => 'Email', 'DKIM' => 'DKIM'),
77+
'value' => array('DOMAIN' => 'Domain', 'IP' => 'IP Address', 'IPV6' => 'IPv6 Address', 'NS1' => 'NS 1', 'NS2' => 'NS 2', 'EMAIL' => 'Email', 'DKIM' => 'DKIM', 'DNSSEC' => 'DNSSEC'),
7878
'validators' => array ( 0 => array ('type' => 'CUSTOM',
7979
'class' => 'validate_dkim',
8080
'function' => 'check_template',

interface/web/dns/templates/dns_wizard.htm

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,16 @@ <h1><tmpl_var name="list_head_txt"></h1>
8989
<div class="col-sm-9"><input type="text" name="email" id="email" value="{tmpl_var name='email'}" class="form-control" /></div></div>
9090
</tmpl_if>
9191
<tmpl_if name="DKIM_VISIBLE">
92-
<label for="dkim" class="col-sm-3 control-label">{tmpl_var name='dkim_txt'}</label>
93-
&nbsp;&nbsp;<input type="checkbox" disabled readonly checked><input name="dkim" type="hidden" maxlength="255" type="text"/>
92+
<div class="form-group">
93+
<label for="dkim" class="col-sm-3 control-label">{tmpl_var name='dkim_txt'}</label>
94+
<div class="col-sm-9"><input type="checkbox" disabled readonly checked><input name="dkim" type="hidden" maxlength="255" type="text"/></div></div>
9495
</tmpl_if>
95-
96+
<tmpl_if name="DNSSEC_VISIBLE">
97+
<div class="form-group">
98+
<label for="dkim" class="col-sm-3 control-label">{tmpl_var name='dnssec_txt'}</label>
99+
<div class="col-sm-9"><input type="checkbox" name="dnssec" value="Y"></div></div>
100+
</tmpl_if>
101+
96102

97103

98104
<input type="hidden" name="create" value="0" />

interface/web/login/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
//** Check variables
6262
if(!preg_match("/^[\w\.\-\_\@]{1,128}$/", $_POST['username'])) $error = $app->lng('user_regex_error');
63-
if(!preg_match("/^.{1,64}$/i", $_POST['password'])) $error = $app->lng('pw_error_length');
63+
if(!preg_match("/^.{1,256}$/i", $_POST['password'])) $error = $app->lng('pw_error_length');
6464

6565
//** importing variables
6666
$ip = ip2long($_SERVER['REMOTE_ADDR']);

interface/web/login/lib/lang/ar.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $wb['pw_error_noinput'] = 'Please enter email address and username.';
1010
$wb['pw_reset_mail_msg'] = 'The password to your ISPConfig 3 control panel account has been reset. The new password is: ';
1111
$wb['pw_reset_mail_title'] = 'ISPConfig 3 Control panel password has been reset.';
1212
$wb['user_regex_error'] = 'Username contains unallowed characters or is longer then 64 characters.';
13-
$wb['pw_error_length'] = 'The password length is < 1 or > 64 characters.';
13+
$wb['pw_error_length'] = 'The password length is < 1 or > 256 characters.';
1414
$wb['username_txt'] = 'Username';
1515
$wb['password_txt'] = 'Password';
1616
$wb['login_button_txt'] = 'Login';

interface/web/login/lib/lang/bg.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $wb['pw_error_noinput'] = 'Моля въведете потребителско
66
$wb['pw_reset_mail_msg'] = 'Новата парола за вашия ISPConfig 3 контролен панел е:';
77
$wb['pw_reset_mail_title'] = 'Нова парола за вашия ISPConfig 3 контролен панел';
88
$wb['user_regex_error'] = 'Потребителско име contains unallowed characters or is longer then 64 characters.';
9-
$wb['pw_error_length'] = 'The password length is < 1 or > 64 characters.';
9+
$wb['pw_error_length'] = 'The password length is < 1 or > 256 characters.';
1010
$wb['error_user_password_empty'] = 'Потребителско име or Password empty.';
1111
$wb['error_user_password_incorrect'] = 'Потребителско име or Password wrong.';
1212
$wb['error_user_blocked'] = 'User is blocked.';

interface/web/login/lib/lang/de.lng

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $wb['pw_reset_mail_title'] = 'Ihr Passwort wurde zurückgesetzt';
1313
$wb['pw_reset_act_mail_msg'] = 'Bitte bestätigen Sie die Anforderung eines neuen Passworts, indem Sie folgenden Link besuchen: ';
1414
$wb['pw_reset_act_mail_title'] = 'Anforderung zum Zurücksetzen des Passworts';
1515
$wb['user_regex_error'] = 'Benutzername beinhaltet nicht erlaubte Zeichen oder ist länger als 64 Zeichen.';
16-
$wb['pw_error_length'] = 'Die Passwortlänge ist < 1 oder > 64 Zeichen.';
16+
$wb['pw_error_length'] = 'Die Passwortlänge ist < 1 oder > 256 Zeichen.';
1717
$wb['login_txt'] = 'Anmelden';
1818
$wb['username_txt'] = 'Benutzername';
1919
$wb['password_txt'] = 'Passwort';

0 commit comments

Comments
 (0)