Skip to content

Commit 291809c

Browse files
author
Till Brehm
committed
Merge branch 'xxxx-cleanup' into 'develop'
Collection of minor cleanup commits See merge request ispconfig/ispconfig3!1679
2 parents 5055c53 + bb08805 commit 291809c

File tree

19 files changed

+34
-22
lines changed

19 files changed

+34
-22
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.idea
22
/nbproject/private/
3+
.vscode
34
.phplint-cache
45
*.swp
56

docs/autoinstall_samples/autoinstall.conf_sample.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
$autoupdate['ispconfig_postfix_ssl_symlink'] = 'y';
6262
$autoupdate['ispconfig_pureftpd_ssl_symlink'] = 'y';
6363

64-
/* These are for service-detection (defaulting to old behaviour where alle changes were automatically accepted) */
64+
/* These are for service-detection (defaulting to old behaviour where all changes were automatically accepted) */
6565
$autoupdate['svc_detect_change_mail_server'] = 'yes'; // yes (default), no
6666
$autoupdate['svc_detect_change_web_server'] = 'yes'; // yes (default), no
6767
$autoupdate['svc_detect_change_dns_server'] = 'yes'; // yes (default), no

docs/autoinstall_samples/autoinstall.ini.sample

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ignore_hostname_dns=n
6060
ispconfig_postfix_ssl_symlink=y
6161
ispconfig_pureftpd_ssl_symlink=y
6262

63-
; These are for service-detection (defaulting to old behaviour where alle changes were automatically accepted)
63+
; These are for service-detection (defaulting to old behaviour where all changes were automatically accepted)
6464
svc_detect_change_mail_server=yes
6565
svc_detect_change_web_server=yes
6666
svc_detect_change_dns_server=yes

interface/lib/classes/db_mysql.inc.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -825,12 +825,13 @@ public function datalogDelete($tablename, $index_field, $index_value) {
825825
return true;
826826
}
827827

828-
//** Deletes a record and saves the changes into the datalog
828+
// Updates a datalog record to store an error state.
829829
public function datalogError($errormsg) {
830830
global $app;
831831

832-
if(isset($app->modules->current_datalog_id) && $app->modules->current_datalog_id > 0) $this->query("UPDATE sys_datalog set error = ? WHERE datalog_id = ?", $errormsg, $app->modules->current_datalog_id);
833-
832+
if(isset($app->modules->current_datalog_id) && $app->modules->current_datalog_id > 0) {
833+
$this->query("UPDATE sys_datalog set error = ? WHERE datalog_id = ?", $errormsg, $app->modules->current_datalog_id);
834+
}
834835
return true;
835836
}
836837

@@ -844,7 +845,11 @@ public function datalogStatus($login = '') {
844845
$login = $_SESSION['s']['user']['username'];
845846
}
846847

847-
$result = $this->queryAllRecords("SELECT COUNT( * ) AS cnt, sys_datalog.action, sys_datalog.dbtable FROM sys_datalog, server WHERE server.server_id = sys_datalog.server_id AND sys_datalog.user = ? AND sys_datalog.datalog_id > server.updated GROUP BY sys_datalog.dbtable, sys_datalog.action", $login);
848+
$result = $this->queryAllRecords("SELECT COUNT( * ) AS cnt, sys_datalog.action, sys_datalog.dbtable
849+
FROM sys_datalog, server
850+
WHERE server.server_id = sys_datalog.server_id AND sys_datalog.user = ? AND sys_datalog.datalog_id > server.updated
851+
GROUP BY sys_datalog.dbtable, sys_datalog.action",
852+
$login);
848853
foreach($result as $row) {
849854
if(!$row['dbtable'] || in_array($row['dbtable'], array('aps_instances', 'aps_instances_settings', 'mail_access', 'mail_content_filter'))) continue; // ignore some entries, maybe more to come
850855
$return['entries'][] = array('table' => $row['dbtable'], 'action' => $row['action'], 'count' => $row['cnt'], 'text' => $app->lng('datalog_status_' . $row['action'] . '_' . $row['dbtable'])); $return['count'] += $row['cnt'];

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $wb['xfer_txt'] = 'Allow zone transfers to <br />these IPs (comma separated list
99
$wb['server_id_error_empty'] = 'No server selected';
1010
$wb['origin_error_empty'] = 'Zone empty.';
1111
$wb['origin_error_unique'] = 'There is already a record for this zone.';
12-
$wb['origin_error_regex'] = 'Zone has a invalid format.';
12+
$wb['origin_error_regex'] = 'Zone has an invalid format.';
1313
$wb['ns_error_regex'] = 'NS has a invalid format.';
1414
$wb['eg_domain_tld'] = 'e.g. domain.tld.';
1515
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $wb['no_zone_perm'] = 'You do not have the permission to add a record to this DN
1717
$wb['server_id_error_empty'] = 'No server selected';
1818
$wb['origin_error_empty'] = 'Zone empty.';
1919
$wb['origin_error_unique'] = 'There is already a record for this zone.';
20-
$wb['origin_error_regex'] = 'Zone has a invalid format.';
20+
$wb['origin_error_regex'] = 'Zone has an invalid format.';
2121
$wb['ns_error_regex'] = 'NS has a invalid format.';
2222
$wb['mbox_error_empty'] = 'Email is empty.';
2323
$wb['mbox_error_regex'] = 'Email format invalid.';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $wb['no_zone_perm'] = 'Вие намате права да добавяте за
1717
$wb['server_id_error_empty'] = 'Няма избран сървър';
1818
$wb['origin_error_empty'] = 'Зоната е празна.';
1919
$wb['origin_error_unique'] = 'Вече има такъв запис в тази зона.';
20-
$wb['origin_error_regex'] = 'Zone has a invalid format.';
20+
$wb['origin_error_regex'] = 'Zone has an invalid format.';
2121
$wb['ns_error_regex'] = 'NS запис ае в грешен формат.';
2222
$wb['mbox_error_empty'] = 'Полето с емайл е празно.';
2323
$wb['mbox_error_regex'] = 'Полето е емайл е в грешен формат.';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $wb['xfer_txt'] = 'Allow zone transfers to <br />these IPs (comma separated list
1010
$wb['server_id_error_empty'] = 'No server selected';
1111
$wb['origin_error_empty'] = 'Zone empty.';
1212
$wb['origin_error_unique'] = 'There is already a record for this zone.';
13-
$wb['origin_error_regex'] = 'Zone has a invalid format.';
13+
$wb['origin_error_regex'] = 'Zone has an invalid format.';
1414
$wb['ns_error_regex'] = 'NS has a invalid format.';
1515
$wb['eg_domain_tld'] = 'e.g. domain.tld.';
1616
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $wb['no_zone_perm'] = 'You do not have the permission to add a record to this DN
2020
$wb['server_id_error_empty'] = 'No server selected';
2121
$wb['origin_error_empty'] = 'Zone empty.';
2222
$wb['origin_error_unique'] = 'There is already a record for this zone.';
23-
$wb['origin_error_regex'] = 'Zone has a invalid format.';
23+
$wb['origin_error_regex'] = 'Zone has an invalid format.';
2424
$wb['ns_error_regex'] = 'NS has a invalid format.';
2525
$wb['mbox_error_empty'] = 'Email is empty.';
2626
$wb['mbox_error_regex'] = 'Email format invalid.';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $wb['xfer_txt'] = 'Allow zone transfers to <br />these IPs (comma separated list
99
$wb['server_id_error_empty'] = 'No server selected';
1010
$wb['origin_error_empty'] = 'Zone empty.';
1111
$wb['origin_error_unique'] = 'There is already a record for this zone.';
12-
$wb['origin_error_regex'] = 'Zone has a invalid format.';
12+
$wb['origin_error_regex'] = 'Zone has an invalid format.';
1313
$wb['ns_error_regex'] = 'NS has a invalid format.';
1414
$wb['eg_domain_tld'] = 'e.g. domain.tld.';
1515
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';

0 commit comments

Comments
 (0)