Changeset 6748
- Timestamp:
- 10/06/08 21:43:48 (2 months ago)
- Files:
-
- 1 modified
-
trunk/centreon/www/htmlHeader.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/centreon/www/htmlHeader.php
r6646 r6748 24 24 exit(); 25 25 26 print "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n";27 26 28 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 27 ?><?xml version=\"1.0\" encoding=\"iso-8859-1\"?> 28 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 29 29 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $mlang; ?>"> 30 30 <head> … … 80 80 $tS = $oreon->optGen["AjaxTimeReloadStatistic"] * 1000; 81 81 $tM = $oreon->optGen["AjaxTimeReloadMonitoring"] * 1000; 82 $oreon->optGen["AjaxFirstTimeReloadStatistic"] == 0 ? $tFS = 10 : $tFS = $oreon->optGen["AjaxFirstTimeReloadStatistic"] * 1000;83 82 84 83 ?> 85 84 <script type='text/javascript'> 86 85 window.onload = function () { 87 88 86 <?php 89 90 87 if ($min != 1) 91 print "setTimeout('reloadStatusCounter($tS, \"$sid\")', $tFS);\n";88 print "setTimeout('reloadStatusCounter($tS, \"$sid\")', 0);\n"; 92 89 93 90 $res = null; 94 $DBRESULT =& $pearDB->query("SELECT PathName_js, init FROM topology_JS WHERE id_page = '".$p."' AND (o = '" . $o . "' OR o IS NULL)"); 95 if (PEAR::isError($DBRESULT)) print $DBRESULT->getDebugInfo()."<br />"; 91 $DBRESULT =& $pearDB->query("SELECT `PathName_js`, `init` FROM `topology_JS` WHERE `id_page` = '".$p."' AND (`o` = '" . $o . "' OR `o` IS NULL)"); 92 if (PEAR::isError($DBRESULT)) 93 print $DBRESULT->getDebugInfo()."<br />"; 96 94 while ($topology_js =& $DBRESULT->fetchRow()){ 97 95 if ($topology_js['init'] == "initM") { 98 ?>setTimeout('initM(<?php echo $tM; ?>,"<?php echo $sid ; ?>","<?php echo $o;?>")', 0);<?php96 ?>setTimeout('initM(<?php echo $tM; ?>,"<?php echo $sid ; ?>", "<?php echo $o;?>")', 0);<?php 99 97 } else if ($topology_js['init']){ 100 98 echo $topology_js['init'] ."();";
