diff --git a/front/dropdown.form.php b/front/dropdown.form.php index 2fe80de..63cf501 100644 --- a/front/dropdown.form.php +++ b/front/dropdown.form.php @@ -33,8 +33,7 @@ // ---------------------------------------------------------------------- -define('GLPI_ROOT', '../../..'); -include (GLPI_ROOT . "/inc/includes.php"); +include ('../../../inc/includes.php'); Plugin::load('example',true); diff --git a/front/dropdown.php b/front/dropdown.php index 12b10fb..395b837 100644 --- a/front/dropdown.php +++ b/front/dropdown.php @@ -33,8 +33,7 @@ // ---------------------------------------------------------------------- -define('GLPI_ROOT', '../../..'); -include (GLPI_ROOT . "/inc/includes.php"); +include ('../../../inc/includes.php'); Plugin::load('example',true); diff --git a/front/example.php b/front/example.php index e6163c0..461590b 100755 --- a/front/example.php +++ b/front/example.php @@ -32,8 +32,7 @@ // Purpose of file: // ---------------------------------------------------------------------- -define('GLPI_ROOT', '../../..'); -include (GLPI_ROOT . "/inc/includes.php"); +include ('../../../inc/includes.php'); if ($_SESSION["glpiactiveprofile"]["interface"] == "central") { Html::header("TITRE", $_SERVER['PHP_SELF'],"plugins","example","optionname"); diff --git a/front/popup.php b/front/popup.php index 8857a89..ac6c491 100644 --- a/front/popup.php +++ b/front/popup.php @@ -27,8 +27,7 @@ -------------------------------------------------------------------------- */ -define('GLPI_ROOT', '../../..'); -include (GLPI_ROOT . "/inc/includes.php"); +include ('../../../inc/includes.php'); Session::checkLoginUser(); diff --git a/front/ruletest.form.php b/front/ruletest.form.php index 3b7ee41..b17a0a0 100644 --- a/front/ruletest.form.php +++ b/front/ruletest.form.php @@ -33,8 +33,7 @@ // ---------------------------------------------------------------------- -define('GLPI_ROOT', '../../..'); -include (GLPI_ROOT . "/inc/includes.php"); +include ('../../../inc/includes.php'); $rulecollection = new PluginExampleRuleTestCollection(); diff --git a/front/ruletest.php b/front/ruletest.php index d8733e9..79e89e0 100644 --- a/front/ruletest.php +++ b/front/ruletest.php @@ -33,8 +33,7 @@ // ---------------------------------------------------------------------- -define('GLPI_ROOT', '../../..'); -include (GLPI_ROOT . "/inc/includes.php"); +include ('../../../inc/includes.php'); $rulecollection = new PluginExampleRuleTestCollection();