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"] = ""; } $periph = new Peripheral(); if ($_POST["id"] > 0 && $periph->can($_POST["id"], 'r')) { if (!empty($_POST["withtemplate"])) { switch ($_REQUEST['glpi_tab']) { case 4: Infocom::showForItem($periph, $_POST["withtemplate"]); Contract::showAssociated($periph, $_POST["withtemplate"]); break; case 5: Document::showAssociated($periph, $_POST["withtemplate"]); break; default: if (!Plugin::displayAction($periph, $_REQUEST['glpi_tab'], $_POST["withtemplate"])) { NetworkPort::showForItem('Peripheral', $_POST["id"], $_POST["withtemplate"]); } } } else {