Skip to content

Commit aa16ebc

Browse files
author
Florian Schaal
committed
2 parents cfc47ca + 5812c6c commit aa16ebc

File tree

6 files changed

+29
-10
lines changed

6 files changed

+29
-10
lines changed

install/lib/update.lib.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ function prepareDBDump() {
5959

6060
system("mysqldump -h ".escapeshellarg($conf['mysql']['host'])." -u ".escapeshellarg($conf['mysql']['admin_user'])." -c -t --add-drop-table --create-options --quick --result-file=existing_db.sql ".$conf['mysql']['database']);
6161
}
62+
chmod('existing_db.sql', 0400);
63+
chown('existing_db.sql', 'root');
6264

6365
/*
6466
* If we have a server with nothing in it except VE's then the database of thie server is empty.

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
$wb['server_id_txt'] = 'Сървър';
33
$wb['zone_txt'] = 'Зона';
44
$wb['name_txt'] = 'Име на хоста';
5-
$wb['type_txt'] = 'тип';
6-
$wb['data_txt'] = 'IP-адрес';
5+
$wb['type_txt'] = 'Tип';
6+
$wb['data_txt'] = 'IP адрес';
77
$wb['ttl_txt'] = 'TTL';
88
$wb['active_txt'] = 'Активен';
99
$wb['limit_dns_record_txt'] = 'Максималният брой за DNS записи в твоят профил е достигнат.';
1010
$wb['no_zone_perm'] = 'Нямате права да добавяте записи за DNS в тази зона.';
1111
$wb['name_error_empty'] = 'Полето за хост име е празно.';
1212
$wb['name_error_regex'] = 'Избраното име на хост е в грешен формат.';
13-
$wb['data_error_empty'] = 'Полето за IP-адреса е празно';
14-
$wb['ip_error_wrong'] = 'Формата на IP-адреса е грешен';
15-
$wb['data_error_duplicate'] = 'Дублиран A-Запис';
16-
$wb['ttl_range_error'] = 'Min. TTL time is 60 seconds.';
13+
$wb['data_error_empty'] = 'Полето за IP адреса е празно';
14+
$wb['ip_error_wrong'] = 'Формата на IP адреса е грешен';
15+
$wb['data_error_duplicate'] = 'Дублиран A Запис';
16+
$wb['ttl_range_error'] = 'Минималния TTL е 60 секунди.';
1717
?>

interface/web/tools/import_ispconfig.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,21 @@
109109

110110

111111
try {
112+
//* Second connections to self signed SSL certs
113+
$context = stream_context_create(
114+
array(
115+
'ssl' => array (
116+
'verify_peer' => false,
117+
'verify_peer_name' => false,
118+
'allow_self_signed' => true
119+
)
120+
)
121+
);
112122
$client = new SoapClient(null, array('location' => $_POST['remote_server'],
113123
'uri' => $_POST['remote_server'].'/index.php',
114124
'trace' => 1,
115-
'exceptions' => 1));
125+
'exceptions' => 1,
126+
'stream_context' => $context));
116127

117128
if(!isset($remote_session_id)) $remote_session_id = $_POST['remote_session_id'];
118129

server/lib/classes/letsencrypt.inc.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,12 @@ public function request_certificates($data, $server_type = 'apache') {
250250
unset($le_domains);
251251
@unlink('/usr/local/ispconfig/interface/acme/.well-known/acme-challenge/' . $le_rnd_file);
252252

253+
$le_domain_count = count($temp_domains);
254+
if($le_domain_count > 100) {
255+
$temp_domains = array_slice($temp_domains, 0, 100);
256+
$app->log("There were " . $le_domain_count . " domains in the domain list. LE only supports 100, so we strip the rest.", LOGLEVEL_WARN);
257+
}
258+
253259
// generate cli format
254260
foreach($temp_domains as $temp_domain) {
255261
$cli_domain_arg .= (string) " --domains " . $temp_domain;

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2744,7 +2744,7 @@ private function _patchVhostWebdav($fileName, $webdavRoot) {
27442744
$output .= "Dav On\n";
27452745
$output .= "BrowserMatch MSIE AuthDigestEnableQueryStringHack=On\n";
27462746
$output .= "AuthType Digest\n";
2747-
$output .= "AuthName \"Restricted Area\"\n";
2747+
$output .= 'AuthName "'.(empty($fn)?'/':$fn)."\"\n";
27482748
$output .= "AuthUserFile $webdavRoot/$file\n";
27492749
$output .= "Require valid-user\n";
27502750
$output .= "Options +Indexes\n";

server/plugins-available/mail_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,11 @@ function user_insert($event_name, $data) {
213213
if(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.html')) {
214214
$lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.html');
215215
$html = true;
216+
} elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.txt')) {
217+
$lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.txt');
216218
} elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.html')) {
217219
$lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.html');
218220
$html = true;
219-
} elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.txt')) {
220-
$lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$domain.'.txt');
221221
} elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.txt')) {
222222
$lines = file($conf['rootpath'].'/conf-custom/mail/welcome_email_'.$conf['language'].'.txt');
223223
} elseif(file_exists($conf['rootpath'].'/conf-custom/mail/welcome_email_en.txt')) {

0 commit comments

Comments
 (0)