if ($_POST["vlans_id"] > 0) {
         if (isset($_POST["del_port"]) && count($_POST["del_port"])) {
             foreach ($_POST["del_port"] as $port_id => $val) {
                 // Check port write access
                 if ($np->can($port_id, 'w')) {
                     $npv->unassignVlan($port_id, $_POST["vlans_id"]);
                 }
             }
         }
         Event::log(0, "networkport", 5, "inventory", $_SESSION["glpiname"] . "  " . $LANG['log'][80]);
     }
     glpi_header($_SERVER['HTTP_REFERER']);
 } else {
     if (isset($_GET['unassign_vlan'])) {
         $npv->check($_GET['id'], 'd');
         $npv->unassignVlanbyID($_GET['id']);
         Event::log(0, "networkport", 5, "inventory", $_SESSION["glpiname"] . "  " . $LANG['log'][79]);
         glpi_header($_SERVER['HTTP_REFERER']);
     } else {
         if (empty($_GET["items_id"])) {
             $_GET["items_id"] = "";
         }
         if (empty($_GET["itemtype"])) {
             $_GET["itemtype"] = "";
         }
         if (empty($_GET["several"])) {
             $_GET["several"] = "";
         }
         checkRight("networking", "w");
         commonHeader($LANG['title'][6], $_SERVER['PHP_SELF'], "inventory");
         //   NetworkPort::showNetportForm($_SERVER['PHP_SELF'],$_GET["id"],$_GET["items_id"],$_GET["itemtype"],$_GET["several"]);