Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
86624584
Commit
86624584
authored
Dec 20, 2008
by
tbrehm
Browse files
No commit message
No commit message
parent
f669291d
Changes
3
Hide whitespace changes
Inline
Side-by-side
interface/web/admin/server_config_edit.php
View file @
86624584
...
...
@@ -83,7 +83,7 @@ class page_action extends tform_actions {
$server_config_array
[
$section
]
=
$app
->
tform
->
encode
(
$this
->
dataRecord
,
$section
);
$server_config_str
=
$app
->
ini_parser
->
get_ini_string
(
$server_config_array
);
$app
->
db
->
datalogUpdate
(
'server'
,
"
SET
config = '"
.
$app
->
db
->
quote
(
$server_config_str
)
.
"'"
,
'server_id'
,
$server_id
);
$app
->
db
->
datalogUpdate
(
'server'
,
"config = '"
.
$app
->
db
->
quote
(
$server_config_str
)
.
"'"
,
'server_id'
,
$server_id
);
}
}
...
...
interface/web/mail/mail_domain_edit.php
View file @
86624584
...
...
@@ -163,7 +163,7 @@ class page_action extends tform_actions {
$tmp_user
=
$app
->
db
->
queryOneRecord
(
"SELECT id FROM spamfilter_users WHERE email = '@"
.
mysql_real_escape_string
(
$this
->
dataRecord
[
"domain"
])
.
"'"
);
if
(
$tmp_user
[
"id"
]
>
0
)
{
// There is already a record that we will update
$app
->
db
->
datalogUpdate
(
'spamfilter_users'
,
"
SET
policy_id =
$ploicy_id
"
,
'id'
,
$tmp_user
[
"id"
]);
$app
->
db
->
datalogUpdate
(
'spamfilter_users'
,
"policy_id =
$ploicy_id
"
,
'id'
,
$tmp_user
[
"id"
]);
}
else
{
$tmp_domain
=
$app
->
db
->
queryOneRecord
(
"SELECT sys_groupid FROM mail_domain WHERE domain_id = "
.
$this
->
id
);
// We create a new record
...
...
@@ -213,7 +213,7 @@ class page_action extends tform_actions {
if
(
$policy_id
>
0
)
{
if
(
$tmp_user
[
"id"
]
>
0
)
{
// There is already a record that we will update
$app
->
db
->
datalogUpdate
(
'spamfilter_users'
,
"
SET
policy_id =
$ploicy_id
"
,
'id'
,
$tmp_user
[
"id"
]);
$app
->
db
->
datalogUpdate
(
'spamfilter_users'
,
"policy_id =
$ploicy_id
"
,
'id'
,
$tmp_user
[
"id"
]);
}
else
{
$tmp_domain
=
$app
->
db
->
queryOneRecord
(
"SELECT sys_groupid FROM mail_domain WHERE domain_id = "
.
$this
->
id
);
// We create a new record
...
...
interface/web/mail/mail_user_edit.php
View file @
86624584
...
...
@@ -208,7 +208,7 @@ class page_action extends tform_actions {
$tmp_user
=
$app
->
db
->
queryOneRecord
(
"SELECT id FROM spamfilter_users WHERE email = '"
.
mysql_real_escape_string
(
$this
->
dataRecord
[
"email"
])
.
"'"
);
if
(
$tmp_user
[
"id"
]
>
0
)
{
// There is already a record that we will update
$app
->
db
->
datalogUpdate
(
'spamfilter_users'
,
"
SET
policy_id =
$ploicy_id
"
,
'id'
,
$tmp_user
[
"id"
]);
$app
->
db
->
datalogUpdate
(
'spamfilter_users'
,
"policy_id =
$ploicy_id
"
,
'id'
,
$tmp_user
[
"id"
]);
}
else
{
// We create a new record
$insert_data
=
"(`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_id`, `priority`, `policy_id`, `email`, `fullname`, `local`)
...
...
@@ -233,7 +233,7 @@ class page_action extends tform_actions {
if
(
$policy_id
>
0
)
{
if
(
$tmp_user
[
"id"
]
>
0
)
{
// There is already a record that we will update
$app
->
db
->
datalogUpdate
(
'spamfilter_users'
,
"
SET
policy_id =
$ploicy_id
"
,
'id'
,
$tmp_user
[
"id"
]);
$app
->
db
->
datalogUpdate
(
'spamfilter_users'
,
"policy_id =
$ploicy_id
"
,
'id'
,
$tmp_user
[
"id"
]);
}
else
{
// We create a new record
$insert_data
=
"(`sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `server_id`, `priority`, `policy_id`, `email`, `fullname`, `local`)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment