Skip to content

Commit e6e98bc

Browse files
author
Marius Burkard
committed
Merge branch 'stable-3.1'
2 parents 1e3ac8b + 826789a commit e6e98bc

File tree

83 files changed

+214
-35
lines changed

Some content is hidden

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

83 files changed

+214
-35
lines changed

install/tpl/mysql-virtual_outgoing_bcc.cf.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ dbname = {mysql_server_database}
44
table = mail_user
55
select_field = sender_cc
66
where_field = email
7-
additional_conditions = and postfix = 'y' and disabledeliver = 'n' and disablesmtp = 'n'
7+
additional_conditions = and postfix = 'y' and disabledeliver = 'n' and disablesmtp = 'n' and sender_cc != ''
88
hosts = 127.0.0.1

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ public function mail_user_add($session_id, $client_id, $params){
217217
//* Set a few params to non empty values that will be overwritten by mail_plugin
218218
if (!isset($params['uid'])) $params['uid'] = -1;
219219
if (!isset($params['gid'])) $params['gid'] = -1;
220+
if (!isset($params['maildir_format'])) $params['maildir_format'] = 'maildir';
220221

221222
$affected_rows = $this->insertQuery('../mail/form/mail_user.tform.php', $client_id, $params);
222223
return $affected_rows;

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,38 @@ public function server_get_app_version($session_id)
222222
return false;
223223
}
224224
}
225+
226+
public function server_get_php_versions($session_id, $server_id, $php)
227+
{
228+
global $app;
229+
if(!$this->checkPerm($session_id, 'server_get')) {
230+
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
231+
}
232+
if (!empty($session_id) && !empty($server_id) && !empty($php)) {
233+
$php_versions = array();
234+
235+
$web_config[$server_id] = $app->getconf->get_server_config($server_id, 'web');
236+
$server_type = !empty($web_config[$server_id]['server_type']) ? $web_config[$server_id]['server_type'] : 'apache';
237+
238+
if ($php === 'php-fpm' || ($php === 'hhvm' && $server_type === 'nginx')) {
239+
$php_records = $app->db->queryAllRecords("SELECT * FROM server_php WHERE php_fpm_init_script != '' AND php_fpm_ini_dir != '' AND php_fpm_pool_dir != '' AND server_id = ? AND (client_id = 0)", $server_id);
240+
foreach ($php_records as $php_record) {
241+
$php_version = $php_record['name'].':'.$php_record['php_fpm_init_script'].':'.$php_record['php_fpm_ini_dir'].':'.$php_record['php_fpm_pool_dir'];
242+
$php_versions[] = $php_version;
243+
}
244+
}
245+
if ($php === 'fast-cgi') {
246+
$php_records = $app->db->queryAllRecords("SELECT * FROM server_php WHERE php_fastcgi_binary != '' AND php_fastcgi_ini_dir != '' AND server_id = ? AND (client_id = 0)", $server_id);
247+
foreach ($php_records as $php_record) {
248+
$php_version = $php_record['name'].':'.$php_record['php_fastcgi_binary'].':'.$php_record['php_fastcgi_ini_dir'];
249+
$php_versions[] = $php_version;
250+
}
251+
}
252+
return $php_versions;
253+
} else {
254+
return false;
255+
}
256+
}
225257
}
226258

227259
?>

interface/lib/lang/ar.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,6 @@ $wb['weak_password_length_txt'] = 'The chosen password does not match the securi
150150
$wb['security_check1_txt'] = 'Check for security permission:';
151151
$wb['security_check2_txt'] = 'failed.';
152152
$wb['err_csrf_attempt_blocked'] = 'CSRF attempt blocked.';
153+
$wb['select_directive_snippet_txt'] = 'Directive Snippets';
154+
$wb['select_master_directive_snippet_txt'] = 'Master Directive Snippets';
153155
?>

interface/lib/lang/bg.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,6 @@ $wb['weak_password_length_txt'] = 'The chosen password does not match the securi
150150
$wb['security_check1_txt'] = 'Check for security permission:';
151151
$wb['security_check2_txt'] = 'failed.';
152152
$wb['err_csrf_attempt_blocked'] = 'CSRF attempt blocked.';
153+
$wb['select_directive_snippet_txt'] = 'Directive Snippets';
154+
$wb['select_master_directive_snippet_txt'] = 'Master Directive Snippets';
153155
?>

interface/lib/lang/br.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,6 @@ $wb['weak_password_length_txt'] = 'The chosen password does not match the securi
150150
$wb['security_check1_txt'] = 'Check for security permission:';
151151
$wb['security_check2_txt'] = 'failed.';
152152
$wb['err_csrf_attempt_blocked'] = 'CSRF attempt blocked.';
153+
$wb['select_directive_snippet_txt'] = 'Directive Snippets';
154+
$wb['select_master_directive_snippet_txt'] = 'Master Directive Snippets';
153155
?>

interface/lib/lang/ca.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,6 @@ $wb['weak_password_length_txt'] = 'Le mot de passe choisi ne rencontre pas les m
150150
$wb['security_check1_txt'] = 'Vérifier les permissions de sécurité:';
151151
$wb['security_check2_txt'] = 'Echec';
152152
$wb['err_csrf_attempt_blocked'] = 'CSRF attempt blocked.';
153+
$wb['select_directive_snippet_txt'] = 'Directive Snippets';
154+
$wb['select_master_directive_snippet_txt'] = 'Master Directive Snippets';
153155
?>

interface/lib/lang/cz.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ $wb['weak_password_length_txt'] = 'Zvolené heslo neodpovídá požadavkům zás
150150
$wb['security_check1_txt'] = 'Check for security permission:';
151151
$wb['security_check2_txt'] = 'failed.';
152152
$wb['err_csrf_attempt_blocked'] = 'CSRF attempt blocked.';
153+
$wb['select_directive_snippet_txt'] = 'Directive Snippets';
154+
$wb['select_master_directive_snippet_txt'] = 'Master Directive Snippets';
153155
?>
154156

155157

interface/lib/lang/de.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,6 @@ $wb['weak_password_txt'] = 'Das gewählte Passwort erfüllt die Sicherheitsanfor
150150
$wb['weak_password_length_txt'] = 'Das gewählte Passwort erfüllt die Sicherheitsanforderungen nicht. Es muss mindestens {chars} Zeichen lang sein.';
151151
$wb['security_check1_txt'] = 'Sicherheitsüberprüfung für:';
152152
$wb['security_check2_txt'] = 'fehlgeschlagen.';
153+
$wb['select_directive_snippet_txt'] = 'Direktiven Schnipsel';
154+
$wb['select_master_directive_snippet_txt'] = 'Master Direktiven Schnipsel';
153155
?>

interface/lib/lang/dk.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,6 @@ $wb['weak_password_txt'] = 'Den valgte adgangskode matcher ikke retningslinjerne
150150
$wb['weak_password_length_txt'] = 'Den valgte adgangskode matcher ikke retningslinjerne for sikkerhedsindstillingerne. Det skal være mindst {chars} tegn i længden.';
151151
$wb['security_check1_txt'] = 'Check for sikkerheds tilladelse:';
152152
$wb['security_check2_txt'] = 'mislykkedes.';
153+
$wb['select_directive_snippet_txt'] = 'Directive Snippets';
154+
$wb['select_master_directive_snippet_txt'] = 'Master Directive Snippets';
153155
?>

0 commit comments

Comments
 (0)