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