From f5992289ab9605fc954a59c8e338467e2cc3b6e2 Mon Sep 17 00:00:00 2001 From: remicollet Date: Thu, 11 Aug 2011 11:33:07 +0000 Subject: [PATCH] fix calls git-svn-id: https://forge.glpi-project.org/svn/example/trunk@167 349b9182-4a13-0410-896f-e5e9767dd1b3 --- config.php | 4 ++-- front/popup.php | 2 +- report.php | 8 ++++---- stat.php | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/config.php b/config.php index 1dc9988..8163c99 100755 --- a/config.php +++ b/config.php @@ -40,7 +40,7 @@ define('GLPI_ROOT', '../..'); include (GLPI_ROOT . "/inc/includes.php"); -checkRight("config","w"); +Session::checkRight("config", "w"); // To be available when plugin in not activated Plugin::load('example'); @@ -49,4 +49,4 @@ commonHeader("TITRE",$_SERVER['PHP_SELF'],"config","plugins"); echo "This is the plugin config page
"; echo $LANG['plugin_example']["test"]; commonFooter(); -?> +?> \ No newline at end of file diff --git a/front/popup.php b/front/popup.php index d4e63a3..a788a07 100644 --- a/front/popup.php +++ b/front/popup.php @@ -31,7 +31,7 @@ define('GLPI_ROOT', '../../..'); include (GLPI_ROOT . "/inc/includes.php"); -checkLoginUser(); +Session::checkLoginUser(); if (isset($_GET["popup"])) { $_SESSION["glpipopup"]["name"] = $_GET["popup"]; diff --git a/report.php b/report.php index 828fc68..30aacab 100644 --- a/report.php +++ b/report.php @@ -37,14 +37,14 @@ //header("Location:../../central.php"); // Entry menu case -define('GLPI_ROOT', '../..'); -include (GLPI_ROOT . "/inc/includes.php"); +define('GLPI_ROOT', '../..'); +include (GLPI_ROOT . "/inc/includes.php"); -checkRight("config","w"); +Session::checkRight("config", "w"); commonHeader("TITRE",$_SERVER['PHP_SELF'],"plugins"); echo "This is the plugin report page"; commonFooter(); -?> +?> \ No newline at end of file diff --git a/stat.php b/stat.php index c86aa7c..abb0087 100644 --- a/stat.php +++ b/stat.php @@ -37,14 +37,14 @@ //header("Location:../../central.php"); // Entry menu case -define('GLPI_ROOT', '../..'); -include (GLPI_ROOT . "/inc/includes.php"); +define('GLPI_ROOT', '../..'); +include (GLPI_ROOT . "/inc/includes.php"); -checkRight("config","w"); +Session::checkRight("config", "w"); commonHeader("TITLE",$_SERVER['PHP_SELF'],"plugins"); echo "This is the plugin stat page"; commonFooter(); -?> +?> \ No newline at end of file