mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 19:44:00 +02:00
Extensible list of databases
This commit is contained in:
@@ -34,6 +34,14 @@ class Adminer {
|
||||
return DB;
|
||||
}
|
||||
|
||||
/** Get cached list of databases
|
||||
* @param bool
|
||||
* @return array
|
||||
*/
|
||||
function databases($flush = true) {
|
||||
return get_databases($flush);
|
||||
}
|
||||
|
||||
/** Headers to send before HTML output
|
||||
* @return bool true to send security headers
|
||||
*/
|
||||
@@ -753,7 +761,7 @@ DROP PROCEDURE adminer_alter;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$databases = get_databases();
|
||||
$databases = $this->databases();
|
||||
?>
|
||||
<form action="" method="post">
|
||||
<p class="logout">
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
function connect_error() {
|
||||
global $connection, $token, $error, $drivers;
|
||||
global $adminer, $connection, $token, $error, $drivers;
|
||||
$databases = array();
|
||||
if (DB != "") {
|
||||
page_header(lang('Database') . ": " . h(DB), lang('Invalid database.'), true);
|
||||
@@ -26,7 +26,7 @@ function connect_error() {
|
||||
if ($_GET["refresh"]) {
|
||||
set_session("dbs", null);
|
||||
}
|
||||
$databases = get_databases();
|
||||
$databases = $adminer->databases();
|
||||
if ($databases) {
|
||||
$scheme = support("scheme");
|
||||
$collations = collations();
|
||||
|
Reference in New Issue
Block a user