mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-30 07:48:43 +02:00
Base d'exemple + gestion plugins
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@21 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
11
index.php
11
index.php
@ -36,17 +36,20 @@
|
||||
//header("Location:../../central.php");
|
||||
|
||||
// Entry menu case
|
||||
define('GLPI_ROOT', '../..');
|
||||
define('GLPI_ROOT', '../..');
|
||||
include (GLPI_ROOT . "/inc/includes.php");
|
||||
|
||||
if ($_SESSION["glpiactiveprofile"]["interface"] == "central")
|
||||
commonHeader("TITRE", $_SERVER['PHP_SELF'],"plugins","example");
|
||||
else
|
||||
if ($_SESSION["glpiactiveprofile"]["interface"] == "central")
|
||||
commonHeader("TITRE", $_SERVER['PHP_SELF'],"plugins","example");
|
||||
else
|
||||
helpHeader("TITRE", $_SERVER['PHP_SELF']);
|
||||
|
||||
|
||||
echo "This is the plugin index file";
|
||||
|
||||
echo "Example of dropdown (need to create glpi_dropdown_plugin_example table) ";
|
||||
dropdownValue('glpi_dropdown_plugin_example','myname',0);
|
||||
|
||||
commonFooter();
|
||||
?>
|
||||
|
||||
|
Reference in New Issue
Block a user