mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
fix calls
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@167 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
c3436cd181
commit
f5992289ab
@ -40,7 +40,7 @@
|
|||||||
define('GLPI_ROOT', '../..');
|
define('GLPI_ROOT', '../..');
|
||||||
include (GLPI_ROOT . "/inc/includes.php");
|
include (GLPI_ROOT . "/inc/includes.php");
|
||||||
|
|
||||||
checkRight("config","w");
|
Session::checkRight("config", "w");
|
||||||
|
|
||||||
// To be available when plugin in not activated
|
// To be available when plugin in not activated
|
||||||
Plugin::load('example');
|
Plugin::load('example');
|
||||||
@ -49,4 +49,4 @@ commonHeader("TITRE",$_SERVER['PHP_SELF'],"config","plugins");
|
|||||||
echo "This is the plugin config page<br>";
|
echo "This is the plugin config page<br>";
|
||||||
echo $LANG['plugin_example']["test"];
|
echo $LANG['plugin_example']["test"];
|
||||||
commonFooter();
|
commonFooter();
|
||||||
?>
|
?>
|
@ -31,7 +31,7 @@
|
|||||||
define('GLPI_ROOT', '../../..');
|
define('GLPI_ROOT', '../../..');
|
||||||
include (GLPI_ROOT . "/inc/includes.php");
|
include (GLPI_ROOT . "/inc/includes.php");
|
||||||
|
|
||||||
checkLoginUser();
|
Session::checkLoginUser();
|
||||||
|
|
||||||
if (isset($_GET["popup"])) {
|
if (isset($_GET["popup"])) {
|
||||||
$_SESSION["glpipopup"]["name"] = $_GET["popup"];
|
$_SESSION["glpipopup"]["name"] = $_GET["popup"];
|
||||||
|
@ -37,14 +37,14 @@
|
|||||||
//header("Location:../../central.php");
|
//header("Location:../../central.php");
|
||||||
|
|
||||||
// Entry menu case
|
// Entry menu case
|
||||||
define('GLPI_ROOT', '../..');
|
define('GLPI_ROOT', '../..');
|
||||||
include (GLPI_ROOT . "/inc/includes.php");
|
include (GLPI_ROOT . "/inc/includes.php");
|
||||||
|
|
||||||
checkRight("config","w");
|
Session::checkRight("config", "w");
|
||||||
|
|
||||||
commonHeader("TITRE",$_SERVER['PHP_SELF'],"plugins");
|
commonHeader("TITRE",$_SERVER['PHP_SELF'],"plugins");
|
||||||
|
|
||||||
echo "This is the plugin report page";
|
echo "This is the plugin report page";
|
||||||
|
|
||||||
commonFooter();
|
commonFooter();
|
||||||
?>
|
?>
|
8
stat.php
8
stat.php
@ -37,14 +37,14 @@
|
|||||||
//header("Location:../../central.php");
|
//header("Location:../../central.php");
|
||||||
|
|
||||||
// Entry menu case
|
// Entry menu case
|
||||||
define('GLPI_ROOT', '../..');
|
define('GLPI_ROOT', '../..');
|
||||||
include (GLPI_ROOT . "/inc/includes.php");
|
include (GLPI_ROOT . "/inc/includes.php");
|
||||||
|
|
||||||
checkRight("config","w");
|
Session::checkRight("config", "w");
|
||||||
|
|
||||||
commonHeader("TITLE",$_SERVER['PHP_SELF'],"plugins");
|
commonHeader("TITLE",$_SERVER['PHP_SELF'],"plugins");
|
||||||
|
|
||||||
echo "This is the plugin stat page";
|
echo "This is the plugin stat page";
|
||||||
|
|
||||||
commonFooter();
|
commonFooter();
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user