$plugin_fusioninventory_model_infos->add($_POST); glpi_header($_SERVER['HTTP_REFERER']); } else { if (isset($_POST["update"])) { PluginFusioninventoryAuth::checkRight("snmp_models", "w"); $plugin_fusioninventory_model_infos->update($_POST); glpi_header($_SERVER['HTTP_REFERER']); } else { if (isset($_POST["delete"])) { PluginFusioninventoryAuth::checkRight("snmp_models", "w"); $plugin_fusioninventory_model_infos->delete($_POST); glpi_header("models.php"); } else { if (isset($_FILES['importfile']['tmp_name']) && $_FILES['importfile']['tmp_name'] != '') { PluginFusioninventoryAuth::checkRight("snmp_models", "w"); $importexport->import($_FILES['importfile']['tmp_name']); glpi_header($_SERVER['HTTP_REFERER']); } else { if (isset($_GET["activation"])) { PluginFusioninventoryAuth::checkRight("snmp_models", "w"); $plugin_fusioninventory_mib_networking->activation($_GET["activation"]); glpi_header($_SERVER['HTTP_REFERER']); } else { if (isset($_POST['massimport'])) { PluginFusioninventoryAuth::checkRight("snmp_models", "w"); $importexport->importMass(); glpi_header($_SERVER['HTTP_REFERER']); } } } }