- Timestamp:
- 08/21/08 11:36:00 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/centreon/www/include/monitoring/status/monitoringHost.php
r6132 r6217 28 28 require_once 'HTML/QuickForm/Renderer/ArraySmarty.php'; 29 29 30 $DBRESULT =& $pearDB->query("SELECT ndo_activate FROM general_opt LIMIT 1"); 31 # Set base value 32 $gopt = array_map("myDecode", $DBRESULT->fetchRow()); 33 34 $ndo = $gopt["ndo_activate"]; 35 36 if ($ndo) 37 $path = "./include/monitoring/status/status-ndo/"; 38 else 39 $path = "./include/monitoring/status/status-log/"; 30 $path = "./include/monitoring/status/status-ndo/"; 40 31 41 32 $pathRoot = "./include/monitoring/"; … … 58 49 } 59 50 } else { 60 if (!$ndo){ 61 include("./include/monitoring/status/resume.php"); 51 52 include_once("./DBNDOConnect.php"); 53 54 if (preg_match("/connect\ failed/", $pearDBndo->toString(), $str)) 55 print "<div class='msg'>"._("Connection Error to NDO DataBase ! \n")."</div>"; 56 else { 57 if ($err_msg = table_not_exists("centreon_acl")) 58 print "<div class='msg'>"._("Warning: ").$err_msg."</div>"; 62 59 switch ($o) { 63 60 case "h" : require_once($path."host.php"); break; 64 case "hpb" : require_once($path."host.php"); break;61 case "hpb" : require_once($path."host.php"); break; 65 62 case "hd" : require_once($pathDetails."hostDetails.php"); break; 66 63 case "hak" : require_once($pathRoot."acknowlegement/hostAcknowledge.php"); break; 67 64 default : require_once($path."host.php"); break; 68 65 } 69 } else {70 include_once("./DBNDOConnect.php");71 if (preg_match("/connect\ failed/", $pearDBndo->toString(), $str))72 print "<div class='msg'>"._("Connection Error to NDO DataBase ! \n")."</div>";73 else {74 if ($err_msg = table_not_exists("centreon_acl"))75 print "<div class='msg'>"._("Warning: ").$err_msg."</div>";76 switch ($o) {77 case "h" : require_once($path."host.php"); break;78 case "hpb" : require_once($path."host.php"); break;79 case "hd" : require_once($pathDetails."hostDetails.php"); break;80 case "hak" : require_once($pathRoot."acknowlegement/hostAcknowledge.php"); break;81 default : require_once($path."host.php"); break;82 }83 }84 66 } 85 67 }
