From 29d7e1cf138be8fff2d2d45c36fba344da936959 Mon Sep 17 00:00:00 2001 From: tsmr Date: Tue, 29 Jan 2013 10:22:44 +0000 Subject: [PATCH] Fix include.php git-svn-id: https://forge.glpi-project.org/svn/example/trunk@208 349b9182-4a13-0410-896f-e5e9767dd1b3 --- front/dropdown.form.php | 3 +-- front/dropdown.php | 3 +-- front/example.php | 3 +-- front/popup.php | 3 +-- front/ruletest.form.php | 3 +-- front/ruletest.php | 3 +-- 6 files changed, 6 insertions(+), 12 deletions(-) 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();