mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
call functions (by Yllen)
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@168 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
@ -37,9 +37,9 @@ define('GLPI_ROOT', '../../..');
|
||||
include (GLPI_ROOT . "/inc/includes.php");
|
||||
|
||||
if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
|
||||
commonHeader("TITRE", $_SERVER['PHP_SELF'],"plugins","example","optionname");
|
||||
Html::header("TITRE", $_SERVER['PHP_SELF'],"plugins","example","optionname");
|
||||
} else {
|
||||
helpHeader("TITRE", $_SERVER['PHP_SELF']);
|
||||
Html::helpHeader("TITRE", $_SERVER['PHP_SELF']);
|
||||
}
|
||||
|
||||
|
||||
@ -47,5 +47,5 @@ if ($_SESSION["glpiactiveprofile"]["interface"] == "central") {
|
||||
|
||||
Search::show('PluginExampleExample');
|
||||
|
||||
commonFooter();
|
||||
?>
|
||||
Html::footer();
|
||||
?>
|
@ -40,23 +40,22 @@ if (isset($_GET["popup"])) {
|
||||
if (isset($_SESSION["glpipopup"]["name"])) {
|
||||
switch ($_SESSION["glpipopup"]["name"]) {
|
||||
case "test_rule" :
|
||||
popHeader($LANG['buttons'][50],$_SERVER['PHP_SELF']);
|
||||
Html::popHeader($LANG['buttons'][50],$_SERVER['PHP_SELF']);
|
||||
include "../../../front/rule.test.php";
|
||||
break;
|
||||
|
||||
case "test_all_rules" :
|
||||
popHeader($LANG['rulesengine'][84],$_SERVER['PHP_SELF']);
|
||||
Html::popHeader($LANG['rulesengine'][84],$_SERVER['PHP_SELF']);
|
||||
include "../../../front/rulesengine.test.php";
|
||||
break;
|
||||
|
||||
case "show_cache" :
|
||||
popHeader($LANG['rulesengine'][100],$_SERVER['PHP_SELF']);
|
||||
Html::popHeader($LANG['rulesengine'][100],$_SERVER['PHP_SELF']);
|
||||
include "../../../front/rule.cache.php";
|
||||
break;
|
||||
}
|
||||
echo "<div class='center'><br><a href='javascript:window.close()'>".$LANG['buttons'][13]."</a>";
|
||||
echo "</div>";
|
||||
popFooter();
|
||||
Html::popFooter();
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user