$b = $_GET["b"];
                 $ipAdress = $b[0];
                 $status = $b[1];
                 Html::redirect($_SERVER['PHP_SELF'] . "?ip={$ipAdress}&status={$status}");
             }
         }
     }
 } else {
     if (isset($_POST["Link"])) {
         if (isset($_POST["tolink_itemtype"]) && sizeof($_POST["tolink_itemtype"]) > 0 && (isset($_POST["tolink_items"]) && sizeof($_POST["tolink_items"]) > 0)) {
             $itemtypes = $_POST["tolink_itemtype"];
             $items_id = $_POST["tolink_items"];
             $macAdresses = $_POST["mactoimport"];
             $itemsDescription = isset($_POST["itemsdescription"]) ? $_POST["itemsdescription"] : array();
             $ocsItemstypes = isset($_POST["ocsitemstype"]) ? $_POST["ocsitemstype"] : array();
             $ip->linkIpDiscover($_SESSION["plugin_ocsinventoryng_ocsservers_id"], $itemtypes, $items_id, $macAdresses, $ocsItemstypes, $itemsDescription, $_POST["subnet"], 0);
         }
         Html::back();
     } else {
         if (isset($_POST["IdentifyAndLink"])) {
             if (isset($_POST["tolink_itemtype"]) && sizeof($_POST["tolink_itemtype"]) > 0 && (isset($_POST["tolink_items"]) && sizeof($_POST["tolink_items"]) > 0)) {
                 $itemtypes = $_POST["tolink_itemtype"];
                 $items_id = $_POST["tolink_items"];
                 $macAdresses = $_POST["mactoimport"];
                 $itemsDescription = $_POST["itemsdescription"];
                 $ocsItemstypes = $_POST["ocsitemstype"];
                 $ip->linkIpDiscover($_SESSION["plugin_ocsinventoryng_ocsservers_id"], $itemtypes, $items_id, $macAdresses, $ocsItemstypes, $itemsDescription, $_POST["subnet"], 1);
             }
             Html::back();
         } else {
             if (isset($_POST["delete"])) {