http://www.gnu.org/licenses/agpl-3.0-standalone.html @link https://forge.indepnet.net/projects/monitoring/ @since 2011 ------------------------------------------------------------------------ */ define('GLPI_ROOT', '../../..'); include GLPI_ROOT . "/inc/includes.php"; PluginMonitoringProfile::checkRight("check", "w"); commonHeader($LANG['plugin_monitoring']['title'][0], $_SERVER["PHP_SELF"], "plugins", "monitoring", "checks"); $pMonitoringCheck = new PluginMonitoringCheck(); if (isset($_POST["add"])) { $pMonitoringCheck->add($_POST); glpi_header($_SERVER['HTTP_REFERER']); } else { if (isset($_POST["update"])) { $pMonitoringCheck->update($_POST); glpi_header($_SERVER['HTTP_REFERER']); } else { if (isset($_POST["delete"])) { $pMonitoringCheck->delete($_POST); $pMonitoringCheck->redirectToList(); } } } if (isset($_GET["id"])) { $pMonitoringCheck->showForm($_GET["id"]); } else { $pMonitoringCheck->showForm(""); } commonFooter();