@copyright Copyright (c) 2011-2014 Plugin Monitoring for GLPI team @license AGPL License 3.0 or (at your option) any later version http://www.gnu.org/licenses/agpl-3.0-standalone.html @link https://forge.indepnet.net/projects/monitoring/ @since 2013 ------------------------------------------------------------------------ */ include "../../../inc/includes.php"; Session::checkRight("plugin_monitoring_eventhandler", READ); Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "PluginMonitoringDashboard", "eventhandler"); $pMonitoringEventhandler = new PluginMonitoringEventhandler(); if (isset($_POST["add"])) { $pMonitoringEventhandler->add($_POST); Html::back(); } else { if (isset($_POST["update"])) { $pMonitoringEventhandler->update($_POST); Html::back(); } else { if (isset($_POST["purge"])) { $pMonitoringEventhandler->delete($_POST); $pMonitoringEventhandler->redirectToList(); } } } if (!isset($_GET["id"])) { $_GET["id"] = ""; } $pMonitoringEventhandler->display(array('id' => $_GET["id"])); Html::footer();