Changeset 6703
- Timestamp:
- 10/03/08 11:50:04 (2 months ago)
- Files:
-
- 1 modified
-
trunk/centreon/www/include/home/pie-svc.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/centreon/www/include/home/pie-svc.php
r6646 r6703 22 22 $oreon =& $_SESSION["oreon"]; 23 23 24 require_once ("DB.php");25 include_once ("@CENTREON_ETC@/centreon.conf.php");24 require_once "DB.php" ; 25 include_once "@CENTREON_ETC@/centreon.conf.php"; 26 26 27 27 /* … … 40 40 $pearDB->setFetchMode(DB_FETCHMODE_ASSOC); 41 41 42 include_once ($centreon_path . "www/include/common/common-Func-ACL.php");43 include_once ($centreon_path . "www/include/common/common-Func.php");42 include_once $centreon_path . "www/include/common/common-Func-ACL.php"; 43 include_once $centreon_path . "www/include/common/common-Func.php"; 44 44 45 45 $ndo_base_prefix = getNDOPrefix(); 46 46 47 include_once ($centreon_path . "www/DBNDOConnect.php");47 include_once $centreon_path . "www/DBNDOConnect.php"; 48 48 49 49 /* … … 101 101 $legend[] = $statistic[$ndo["current_state"]]; 102 102 $color[] = $oreon->optGen["color_".strtolower($statistic[$ndo["current_state"]])]; 103 //$svc_stat[$ndo["current_state"]]= $ndo["count(nss.current_state)"];103 $counter += $ndo["count(nss.current_state)"]; 104 104 } 105 105 $DBRESULT_NDO2->free(); 106 106 107 /* 107 $DBRESULT_NDO1 =& $pearDBndo->query($rq1); 108 if (PEAR::isError($DBRESULT_NDO1)) 109 print "DB Error : ".$DBRESULT_NDO1->getDebugInfo()."<br />"; 110 $data = array(); 111 $color = array(); 112 $counter = 0; 113 114 while ($ndo =& $DBRESULT_NDO1->fetchRow()){ 115 $data[] = $ndo["cnt"]; 116 $legend[] = $statistic[$ndo["current_state"]]; 117 $color[] = $oreon->optGen["color_".strtolower($statistic[$ndo["current_state"]])]; 118 $counter += $ndo["cnt"]; 119 } 120 $DBRESULT_NDO1->free(); 108 * create the dataset 109 */ 121 110 122 111 foreach ($data as $key => $value) 123 112 $data[$key] = round($value / $counter * 100, 2); 124 */125 /*126 * create the dataset127 */128 113 129 114 include_once($centreon_path.'/www/lib/ofc-library/open-flash-chart.php' );
