@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"; PluginMonitoringProfile::checkRight("command", "w"); Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "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["delete"])) { $pMonitoringEventhandler->delete($_POST); $pMonitoringEventhandler->redirectToList(); } } } if (isset($_GET["id"])) { $pMonitoringEventhandler->showForm($_GET["id"]); } else { $pMonitoringEventhandler->showForm(""); } Html::footer();