コード例 #1
0
                                $input = array('id' => $key);
                                if ($val == 1) {
                                    $database_item->check($key, UPDATE);
                                    $database_item->delete($input);
                                }
                            }
                            Html::back();
                        } else {
                            if (isset($_POST["deletedatabases"])) {
                                $input = array('id' => $_POST["id"]);
                                $database_item->check($_POST["id"], UPDATE);
                                $database_item->delete($input);
                                Html::back();
                            } else {
                                $database->checkGlobal(READ);
                                $plugin = new Plugin();
                                if ($plugin->isActivated("environment")) {
                                    Html::header(PluginDatabasesDatabase::getTypeName(2), '', "assets", "pluginenvironmentdisplay", "databases");
                                } else {
                                    Html::header(PluginDatabasesDatabase::getTypeName(2), '', "assets", "plugindatabasesmenu");
                                }
                                $database->display($_GET);
                                Html::footer();
                            }
                        }
                    }
                }
            }
        }
    }
}