Changeset 5885
- Timestamp:
- 07/24/08 11:37:57 (2 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/centreon/www/include/eventLogs/GetODSXmlLog.php
r5863 r5885 453 453 echo "<type>".$log["type"]."</type>"; 454 454 455 # Color initialisation for services and hosts status 455 456 $color = ''; 456 457 if ($log["msg_type"] == 0 || $log["msg_type"] == 2) … … 458 459 if ($log["msg_type"] == 1 || $log["msg_type"] == 3) 459 460 $color = $tab_color_host[$log["status"]]; 461 462 # Variable initialisation to color "INITIAL STATE" on envent logs 463 if ($log["msg_type"] == 8) 464 $color = $tab_color_service[$log["status"]]; 465 if ($log["msg_type"] == 9) 466 $color = $tab_color_host[$log["status"]]; 467 if($log["output"] == "" && $log["status"] != "") 468 $log["output"] = "INITIAL STATE"; 460 469 461 470 echo '<status color="'.$color.'">'.$log["status"].'</status>';
