예제 #1
0
                                    $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();
                            }
                        }
                    }
                }
            }
        }
    }
}