Skip to content

Commit a6e3ae8

Browse files
author
Marius Cramer
committed
- fixed some syntax errors from previous commit
1 parent 2af58c7 commit a6e3ae8

File tree

12 files changed

+16
-16
lines changed

12 files changed

+16
-16
lines changed

install/dist/lib/opensuse.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,9 +1099,9 @@ public function install_ispconfig()
10991099
$vserver_server_enabled = ($conf['services']['vserver'])?1:0;
11001100
$sql = "UPDATE `server` SET mail_server = ?, web_server = ?, dns_server = ?, file_server = ?, db_server = ?, vserver_server = ? WHERE server_id = ?";
11011101

1102-
$this->db->query($sql, $mail_server_enabled, $web_server_enabled, $dns_server_enabled, $file_server_enabled, $db_server_enabled, $vserver_server_enabled, $conf['server_id']););
1102+
$this->db->query($sql, $mail_server_enabled, $web_server_enabled, $dns_server_enabled, $file_server_enabled, $db_server_enabled, $vserver_server_enabled, $conf['server_id']);
11031103
if($conf['mysql']['master_slave_setup'] == 'y') {
1104-
$this->dbmaster->query($sql, $mail_server_enabled, $web_server_enabled, $dns_server_enabled, $file_server_enabled, $db_server_enabled, $vserver_server_enabled, $conf['server_id']););
1104+
$this->dbmaster->query($sql, $mail_server_enabled, $web_server_enabled, $dns_server_enabled, $file_server_enabled, $db_server_enabled, $vserver_server_enabled, $conf['server_id']);
11051105
}
11061106

11071107
// chown install dir to root and chmod 755

interface/lib/classes/custom_datasource.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function slave_dns_servers($field, $record) {
7070
// Get the limits of the client
7171
$client_group_id = $app->functions->intval($_SESSION["s"]["user"]["default_group"]);
7272
$client = $app->db->queryOneRecord("SELECT default_slave_dnsserver FROM sys_group, client WHERE sys_group.client_id = client.client_id and sys_group.groupid = ", $client_group_id);
73-
$sql = "SELECT server_id,server_name FROM server WHERE server_id = ?");
73+
$sql = "SELECT server_id,server_name FROM server WHERE server_id = ?";
7474
} else {
7575
$sql = "SELECT server_id,server_name FROM server WHERE dns_server = 1 ORDER BY server_name";
7676
}

interface/lib/classes/db_mysql.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ public function datalogInsert($tablename, $insert_data, $index_field) {
629629
$params = array($tablename);
630630
$v_params = array();
631631
foreach($insert_data as $key => $val) {
632-
$key_str .= '??,'
632+
$key_str .= '??,';
633633
$params[] = $key;
634634

635635
$val_str .= '?,';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public function mail_user_backup($session_id, $primary_id, $action_type)
370370
}
371371

372372
//* Save the record
373-
if ($app->db->query("INSERT INTO `sys_remoteaction` SET `server_id` = ?, `tstamp` = ?, `action_type` = ?, `action_param` = ?, `action_state` = ?"), $server_id, $tstamp, $action_type, $primary_id, $action_state) {
373+
if ($app->db->query("INSERT INTO `sys_remoteaction` SET `server_id` = ?, `tstamp` = ?, `action_type` = ?, `action_param` = ?, `action_state` = ?", $server_id, $tstamp, $action_type, $primary_id, $action_state)) {
374374
return true;
375375
} else {
376376
return false;

interface/lib/classes/validate_domain.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function _check_unique($domain_name, $only_domain = false) {
190190
if($only_domain == false) {
191191
$qrystr = "SELECT d.domain_id, IF(d.parent_domain_id != 0 AND p.domain_id IS NOT NULL, p.ip_address, d.ip_address) as `ip_address`, IF(d.parent_domain_id != 0 AND p.domain_id IS NOT NULL, p.ipv6_address, d.ipv6_address) as `ipv6_address` FROM `web_domain` as d LEFT JOIN `web_domain` as p ON (p.domain_id = d.parent_domain_id) WHERE (CONCAT(d.subdomain, '.', d.domain)= ?" . $additional_sql2 . ") AND d.server_id = ? AND d.domain_id != ?" . ($primary_id ? " AND d.parent_domain_id != ?" : "");
192192
$params = array($domain_name) + $domain_params + array($domain['server_id'], $primary_id, $primary_id);
193-
$checks = $app->db->queryAllRecords($qrystr, true $params);
193+
$checks = $app->db->queryAllRecords($qrystr, true, $params);
194194
if(is_array($checks) && !empty($checks)){
195195
foreach($checks as $check){
196196
if($domain['ip_address'] == '*') return false;

interface/lib/plugins/mail_mail_domain_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function mail_mail_domain_edit($event_name, $page_form) {
3737
$tmp = $app->db->queryOneRecord("SELECT userid FROM sys_user WHERE default_group = ?", $client_group_id);
3838
$client_user_id = ($tmp['userid'] > 0)?$tmp['userid']:1;
3939
$updates .= ", sys_userid = ?";
40-
$update_params[] = $client_user_id
40+
$update_params[] = $client_user_id;
4141
}
4242
$update_params[] = $page_form->id;
4343
$app->db->query("UPDATE mail_domain SET " . $updates . " WHERE domain_id = ?", true, $update_params);
@@ -50,7 +50,7 @@ function mail_mail_domain_edit($event_name, $page_form) {
5050
$tmp = $app->db->queryOneRecord("SELECT userid FROM sys_user WHERE default_group = ?", $client_group_id);
5151
$client_user_id = ($tmp['userid'] > 0)?$tmp['userid']:1;
5252
$updates .= ", sys_userid = ?";
53-
$update_params[] = $client_user_id
53+
$update_params[] = $client_user_id;
5454
}
5555
$update_params[] = $page_form->id;
5656
$app->db->query("UPDATE mail_domain SET " . $updates . " WHERE domain_id = ?", true, $update_params);

interface/web/mail/mail_alias_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function onSubmit() {
149149
function onAfterInsert() {
150150
global $app;
151151

152-
$domain = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_domain WHERE domain = ? AND ".$app->tform->getAuthSQL('r'), $app->functions->idn_encode($_POST["email_domain"])));
152+
$domain = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_domain WHERE domain = ? AND ".$app->tform->getAuthSQL('r'), $app->functions->idn_encode($_POST["email_domain"]));
153153
$app->db->query("update mail_forwarding SET sys_groupid = ? WHERE forwarding_id = ?", $domain['sys_groupid'], $this->id);
154154

155155
}

interface/web/mail/mail_domain_catchall_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function onSubmit() {
127127
function onAfterInsert() {
128128
global $app;
129129

130-
$domain = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_domain WHERE domain = ? AND ".$app->tform->getAuthSQL('r'), $app->functions->idn_encode($_POST["email_domain"])));
130+
$domain = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_domain WHERE domain = ? AND ".$app->tform->getAuthSQL('r'), $app->functions->idn_encode($_POST["email_domain"]));
131131
$app->db->query("update mail_forwarding SET sys_groupid = ? WHERE forwarding_id = ?", $domain['sys_groupid'], $this->id);
132132

133133
}

interface/web/mail/mail_forward_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function onSubmit() {
131131
function onAfterInsert() {
132132
global $app;
133133

134-
$domain = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_domain WHERE domain = ? AND ".$app->tform->getAuthSQL('r'), $app->functions->idn_encode($_POST["email_domain"])));
134+
$domain = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_domain WHERE domain = ? AND ".$app->tform->getAuthSQL('r'), $app->functions->idn_encode($_POST["email_domain"]));
135135
$app->db->query("update mail_forwarding SET sys_groupid = ? WHERE forwarding_id = ?", $domain['sys_groupid'], $this->id);
136136

137137
}

interface/web/sites/web_folder_user_edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ function onAfterInsert() {
8080
// The web folder user entry shall be owned by the same group as the web folder
8181
$sys_groupid = $app->functions->intval($folder['sys_groupid']);
8282

83-
$sql = "UPDATE web_folder_user SET sys_groupid = ? WHERE web_folder_user_id = ?", $sys_groupid, $this->id;
84-
$app->db->query($sql);
83+
$sql = "UPDATE web_folder_user SET sys_groupid = ? WHERE web_folder_user_id = ?";
84+
$app->db->query($sql, $sys_groupid, $this->id);
8585
}
8686

8787
function onAfterUpdate() {

0 commit comments

Comments
 (0)