diff -Naur --exclude '*~' centreon-2.0/www/include/home/pie-hostgroup.php centreon-2.0-fix-includes/www/include/home/pie-hostgroup.php --- centreon-2.0/www/include/home/pie-hostgroup.php 2008-12-15 18:27:23.000000000 +0100 +++ centreon-2.0-fix-includes/www/include/home/pie-hostgroup.php 2008-12-16 23:52:18.000000000 +0100 @@ -42,7 +42,7 @@ Session::start(); $oreon =& $_SESSION["oreon"]; - $oreonPath = '/usr/local/centreon/'; + $oreonPath = '@CENTREON_PATH@/'; require_once("DB.php"); require_once("@CENTREON_ETC@/centreon.conf.php"); @@ -59,7 +59,7 @@ if (PEAR::isError($pearDB)) die("Connecting problems with oreon database : " . $pearDB->getMessage()); $pearDB->setFetchMode(DB_FETCHMODE_ASSOC); - include_once('/usr/local/centreon/www/lib/ofc-library/open-flash-chart.php' ); + include_once($oreonPath . "www/lib/ofc-library/open-flash-chart.php"); include_once($oreonPath . "www/include/common/common-Func-ACL.php"); include_once($oreonPath . "www/include/common/common-Func.php"); diff -Naur --exclude '*~' centreon-2.0/www/include/home/pie-svcgroup.php centreon-2.0-fix-includes/www/include/home/pie-svcgroup.php --- centreon-2.0/www/include/home/pie-svcgroup.php 2008-12-15 18:27:23.000000000 +0100 +++ centreon-2.0-fix-includes/www/include/home/pie-svcgroup.php 2008-12-16 23:50:45.000000000 +0100 @@ -42,7 +42,7 @@ Session::start(); $oreon =& $_SESSION["oreon"]; - $oreonPath = '/usr/local/centreon/'; + $oreonPath = '@CENTREON_PATH@/'; require_once("DB.php"); require_once("@CENTREON_ETC@/centreon.conf.php"); @@ -59,7 +59,7 @@ if (PEAR::isError($pearDB)) die("Connecting problems with oreon database : " . $pearDB->getMessage()); $pearDB->setFetchMode(DB_FETCHMODE_ASSOC); - include_once('/usr/local/centreon/www/lib/ofc-library/open-flash-chart.php' ); + include_once($oreonPath . "www/lib/ofc-library/open-flash-chart.php"); include_once($oreonPath . "www/include/common/common-Func-ACL.php"); include_once($oreonPath . "www/include/common/common-Func.php");