Sophie

Sophie

distrib > Mandriva > 2010.2 > x86_64 > by-pkgid > bdc3a9aac224f3f2467d8d1a1f7330e0 > files > 5

centreon-2.0-4mdv2010.1.src.rpm

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");