$NEEDED_ITEMS = array("setup", "rulesengine", "fusioninventory", "search", "device", "networking", "computer", "infocom", "printer", "peripheral");
define('GLPI_ROOT', '../../..');
include GLPI_ROOT . "/inc/includes.php";
PluginFusioninventoryAuth::checkRight("snmp_networking", "r");
$ptud = new PluginFusioninventoryUnknownDevice();
$ptt = new PluginFusioninventoryTask();
$ptcm = new PluginFusioninventoryConfigModules();
commonHeader($LANG['plugin_fusioninventory']["title"][0], $_SERVER["PHP_SELF"], "plugins", "fusioninventory", "unknown");
PluginFusioninventoryDisplay::mini_menu();
$ID = "";
if (isset($_GET["ID"])) {
    $ID = $_GET["ID"];
}
if (isset($_POST["delete"])) {
    $ptud->check($_POST['ID'], 'w');
    $ptud->delete($_POST, 1);
    //	logEvent($_POST["ID"], "computers", 4, "inventory", $_SESSION["glpiname"]." ".$LANG['log'][22]);
    glpi_header($CFG_GLPI["root_doc"] . "plugins/fusioninventory/front/unknown.php");
} else {
    if (isset($_POST["restore"])) {
    } else {
        if (isset($_POST["purge"]) || isset($_GET["purge"])) {
        } else {
            if (isset($_POST["update"])) {
                $ptud->check($_POST['ID'], 'w');
                $ptud->update($_POST);
                glpi_header($_SERVER['HTTP_REFERER']);
            } else {
                if (isset($_POST["import"])) {
                    $Import = 0;
                    $NoImport = 0;