Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
lolo888
ISPConfig 3
Commits
7c0b6904
Commit
7c0b6904
authored
Jan 12, 2012
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted some changes in mysqllibrary.
parent
8cf78b31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
18 deletions
+4
-18
server/lib/classes/db_mysql.inc.php
server/lib/classes/db_mysql.inc.php
+4
-18
No files found.
server/lib/classes/db_mysql.inc.php
View file @
7c0b6904
...
...
@@ -253,24 +253,10 @@ public function toLower($record) {
return
array
(
'diff_num'
=>
$diff_num
,
'diff_rec'
=>
$diffrec_full
);
}
if
(
$diff_num
>
0
)
{
//print_r($diff_num);
//print_r($diffrec_full);
$diffstr
=
$app
->
db
->
quote
(
serialize
(
$diffrec_full
));
if
(
isset
(
$_SESSION
))
{
$username
=
$app
->
db
->
quote
(
$_SESSION
[
's'
][
'user'
][
'username'
]);
}
else
{
$username
=
'admin'
;
}
$dbidx
=
$primary_field
.
':'
.
$primary_id
;
if
(
$action
==
'INSERT'
)
$action
=
'i'
;
if
(
$action
==
'UPDATE'
)
$action
=
'u'
;
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
')"
;
$app
->
db
->
query
(
$sql
);
}
//** Function to fill the datalog with a full differential record.
public
function
datalogSave
(
$db_table
,
$action
,
$primary_field
,
$primary_id
,
$record_old
,
$record_new
)
{
global
$app
,
$conf
;
// Insert backticks only for incomplete table names.
if
(
stristr
(
$db_table
,
'.'
))
{
...
...
Write
Preview
Markdown
is supported
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