Private GIT

Skip to content
Snippets Groups Projects
Commit 2d4b83a2 authored by Kevin Duret's avatar Kevin Duret
Browse files

remove some debug in kb

parent 42585e84
Branches
Tags
No related merge requests found
...@@ -378,27 +378,21 @@ class procedures ...@@ -378,27 +378,21 @@ class procedures
$text = $DBRESULT->fetchRow(); $text = $DBRESULT->fetchRow();
$DBRESULT->free(); $DBRESULT->free();
if ($type == 0) { switch ($type) {
case 0:
$object = "Host:" . $object; $object = "Host:" . $object;
} break;
if ($type == 2) { case 1:
$object = "Service:" . $object; $object = "Service:" . $object;
} break;
if ($type == 2) { case 2:
$object = "Host-Template:" . $object; $object = "Host-Template:" . $object;
} break;
if ($type == 3) { case 3:
$object = "Service-Template:" . $object; $object = "Service-Template:" . $object;
break;
} }
if ($debug) {
print(
"INSERT INTO " . $this->db_prefix . "page (`page_namespace` ,`page_title`,`page_counter`, " .
" `page_is_redirect`,`page_is_new`,`page_random` ,`page_touched`,`page_latest`,`page_len`) " .
" VALUES ('0', '" . $object . "', '', '0', '1', '', '" . $data["page_touched"] . "', '" .
$data["page_latest"] . "', '" . $data["page_len"] . "')"
);
}
$dateTouch = date("YmdHis"); $dateTouch = date("YmdHis");
$this->DB->query( $this->DB->query(
"INSERT INTO " . $this->db_prefix . "page (`page_namespace` ,`page_title`,`page_counter`, " . "INSERT INTO " . $this->db_prefix . "page (`page_namespace` ,`page_title`,`page_counter`, " .
...@@ -409,19 +403,6 @@ class procedures ...@@ -409,19 +403,6 @@ class procedures
$DBRESULT = $this->DB->query("SELECT MAX(page_id) FROM ".$this->db_prefix."page"); $DBRESULT = $this->DB->query("SELECT MAX(page_id) FROM ".$this->db_prefix."page");
$id = $DBRESULT->fetchRow(); $id = $DBRESULT->fetchRow();
if ($debug) {
print(
"INSERT INTO `" . $this->db_prefix . "text` (old_id, old_text, old_flags) " .
" VALUE (NULL, '" . $text["old_text"] . "', '" . $text["old_flags"] . "')"
);
print(
"INSERT INTO `" . $this->db_prefix . "revision` (rev_page, rev_text_id, rev_comment, " .
" rev_user_text, rev_timestamp) VALUE ('" . $id["MAX(page_id)"] .
"', (SELECT MAX(old_id) FROM text), '" . $revision["rev_comment"] . "', 'Centreon','" .
$dateTouch . "')"
);
}
$this->DB->query( $this->DB->query(
"INSERT INTO `text` (old_id, old_text, old_flags) VALUE (NULL, '" . "INSERT INTO `text` (old_id, old_text, old_flags) VALUE (NULL, '" .
$text["old_text"] . "', '" . $text["old_flags"] . "')" $text["old_text"] . "', '" . $text["old_flags"] . "')"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment