diff --git a/www/include/monitoring/objectDetails/xml/hostSendCommand.php b/www/include/monitoring/objectDetails/xml/hostSendCommand.php index f413caab931..a89dec7e44b 100644 --- a/www/include/monitoring/objectDetails/xml/hostSendCommand.php +++ b/www/include/monitoring/objectDetails/xml/hostSendCommand.php @@ -36,7 +36,7 @@ * */ - require_once "/etc/centreon/centreon.conf.php"; + require_once "@CENTREON_ETC@/centreon.conf.php"; require_once $centreon_path . "/www/class/centreonExternalCommand.class.php"; require_once $centreon_path . "/www/class/centreonDB.class.php"; require_once $centreon_path . "/www/class/centreonHost.class.php"; diff --git a/www/include/monitoring/status/Hosts/xml/broker/hostXML.php b/www/include/monitoring/status/Hosts/xml/broker/hostXML.php index 671550b2d69..14265b5f7a9 100644 --- a/www/include/monitoring/status/Hosts/xml/broker/hostXML.php +++ b/www/include/monitoring/status/Hosts/xml/broker/hostXML.php @@ -33,7 +33,7 @@ * */ -include_once "/etc/centreon/centreon.conf.php"; +include_once "@CENTREON_ETC@/centreon.conf.php"; include_once $centreon_path . "www/class/centreonXMLBGRequest.class.php"; include_once $centreon_path . "www/class/centreonInstance.class.php"; include_once $centreon_path . "www/class/centreonCriticality.class.php"; diff --git a/www/include/monitoring/status/TopCounter/xml/broker/statusCounter.php b/www/include/monitoring/status/TopCounter/xml/broker/statusCounter.php index 0cf919c4634..de272f0a83a 100644 --- a/www/include/monitoring/status/TopCounter/xml/broker/statusCounter.php +++ b/www/include/monitoring/status/TopCounter/xml/broker/statusCounter.php @@ -40,7 +40,7 @@ $debug = 0; - include_once "/etc/centreon/centreon.conf.php"; + include_once "@CENTREON_ETC@/centreon.conf.php"; require_once $centreon_path . "www/class/centreonXMLBGRequest.class.php"; require_once $centreon_path . 'www/class/centreonLang.class.php'; diff --git a/www/include/views/graphs/GetXmlTree.php b/www/include/views/graphs/GetXmlTree.php index 741d408b4d7..e5c4ac51054 100644 --- a/www/include/views/graphs/GetXmlTree.php +++ b/www/include/views/graphs/GetXmlTree.php @@ -39,7 +39,7 @@ /** * Include config file */ -include_once "/etc/centreon/centreon.conf.php"; +include_once "@CENTREON_ETC@/centreon.conf.php"; /* * Include Dependancies