Changeset 6730

Show
Ignore:
Timestamp:
10/06/08 14:21:28 (2 months ago)
Author:
jmathis
Message:

create a spécial function for RRD

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/centreon/www/include/nagiosStats/getStats.php

    r6725 r6730  
    5959        } 
    6060         
    61         //require_once("@CENTREON_ETC@/centreon.conf.php"); 
    62         require_once "/etc/centreon/centreon.conf.php"; 
     61        require_once("@CENTREON_ETC@/centreon.conf.php"); 
    6362        require_once "$centreon_path/www/class/centreonGMT.class.php"; 
    6463        require_once "$centreon_path/www/DBconnect.php"; 
     
    196195                 * Add comment start and end time inf graph footer. 
    197196                 */ 
     197                 
    198198                $rrd_time  = addslashes($CentreonGMT->getDate("Y\/m\/d G:i", $start, $gmt)); 
    199199                $rrd_time = str_replace(":", "\:", $rrd_time); 
     
    220220                 */ 
    221221                  
    222                 $command_line = "export TZ='CMT-6' ; ".$command_line; 
     222                $command_line = "export TZ='CMT".$CentreonGMT->getMyGMTForRRD()."' ; ".$command_line; 
    223223         
    224224                $command_line = escape_command("$command_line");