Skip to content

Commit 2f12afd

Browse files
author
Marius Burkard
committed
Merge branch 'stable-3.1'
2 parents 3e83d19 + 71066ac commit 2f12afd

File tree

117 files changed

+248
-137
lines changed

Some content is hidden

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

117 files changed

+248
-137
lines changed

install/dist/lib/debian60.lib.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ public function configure_dovecot()
134134
$content = str_replace('{mysql_server_host}', $conf['mysql']['host'], $content);
135135
$content = str_replace('{mysql_server_port}', $conf['mysql']['port'], $content);
136136
$content = str_replace('{server_id}', $conf['server_id'], $content);
137+
# enable iterate_query for dovecot2
138+
if(version_compare($dovecot_version,2, '>=')) {
139+
$content = str_replace('# iterate_query', 'iterate_query', $content);
140+
}
137141
wf($config_dir.'/'.$configfile, $content);
138142

139143
chmod($config_dir.'/'.$configfile, 0600);

install/install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@
557557
$check = false;
558558
do {
559559
unset($temp_password);
560-
$temp_password = $inst->free_query('Re-enter admin password', '');
560+
$temp_password = $inst->free_query('Re-enter admin password', '','ispconfig_admin_password');
561561
$check = @($temp_password == $conf['interface_password'])?true:false;
562562
if(!$check) swriteln('Passwords do not match.');
563563
} while (!$check);

install/lib/installer_base.lib.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,6 +2453,12 @@ public function install_ispconfig() {
24532453
//* chown the interface files to the ispconfig user and group
24542454
$command = 'chown -R ispconfig:ispconfig '.$install_dir.'/interface';
24552455
caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
2456+
2457+
//* Chmod the files and directories in the acme dir with nginx installed
2458+
if($conf['nginx']['installed'] == true) {
2459+
$command = 'chmod -R 755 '.$install_dir.'/interface/acme';
2460+
caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
2461+
}
24562462

24572463
//* chown the server files to the root user and group
24582464
$command = 'chown -R root:root '.$install_dir.'/server';

install/sql/incremental/upd_dev_collection.sql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ ALTER TABLE `mail_mailinglist` ADD `digestsub` ENUM('n','y') NOT NULL DEFAULT 'n
99
ALTER TABLE `mail_mailinglist` ADD `mail_footer` mediumtext;
1010
ALTER TABLE `mail_mailinglist` ADD `subscribe_policy` enum('disabled','confirm','approval','both','none') NOT NULL DEFAULT 'confirm';
1111
ALTER TABLE `mail_mailinglist` ADD `posting_policy` enum('closed','moderated','free') NOT NULL DEFAULT 'free';
12-
ALTER TABLE `web_domain` CHANGE `folder_directive_snippets` `folder_directive_snippets` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL;
1312
ALTER TABLE `sys_user` ADD `last_login_ip` VARCHAR(50) NULL AFTER `lost_password_reqtime`;
1413
ALTER TABLE `sys_user` ADD `last_login_at` BIGINT(20) NULL AFTER `last_login_ip`;
15-
ALTER TABLE `sys_remoteaction` CHANGE `action_state` `action_state` ENUM('pending','processing','ok','warning','error') NOT NULL DEFAULT 'pending';
14+
ALTER TABLE `sys_remoteaction` CHANGE `action_state` `action_state` ENUM('pending','processing','ok','warning','error') NOT NULL DEFAULT 'pending';
15+
ALTER TABLE `web_domain` CHANGE `folder_directive_snippets` `folder_directive_snippets` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL;
16+
ALTER TABLE `web_domain` ADD `log_retention` INT NOT NULL DEFAULT '30' AFTER `https_port`;
17+
ALTER TABLE `web_domain` CHANGE `stats_type` `stats_type` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'awstats';

install/sql/ispconfig3.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1968,7 +1968,7 @@ CREATE TABLE `web_domain` (
19681968
`ssl_key` mediumtext NULL,
19691969
`ssl_action` varchar(16) NULL,
19701970
`stats_password` varchar(255) default NULL,
1971-
`stats_type` varchar(255) default 'webalizer',
1971+
`stats_type` varchar(255) default 'awstats',
19721972
`allow_override` varchar(255) NOT NULL default 'All',
19731973
`apache_directives` mediumtext,
19741974
`nginx_directives` mediumtext,
@@ -1999,6 +1999,7 @@ CREATE TABLE `web_domain` (
19991999
`http_port` int(11) unsigned NOT NULL DEFAULT '80',
20002000
`https_port` int(11) unsigned NOT NULL DEFAULT '443',
20012001
`folder_directive_snippets` text,
2002+
`log_retention` int(11) NOT NULL DEFAULT '30',
20022003
PRIMARY KEY (`domain_id`),
20032004
UNIQUE KEY `serverdomain` ( `server_id` , `ip_address`, `domain` )
20042005
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

install/tpl/apache_ispconfig.conf.master

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ Alias /.well-known/acme-challenge /usr/local/ispconfig/interface/acme/.well-know
141141
Order allow,deny
142142
Allow from all
143143
</tmpl_if>
144+
<IfModule mpm_itk_module>
145+
AssignUserId www-data www-data
146+
</IfModule>
144147
</Directory>
145148

146149
<tmpl_if name='apache_version' op='<' value='2.4' format='version'>

install/tpl/system.ini.master

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ customer_no_start=1
6565
customer_no_counter=0
6666
session_timeout=0
6767
session_allow_endless=0
68-
min_password_length=5
69-
min_password_strength=0
68+
min_password_length=8
69+
min_password_strength=3

interface/lib/classes/ispcmail.inc.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -433,20 +433,17 @@ private function create() {
433433
$textonly = true;
434434
} elseif($text == true && $html == false && $attach == true) {
435435
// text and attachment
436-
$content_type = 'multipart/mixed;';
437-
$content_type .= "\n" . ' boundary="' . $this->mime_boundary . '"';
436+
$content_type = 'multipart/mixed; boundary="' . $this->mime_boundary . '"';
438437
} elseif($html == true && $text == true && $attach == false) {
439438
// html only (or text too)
440-
$content_type = 'multipart/alternative;';
441-
$content_type .= "\n" . ' boundary="' . $this->mime_boundary . '"';
439+
$content_type = 'multipart/alternative; boundary="' . $this->mime_boundary . '"';
442440
} elseif($html == true && $text == false && $attach == false) {
443441
// html only (or text too)
444442
$content_type = 'text/html; charset="' . strtolower($this->mail_charset) . '"';
445443
$htmlonly = true;
446444
} elseif($html == true && $attach == true) {
447445
// html and attachments
448-
$content_type = 'multipart/mixed;';
449-
$content_type .= "\n" . ' boundary="' . $this->mime_boundary . '"';
446+
$content_type = 'multipart/mixed; boundary="' . $this->mime_boundary . '"';
450447
}
451448

452449
$this->headers['Content-Type'] = $content_type;
@@ -475,8 +472,7 @@ private function create() {
475472
if($attach) {
476473
foreach($this->attachments as $att) {
477474
$this->body .= "--{$this->mime_boundary}\n" .
478-
"Content-Type: " . $att['type'] . ";\n" .
479-
" name=\"" . $att['filename'] . "\"\n" .
475+
"Content-Type: " . $att['type'] . "; name=\"" . $att['filename'] . "\"\n" .
480476
"Content-Transfer-Encoding: base64\n" .
481477
"Content-Disposition: attachment;\n\n" .
482478
chunk_split(base64_encode($att['content'])) . "\n\n";

interface/lib/classes/listform_actions.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function onLoad()
153153
$records_new = array_slice($records_new, $app->listform->getPagingValue('offset'), $app->listform->getPagingValue('records_per_page'));
154154
}
155155

156-
$app->tpl->setLoop('records', $records_new);
156+
if(is_array($records_new) && count($records_new) > 0) $app->tpl->setLoop('records', $records_new);
157157

158158
$this->onShow();
159159

interface/lib/classes/remote.d/sites.inc.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ public function sites_web_domain_add($session_id, $client_id, $params, $readonly
427427
if($params['document_root'] == '') $params['document_root'] = '-';
428428
if($params['system_user'] == '') $params['system_user'] = '-';
429429
if($params['system_group'] == '') $params['system_group'] = '-';
430+
if($params['log_retention'] == '') $params['log_retention'] = 30;
430431

431432
//* Set a few defaults for nginx servers
432433
if($params['pm_max_children'] == '') $params['pm_max_children'] = 1;
@@ -447,6 +448,8 @@ public function sites_web_domain_update($session_id, $client_id, $primary_id, $p
447448
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
448449
return false;
449450
}
451+
452+
if($params['log_retention'] == '') $params['log_retention'] = 30;
450453

451454
//* Set a few defaults for nginx servers
452455
if($params['pm_max_children'] == '') $params['pm_max_children'] = 1;
@@ -498,6 +501,7 @@ public function sites_web_vhost_aliasdomain_add($session_id, $client_id, $params
498501
if($params['document_root'] == '') $params['document_root'] = '-';
499502
if($params['system_user'] == '') $params['system_user'] = '-';
500503
if($params['system_group'] == '') $params['system_group'] = '-';
504+
if($params['log_retention'] == '') $params['log_retention'] = 30;
501505

502506
//* Set a few defaults for nginx servers
503507
if($params['pm_max_children'] == '') $params['pm_max_children'] = 1;
@@ -516,6 +520,8 @@ public function sites_web_vhost_aliasdomain_update($session_id, $client_id, $pri
516520
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
517521
return false;
518522
}
523+
524+
if($params['log_retention'] == '') $params['log_retention'] = 30;
519525

520526
//* Set a few defaults for nginx servers
521527
if($params['pm_max_children'] == '') $params['pm_max_children'] = 1;
@@ -567,6 +573,7 @@ public function sites_web_vhost_subdomain_add($session_id, $client_id, $params)
567573
if($params['document_root'] == '') $params['document_root'] = '-';
568574
if($params['system_user'] == '') $params['system_user'] = '-';
569575
if($params['system_group'] == '') $params['system_group'] = '-';
576+
if($params['log_retention'] == '') $params['log_retention'] = 30;
570577

571578
//* Set a few defaults for nginx servers
572579
if($params['pm_max_children'] == '') $params['pm_max_children'] = 1;
@@ -585,6 +592,8 @@ public function sites_web_vhost_subdomain_update($session_id, $client_id, $prima
585592
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
586593
return false;
587594
}
595+
596+
if($params['log_retention'] == '') $params['log_retention'] = 30;
588597

589598
//* Set a few defaults for nginx servers
590599
if($params['pm_max_children'] == '') $params['pm_max_children'] = 1;

0 commit comments

Comments
 (0)