Beispiel #1
0
                                    $input = array('id' => $_POST["id"]);
                                    $account_item->check($_POST["id"], 'w');
                                    $account_item->delete($input);
                                    Html::back();
                                } else {
                                    $account->checkGlobal("r");
                                    if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
                                        $plugin = new Plugin();
                                        if ($plugin->isActivated("environment")) {
                                            Html::header(PluginAccountsAccount::getTypeName(2), '', "plugins", "environment", "accounts");
                                        } else {
                                            Html::header(PluginAccountsAccount::getTypeName(2), '', "plugins", "accounts");
                                        }
                                    } else {
                                        Html::helpHeader(PluginAccountsAccount::getTypeName(2));
                                    }
                                    $account->showForm($_GET["id"]);
                                    if ($_SESSION['glpiactiveprofile']['interface'] == 'central') {
                                        Html::footer();
                                    } else {
                                        Html::helpFooter();
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}