Skip to content

Commit d1652d6

Browse files
author
Marius Burkard
committed
Merge branch 'patch-misc' into 'develop'
Misc small patches See merge request ispconfig/ispconfig3!1374
2 parents 1fa2dfb + 2adaa6b commit d1652d6

File tree

8 files changed

+14
-21
lines changed

8 files changed

+14
-21
lines changed

install/lib/install.lib.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -882,9 +882,8 @@ function get_apps_vhost_port_number() {
882882
}
883883

884884
/*
885-
* Get the port number of the ISPConfig controlpanel vhost
886-
*/
887-
885+
* Check if SSL is anabled in the ISPConfig controlpanel vhost.
886+
*/
888887
function is_ispconfig_ssl_enabled() {
889888
global $conf;
890889
$ispconfig_vhost_file = $conf['apache']['vhost_conf_dir'].'/ispconfig.vhost';

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class installer_base {
3434
var $language = 'en';
3535
var $db;
3636
public $install_ispconfig_interface = true;
37-
public $is_update = false; // true if it is an update, falsi if it is a new install
37+
public $is_update = false; // true if it is an update, false if it is a new install
3838
public $min_php = '5.4'; // minimal php-version for update / install
3939
protected $mailman_group = 'list';
4040

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public function dns_templatezone_add($session_id, $client_id, $template_id, $dom
4646
global $app, $conf;
4747
if(!$this->checkPerm($session_id, 'dns_templatezone_add')) {
4848
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
49-
return false;
5049
}
5150

5251
$client = $app->db->queryOneRecord("SELECT default_dnsserver FROM client WHERE client_id = ?", $client_id);

interface/lib/classes/remoting.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function login($username, $password, $client_login = false)
124124
$remote_functions = '';
125125
$tstamp = time() + $this->session_timeout;
126126
$sql = 'INSERT INTO remote_session (remote_session,remote_userid,remote_functions,client_login,tstamp'
127-
.') VALUES (?, ?, ?, 1, $tstamp)';
127+
.') VALUES (?, ?, ?, 1, ?)';
128128
$app->db->query($sql, $remote_session,$remote_userid,$remote_functions,$tstamp);
129129
return $remote_session;
130130
} else {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $wb['username_txt'] = 'Gebruikersnaam';
1616
$wb['password_txt'] = 'Wachtwoord';
1717
$wb['login_button_txt'] = 'Inloggen';
1818
$wb['pw_lost_txt'] = 'Wachtwoord vergeten';
19-
$wb['error_maintenance_mode'] = 'This ISPConfig installation is currently under maintenance. We should be back shortly. Thank you for your patience.';
19+
$wb['error_maintenance_mode'] = 'Deze dienst is momenteel in onderhoud. We zijn spoedig weer beschikbaar.';
2020
$wb['login_txt'] = 'Inloggen';
2121
$wb['pw_reset_txt'] = 'Wachtwoord herstellen';
2222
$wb['pw_button_txt'] = 'Wachtwoord versturen';

interface/web/mail/templates/mail_alias_list.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
5353
<td><a href="#" data-load-content="mail/mail_alias_edit.php?id={tmpl_var name='id'}">{tmpl_var name="source"}</a></td>
5454
<td><a href="#" data-load-content="mail/mail_alias_edit.php?id={tmpl_var name='id'}">{tmpl_var name="destination"}</a></td>
5555
<td class="text-right">
56-
<a class="btn btn-default formbutton-danger formbutton-narrow" href="javascript: ISPConfig.confirm_action('mail/mail_alias_del.php?id={tmpl_var name='id'}&_csrf_id={tmpl_var name='csrf_id'}&_csrf_key={tmpl_var name='csrf_key'}&_csrf_id={tmpl_var name='csrf_id'}&_csrf_key={tmpl_var name='csrf_key'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span class="icon icon-delete"></span></a>
56+
<a class="btn btn-default formbutton-danger formbutton-narrow" href="javascript: ISPConfig.confirm_action('mail/mail_alias_del.php?id={tmpl_var name='id'}&_csrf_id={tmpl_var name='csrf_id'}&_csrf_key={tmpl_var name='csrf_key'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span class="icon icon-delete"></span></a>
5757
</td>
5858
</tr>
5959
</tmpl_loop>

interface/web/sites/lib/module.conf.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,12 @@
198198
'link' => 'sites/web_sites_stats.php',
199199
'html_id' => 'websites_stats');
200200

201-
$items[] = array( 'title' => 'FTP traffic',
202-
'target' => 'content',
203-
'link' => 'sites/ftp_sites_stats.php',
204-
'html_id' => 'ftpsites_stats');
205-
201+
if($app->auth->get_client_limit($userid, 'ftp_user') != 0) {
202+
$items[] = array( 'title' => 'FTP traffic',
203+
'target' => 'content',
204+
'link' => 'sites/ftp_sites_stats.php',
205+
'html_id' => 'ftpsites_stats');
206+
}
206207
$items[] = array( 'title' => 'Website quota (Harddisk)',
207208
'target' => 'content',
208209
'link' => 'sites/user_quota_stats.php',

server/plugins-available/bind_plugin.inc.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ function soa_dnssec_update(&$data, $new=false) {
208208

209209
//* Check for available entropy
210210
if (file_get_contents('/proc/sys/kernel/random/entropy_avail') < 200) {
211-
$app->log('DNSSEC ERROR: We are low on entropy. This could cause server script to fail. Please consider installing package haveged.', LOGLEVEL_ERR);
211+
$app->log('DNSSEC ERROR: We are low on entropy. This could cause server script to fail. Please consider installing package haveged.', LOGLEVEL_ERROR);
212212
echo "DNSSEC ERROR: We are low on entropy. This could cause server script to fail. Please consider installing package haveged.\n";
213213
return false;
214214
}
@@ -219,7 +219,7 @@ function soa_dnssec_update(&$data, $new=false) {
219219
$app->system->exec_safe('cd ?; named-checkzone ? ? | egrep -ho \'[0-9]{10}\'', $dns_config['bind_zonefiles_dir'], $domain, $dns_config['bind_zonefiles_dir'].'/'.$filespre.$domain);
220220
$retState = $app->system->last_exec_retcode();
221221
if ($retState != 0) {
222-
$app->log('DNSSEC Error: Error in Zonefile for '.$domain, LOGLEVEL_ERR);
222+
$app->log('DNSSEC Error: Error in Zonefile for '.$domain, LOGLEVEL_ERROR);
223223
return false;
224224
}
225225

@@ -417,12 +417,6 @@ function soa_delete($event_name, $data) {
417417
if(is_file($zone_file_name.'.err')) unlink($zone_file_name.'.err');
418418
$app->log("Deleting BIND domain file: ".$zone_file_name, LOGLEVEL_DEBUG);
419419

420-
//* DNSSEC-Implementation
421-
if($data['old']['dnssec_initialized'] == 'Y' && file_exists('/usr/local/ispconfig/server/scripts/dnssec-delete.sh')) {
422-
//delete keys
423-
$app->system->exec_safe('/usr/local/ispconfig/server/scripts/dnssec-delete.sh ?', $data['old']['origin']);
424-
}
425-
426420
//* Reload bind nameserver
427421
$app->services->restartServiceDelayed('bind', 'reload');
428422

0 commit comments

Comments
 (0)