mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-08-25 06:55:48 +02:00
remove XXX_TYPE and switch to Plugin::registerClass()
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@108 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
12
index.php
12
index.php
@@ -35,8 +35,8 @@
|
||||
|
||||
$NEEDED_ITEMS=array("search");
|
||||
|
||||
define('GLPI_ROOT', '../..');
|
||||
include (GLPI_ROOT . "/inc/includes.php");
|
||||
define('GLPI_ROOT', '../..');
|
||||
include (GLPI_ROOT . "/inc/includes.php");
|
||||
|
||||
if ($_SESSION["glpiactiveprofile"]["interface"] == "central"){
|
||||
commonHeader("TITRE", $_SERVER['PHP_SELF'],"plugins","example","optionname");
|
||||
@@ -44,13 +44,13 @@ if ($_SESSION["glpiactiveprofile"]["interface"] == "central"){
|
||||
helpHeader("TITRE", $_SERVER['PHP_SELF']);
|
||||
}
|
||||
|
||||
checkTypeRight(PLUGIN_EXAMPLE_TYPE,"r");
|
||||
checkTypeRight('PluginExampleExample',"r");
|
||||
|
||||
manageGetValuesInSearch(PLUGIN_EXAMPLE_TYPE);
|
||||
manageGetValuesInSearch('PluginExampleExample');
|
||||
|
||||
searchForm(PLUGIN_EXAMPLE_TYPE,$_GET);
|
||||
searchForm('PluginExampleExample',$_GET);
|
||||
|
||||
showList(PLUGIN_EXAMPLE_TYPE,$_GET);
|
||||
showList('PluginExampleExample',$_GET);
|
||||
|
||||
commonFooter();
|
||||
?>
|
||||
|
Reference in New Issue
Block a user