Changeset 5912 for trunk/centreon/www/include/eventLogs/GetODSXmlLog.php
- Timestamp:
- 07/24/08 16:58:52 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/centreon/www/include/eventLogs/GetODSXmlLog.php
r5885 r5912 38 38 require_once 'DB.php'; 39 39 40 include_once(" @CENTREON_ETC@/centreon.conf.php");40 include_once("/etc/centreon/centreon.conf.php"); 41 41 include_once($centreon_path . "www/include/eventLogs/common-Func.php"); 42 42 include_once($centreon_path . "www/DBconnect.php"); … … 81 81 (isset($_GET["alert"]) && !check_injection($_GET["alert"])) ? set_user_param($contact_id, $pearDB, "log_filter_alert", htmlentities($_GET["alert"])) : $alert = "true"; 82 82 (isset($_GET["error"]) && !check_injection($_GET["error"])) ? set_user_param($contact_id, $pearDB, "log_filter_error", htmlentities($_GET["error"])) : $error = "false"; 83 (isset($_GET["oh"]) && !check_injection($_GET["oh"])) ? set_user_param($contact_id, $pearDB, "log_filter_oh", htmlentities($_GET["oh"])) : $oh = "false"; 83 84 84 85 if ($contact_id){ … … 120 121 $warning = $user_params["log_filter_svc_warning"]; 121 122 $critical = $user_params["log_filter_svc_critical"]; 123 $oh = $user_params["log_filter_oh"]; 122 124 } 123 125 … … 172 174 echo "<critical>".$critical."</critical>"; 173 175 echo "<unknown>".$unknown."</unknown>"; 176 echo "<oh>".$oh."</oh>"; 174 177 echo "</infos>"; 175 178 … … 201 204 array_push ($msg_status_set, "'UNREACHABLE'"); 202 205 203 if ($ok == 'true' )206 if ($ok == 'true') 204 207 array_push ($msg_status_set, "'ok'"); 205 if ($warning == 'true' )208 if ($warning == 'true') 206 209 array_push ($msg_status_set, "'warning'"); 207 if ($critical == 'true' )210 if ($critical == 'true') 208 211 array_push ($msg_status_set, "'critical'"); 209 if ($unknown == 'true' )212 if ($unknown == 'true') 210 213 array_push ($msg_status_set, "'unknown'"); 211 214 … … 215 218 $msg_req .= 'OR status is null'; 216 219 $msg_req .=')'; 220 } 221 222 if ($oh == 'true'){ 223 $msg_req .= " AND `type` = 'HARD' "; 217 224 } 218 225 … … 482 489 483 490 echo "<lang>"; 491 484 492 echo "<typeAlert>"._("Type")."</typeAlert>"; 485 493 echo "<notification>"._("notification")."</notification>"; … … 495 503 echo "<critical>"._("critical")."</critical>"; 496 504 echo "<unknown>"._("unknown")."</unknown>"; 505 echo "<oh>"._("Only Hard")."</oh>"; 506 /* 507 * Translation for tables. 508 */ 509 echo "<d>"._("Day")."</d>"; 510 echo "<t>"._("Time")."</t>"; 511 echo "<h>"._("Host")."</h>"; 512 echo "<s>"._("Status")."</s>"; 513 echo "<T>"._("Type")."</T>"; 514 echo "<R>"._("Retry")."</R>"; 515 echo "<o>"._("Output")."</o>"; 516 echo "<c>"._("Contact")."</c>"; 517 echo "<C>"._("Cmd")."</C>"; 518 497 519 echo "</lang>"; 498 520 echo "</root>";
