$web_item->delete($input); } } Html::back(); //unlink webapplications to items of glpi from the items form } else { if (isset($_POST["deletewebapplications"])) { $input = array('id' => $_POST["id"]); $web_item->check($_POST["id"], UPDATE); $web_item->delete($input); Html::back(); } else { $web->checkGlobal(READ); //check environment meta-plugin installtion for change header $plugin = new Plugin(); if ($plugin->isActivated("environment")) { Html::header(PluginWebapplicationsWebapplication::getTypeName(2), '', "assets", "pluginenvironmentdisplay", "webapplications"); } else { Html::header(PluginWebapplicationsWebapplication::getTypeName(2), '', "assets", "pluginwebapplicationsmenu"); } //load webapplications form $web->display($_GET); Html::footer(); } } } } } } } }