Event::log($_POST["id"], "computers", 4, "inventory", sprintf(__('%s restores the item'), $_SESSION["glpiname"])); } html::redirect(getItemTypeSearchURL('PluginSimcardSimcard')); } else { if (isset($_REQUEST["purge"])) { $simcard->check($_REQUEST['id'], 'd'); if ($simcard->delete($_REQUEST, 1)) { } Html::redirect(getItemTypeSearchURL('PluginSimcardSimcard')); //update a computer } else { if (isset($_POST["update"])) { $simcard->check($_POST['id'], 'w'); $simcard->update($_POST); Html::back(); } else { if (isset($_GET["unglobalize"])) { $simcard->check($_GET["id"], 'w'); Html::redirect(getItemTypeFormURL('PluginSimcardSimcard') . "?id=" . $_GET["id"]); } else { //print computer information Html::header(PluginSimcardSimcard::getTypeName(2), $_SERVER['PHP_SELF'], "plugins", "simcard", "simcard"); //show computer form to add $simcard->showForm($_GET["id"], $_GET); html::footer(); } } } } } }