Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
84cad3f1
Commit
84cad3f1
authored
Jul 30, 2012
by
tbrehm
Browse files
Fixed a issue with datalogSave in mysql library.
parent
c771034d
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/db_mysql.inc.php
View file @
84cad3f1
...
@@ -275,9 +275,9 @@ public function toLower($record) {
...
@@ -275,9 +275,9 @@ public function toLower($record) {
if
(
$diff_num
>
0
)
{
if
(
$diff_num
>
0
)
{
$diffstr
=
$
app
->
db
->
quote
(
serialize
(
$diffrec_full
));
$diffstr
=
$
this
->
quote
(
serialize
(
$diffrec_full
));
if
(
isset
(
$_SESSION
))
{
if
(
isset
(
$_SESSION
))
{
$username
=
$
app
->
db
->
quote
(
$_SESSION
[
's'
][
'user'
][
'username'
]);
$username
=
$
this
->
quote
(
$_SESSION
[
's'
][
'user'
][
'username'
]);
}
else
{
}
else
{
$username
=
'admin'
;
$username
=
'admin'
;
}
}
...
@@ -287,7 +287,7 @@ public function toLower($record) {
...
@@ -287,7 +287,7 @@ public function toLower($record) {
if
(
$action
==
'UPDATE'
)
$action
=
'u'
;
if
(
$action
==
'UPDATE'
)
$action
=
'u'
;
if
(
$action
==
'DELETE'
)
$action
=
'd'
;
if
(
$action
==
'DELETE'
)
$action
=
'd'
;
$sql
=
"INSERT INTO sys_datalog (dbtable,dbidx,server_id,action,tstamp,user,data) VALUES ('"
.
$db_table
.
"','
$dbidx
','
$server_id
','
$action
','"
.
time
()
.
"','
$username
','
$diffstr
')"
;
$sql
=
"INSERT INTO sys_datalog (dbtable,dbidx,server_id,action,tstamp,user,data) VALUES ('"
.
$db_table
.
"','
$dbidx
','
$server_id
','
$action
','"
.
time
()
.
"','
$username
','
$diffstr
')"
;
$
app
->
db
->
query
(
$sql
);
$
this
->
query
(
$sql
);
}
}
return
true
;
return
true
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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