Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
b16c0b22
Commit
b16c0b22
authored
Dec 09, 2008
by
tbrehm
Browse files
No commit message
No commit message
parent
e45f6d6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/modules.inc.php
View file @
b16c0b22
...
...
@@ -142,9 +142,10 @@ class modules {
if
(
$replication_error
==
false
)
{
$this
->
raiseTableHook
(
$d
[
"dbtable"
],
$d
[
"action"
],
$data
);
$app
->
dbmaster
->
query
(
"DELETE FROM sys_datalog WHERE datalog_id = "
.
$d
[
"datalog_id"
]);
$app
->
log
(
"Deleting sys_datalog ID "
.
$d
[
"datalog_id"
],
LOGLEVEL_DEBUG
);
//
$app->dbmaster->query("DELETE FROM sys_datalog WHERE datalog_id = ".$d["datalog_id"]);
//
$app->log("Deleting sys_datalog ID ".$d["datalog_id"],LOGLEVEL_DEBUG);
$app
->
db
->
query
(
"UPDATE sys_datalog SET status = 'ok' WHERE datalog_id = "
.
$d
[
"datalog_id"
]);
$app
->
log
(
"Changing datalog status to -ok- for sys_datalog ID "
.
$rec
[
"datalog_id"
],
LOGLEVEL_DEBUG
);
}
else
{
$app
->
log
(
"Error in Repliction, changes were not processed."
,
LOGLEVEL_ERROR
);
$app
->
db
->
query
(
"UPDATE sys_datalog SET status = 'error' WHERE datalog_id = "
.
$d
[
"datalog_id"
]);
...
...
@@ -158,9 +159,10 @@ class modules {
foreach
(
$records
as
$rec
)
{
$data
=
unserialize
(
stripslashes
(
$rec
[
"data"
]));
$this
->
raiseTableHook
(
$rec
[
"dbtable"
],
$rec
[
"action"
],
$data
);
$app
->
db
->
query
(
"DELETE FROM sys_datalog WHERE datalog_id = "
.
$rec
[
"datalog_id"
]);
$app
->
log
(
"Deleting sys_datalog ID "
.
$rec
[
"datalog_id"
],
LOGLEVEL_DEBUG
);
//
$app->db->query("DELETE FROM sys_datalog WHERE datalog_id = ".$rec["datalog_id"]);
//
$app->log("Deleting sys_datalog ID ".$rec["datalog_id"],LOGLEVEL_DEBUG);
$app
->
db
->
query
(
"UPDATE sys_datalog SET status = 'ok' WHERE datalog_id = "
.
$rec
[
"datalog_id"
]);
$app
->
log
(
"Changing datalog status to -ok- for sys_datalog ID "
.
$rec
[
"datalog_id"
],
LOGLEVEL_DEBUG
);
}
}
...
...
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