@co-author
  @comment
  @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_command", READ);
Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "PluginMonitoringDashboard", "notificationcommand");
$pmNotificationcommand = new PluginMonitoringNotificationcommand();
if (isset($_POST["copy"])) {
    $pmNotificationcommand->showForm("", array(), $_POST);
    Html::footer();
    exit;
} else {
    if (isset($_POST["add"])) {
        $pmNotificationcommand->add($_POST);
        Html::back();
    } else {
        if (isset($_POST["update"])) {
            $pmNotificationcommand->update($_POST);
            Html::back();
        } else {
            if (isset($_POST["purge"])) {
                $pmNotificationcommand->delete($_POST);
                $pmNotificationcommand->redirectToList();
            }
  @co-author 
  @comment   
  @copyright Copyright (c) 2011-2013 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";
PluginMonitoringProfile::checkRight("config", "w");
Html::header(__('Monitoring', 'monitoring'), $_SERVER["PHP_SELF"], "plugins", "monitoring", "notificationcommand");
$pmNotificationcommand = new PluginMonitoringNotificationcommand();
if (isset($_POST["copy"])) {
    $pmNotificationcommand->showForm("", array(), $_POST);
    Html::footer();
    exit;
} else {
    if (isset($_POST["add"])) {
        $_POST = $pmNotificationcommand->convertPostdata($_POST);
        $pmNotificationcommand->add($_POST);
        Html::back();
    } else {
        if (isset($_POST["update"])) {
            $_POST = $pmNotificationcommand->convertPostdata($_POST);
            $pmNotificationcommand->update($_POST);
            Html::back();
        } else {
            if (isset($_POST["delete"])) {
                $pmNotificationcommand->delete($_POST);