exit; } if (!isset($_REQUEST['glpi_tab'])) { exit; } if (!isset($_POST["sort"])) { $_POST["sort"] = ""; } if (!isset($_POST["order"])) { $_POST["order"] = ""; } if (!isset($_POST["withtemplate"])) { $_POST["withtemplate"] = ""; } $monitor = new Monitor(); if ($_POST["id"] > 0 && $monitor->can($_POST["id"], 'r')) { if (!empty($_POST["withtemplate"])) { switch ($_REQUEST['glpi_tab']) { case 4: Infocom::showForItem($monitor, $_POST["withtemplate"]); Contract::showAssociated($monitor, $_POST["withtemplate"]); break; case 5: Document::showAssociated($monitor, $_POST["withtemplate"]); break; default: Plugin::displayAction($monitor, $_REQUEST['glpi_tab'], $_POST["withtemplate"]); } } else { switch ($_REQUEST['glpi_tab']) { case -1: