. * ------------------------------------------------------------------------- * @copyright Copyright (C) 2006-2022 by Example plugin team. * @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html * @link https://github.com/pluginsGLPI/example * ------------------------------------------------------------------------- */ include(__DIR__ . '/../../../inc/includes.php'); Session::checkLoginUser(); if (isset($_GET['popup'])) { $_SESSION['glpipopup']['name'] = $_GET['popup']; } if (isset($_SESSION['glpipopup']['name'])) { switch ($_SESSION['glpipopup']['name']) { case 'test_rule': Html::popHeader(__s('Test'), $_SERVER['PHP_SELF']); include __DIR__ . '/../../../front/rule.test.php'; break; case 'test_all_rules': Html::popHeader(__s('Test rules engine'), $_SERVER['PHP_SELF']); include __DIR__ . '/../../../front/rulesengine.test.php'; break; } echo "

" . __s('Back') . ''; echo '
'; Html::popFooter(); }