$input = array('id' => $key); if ($val == 1) { $web_item->check($key, 'w'); $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"], 'w'); $web_item->delete($input); Html::back(); } else { $web->checkGlobal("r"); //check environment meta-plugin installtion for change header $plugin = new Plugin(); if ($plugin->isActivated("environment")) { Html::header(PluginWebapplicationsWebapplication::getTypeName(2), '', "plugins", "environment", "webapplications"); } else { Html::header(PluginWebapplicationsWebapplication::getTypeName(2), '', "plugins", "webapplications"); } //load webapplications form $web->showForm($_GET["id"]); Html::footer(); } } } } }
$input = array('id' => $key); if ($val == 1) { $web_item->check($key, UPDATE); $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(); } } } } }