Skip to content

Commit 559320e

Browse files
committed
Resolved merge conflict
2 parents d2b8a4e + 0d1297b commit 559320e

File tree

144 files changed

+466
-100
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+466
-100
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,7 @@ Temporary Items
5050

5151
# Visual Studio code coverage results
5252
*.coverage
53-
*.coveragexml
53+
*.coveragexml
54+
55+
# Visual Studio IDE cache/options directory
56+
.vs/

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ALTER TABLE `spamfilter_policy`
2+
CHANGE `warnvirusrecip` `warnvirusrecip` VARCHAR(1) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT 'N',
3+
CHANGE `warnbannedrecip` `warnbannedrecip` VARCHAR(1) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT 'N',
4+
CHANGE `warnbadhrecip` `warnbadhrecip` VARCHAR(1) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL DEFAULT 'N';
5+
ALTER TABLE `sys_ini` CHANGE `default_logo` `default_logo` TEXT CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL;
6+
ALTER TABLE `sys_ini` CHANGE `custom_logo` `custom_logo` TEXT CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL;

install/sql/ispconfig3.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,9 +1533,9 @@ CREATE TABLE `spamfilter_policy` (
15331533
`addr_extension_spam` varchar(64) default NULL,
15341534
`addr_extension_banned` varchar(64) default NULL,
15351535
`addr_extension_bad_header` varchar(64) default NULL,
1536-
`warnvirusrecip` enum('N','Y') default 'N',
1537-
`warnbannedrecip` enum('N','Y') default 'N',
1538-
`warnbadhrecip` enum('N','Y') default 'N',
1536+
`warnvirusrecip` VARCHAR(1) NULL default 'N',
1537+
`warnbannedrecip` VARCHAR(1) NULL default 'N',
1538+
`warnbadhrecip` VARCHAR(1) NULL default 'N',
15391539
`newvirus_admin` varchar(64) default NULL,
15401540
`virus_admin` varchar(64) default NULL,
15411541
`banned_admin` varchar(64) default NULL,
@@ -1742,8 +1742,8 @@ CREATE TABLE `sys_group` (
17421742
CREATE TABLE `sys_ini` (
17431743
`sysini_id` int(11) unsigned NOT NULL auto_increment,
17441744
`config` longtext,
1745-
`default_logo` text NOT NULL,
1746-
`custom_logo` text NOT NULL,
1745+
`default_logo` text NULL,
1746+
`custom_logo` text NULL,
17471747
PRIMARY KEY (`sysini_id`)
17481748
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
17491749

install/tpl/system.ini.master

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,4 @@ session_timeout=0
7575
session_allow_endless=0
7676
min_password_length=8
7777
min_password_strength=3
78+
show_delete_on_forms=n

interface/lib/classes/dns_wizard.inc.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ function create(array $data)
268268
"expire" => $expire,
269269
"minimum" => $minimum,
270270
"ttl" => $ttl,
271-
"active" => 'Y',
271+
"active" => 'N', // Activated later when all DNS records are added.
272272
"xfer" => $xfer,
273273
"also_notify" => $also_notify,
274274
"update_acl" => $update_acl,
@@ -301,6 +301,9 @@ function create(array $data)
301301
}
302302
}
303303

304+
// Activate the DNS zone.
305+
$app->db->datalogUpdate('dns_soa', array('active' => 'Y'), 'id', $dns_soa_id);
306+
304307
return 'ok';
305308

306309
} else {

interface/lib/classes/ispcmail.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ public function send($recipients) {
823823
$recipname = trim(str_replace('"', '', $recipname));
824824

825825
if($rec_string != '') $rec_string .= ', ';
826-
if($recipname && !is_numeric($recipname)) $rec_string .= $recipname . '<' . $recip . '>';
826+
if($recipname && !is_numeric($recipname)) $rec_string .= '"' . $recipname . '"<' . $recip . '>';
827827
else $rec_string .= $recip;
828828
}
829829
$to = $this->_encodeHeader($rec_string, $this->mail_charset);

interface/lib/classes/tform_base.inc.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ function getHTML($record, $tab, $action = 'NEW') {
478478
if(isset($record[$key])) {
479479
$val = $record[$key];
480480
} else {
481-
$val = '';
481+
$val = $field['default'];
482482
}
483483

484484
// If Datasource is set, get the data from there
@@ -621,11 +621,7 @@ function getHTML($record, $tab, $action = 'NEW') {
621621
break;
622622

623623
default:
624-
if(isset($record[$key])) {
625-
$new_record[$key] = $app->functions->htmlentities($record[$key]);
626-
} else {
627-
$new_record[$key] = '';
628-
}
624+
$new_record[$key] = $app->functions->htmlentities($val);
629625
}
630626
}
631627
}

interface/lib/classes/validate_dns.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ function validate_ip($field_name, $field_value, $validator) {
292292
if($validator['allowempty'] != 'y') $validator['allowempty'] = 'n';
293293
if($validator['allowempty'] == 'y' && $field_value == '') {
294294
//* Do nothing
295-
} elseif ($field_value == 'any') {
295+
} elseif ($field_value == 'any' && $field_name != "also_notify") {
296296
//* Do nothing
297297
} else {
298298
//* Check if its a IPv4 or IPv6 address/range

interface/lib/lang/ar.lng

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,8 @@ $wb['datalog_status_d_client'] = 'Delete client';
180180
$wb['datalog_status_i_domain'] = 'Create new domain';
181181
$wb['datalog_status_u_domain'] = 'Update domain';
182182
$wb['datalog_status_d_domain'] = 'Delete domain';
183+
$wb['datalog_status_d_web_backup'] = 'Delete website backup';
184+
$wb['datalog_status_i_dns_template'] = 'Create DNS template';
185+
$wb['datalog_status_u_dns_template'] = 'Update DNS template';
186+
$wb['datalog_status_d_dns_template'] = 'Delete DNS template';
183187
?>

0 commit comments

Comments
 (0)