Fix include.php

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@208 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
tsmr 2013-01-29 10:22:44 +00:00
parent 23fb40b22e
commit 29d7e1cf13
6 changed files with 6 additions and 12 deletions

View File

@ -33,8 +33,7 @@
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
define('GLPI_ROOT', '../../..'); include ('../../../inc/includes.php');
include (GLPI_ROOT . "/inc/includes.php");
Plugin::load('example',true); Plugin::load('example',true);

View File

@ -33,8 +33,7 @@
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
define('GLPI_ROOT', '../../..'); include ('../../../inc/includes.php');
include (GLPI_ROOT . "/inc/includes.php");
Plugin::load('example',true); Plugin::load('example',true);

View File

@ -32,8 +32,7 @@
// Purpose of file: // Purpose of file:
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
define('GLPI_ROOT', '../../..'); include ('../../../inc/includes.php');
include (GLPI_ROOT . "/inc/includes.php");
if ($_SESSION["glpiactiveprofile"]["interface"] == "central") { if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
Html::header("TITRE", $_SERVER['PHP_SELF'],"plugins","example","optionname"); Html::header("TITRE", $_SERVER['PHP_SELF'],"plugins","example","optionname");

View File

@ -27,8 +27,7 @@
-------------------------------------------------------------------------- --------------------------------------------------------------------------
*/ */
define('GLPI_ROOT', '../../..'); include ('../../../inc/includes.php');
include (GLPI_ROOT . "/inc/includes.php");
Session::checkLoginUser(); Session::checkLoginUser();

View File

@ -33,8 +33,7 @@
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
define('GLPI_ROOT', '../../..'); include ('../../../inc/includes.php');
include (GLPI_ROOT . "/inc/includes.php");
$rulecollection = new PluginExampleRuleTestCollection(); $rulecollection = new PluginExampleRuleTestCollection();

View File

@ -33,8 +33,7 @@
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
define('GLPI_ROOT', '../../..'); include ('../../../inc/includes.php');
include (GLPI_ROOT . "/inc/includes.php");
$rulecollection = new PluginExampleRuleTestCollection(); $rulecollection = new PluginExampleRuleTestCollection();