$np->updateDependencies(1); Event::log($_POST["id"], "networkport", 4, "inventory", sprintf(__('%s updates an item'), $_SESSION["glpiname"])); Html::back(); } else { if (isset($_POST["disconnect"])) { $nn->check($_POST['id'], DELETE); if (isset($_POST["id"])) { $nn->delete($_POST); } Html::back(); } else { if (empty($_GET["items_id"])) { $_GET["items_id"] = ""; } if (empty($_GET["itemtype"])) { $_GET["itemtype"] = ""; } if (empty($_GET["several"])) { $_GET["several"] = ""; } if (empty($_GET["instantiation_type"])) { $_GET["instantiation_type"] = ""; } Session::checkRight("networking", UPDATE); Html::header(NetworkPort::getTypeName(Session::getPluralNumber()), $_SERVER['PHP_SELF'], 'assets'); $np->display($_GET); Html::footer(); } } } }