diff --git a/adminer/include/connect.inc.php b/adminer/include/connect.inc.php
index 49179006..a4aa6550 100644
--- a/adminer/include/connect.inc.php
+++ b/adminer/include/connect.inc.php
@@ -44,16 +44,7 @@ if (
}
echo "
" . lang('%s version: %s through PHP extension %s', get_driver(DRIVER), "" . h(connection()->server_info) . "", "" . connection()->extension . "") . "\n";
echo "
" . lang('Logged as: %s', "" . h(logged_user()) . "") . "\n";
- if (isset(adminer()->plugins) && is_array(adminer()->plugins)) {
- echo "
\n";
- echo "
" . lang('Loaded plugins') . ":\n
\n";
- foreach (adminer()->plugins as $plugin) {
- $reflection = new \ReflectionObject($plugin);
- echo "- " . get_class($plugin) . "" . h(preg_match('~^/[\s*]+(.+)~', $reflection->getDocComment(), $match) ? ": $match[1]" : "") . "\n";
- }
- echo "
\n";
- echo "
\n";
- }
+
$databases = adminer()->databases();
if ($databases) {
$scheme = support("scheme");
@@ -71,7 +62,6 @@ if (
;
$databases = ($_GET["dbsize"] ? count_tables($databases) : array_flip($databases));
-
foreach ($databases as $db => $tables) {
$root = h(ME) . "db=" . urlencode($db);
$id = h("Db-" . $db);
@@ -98,6 +88,17 @@ if (
echo "\n";
echo script("tableCheck();");
}
+
+ if (isset(adminer()->plugins) && is_array(adminer()->plugins)) {
+ echo "\n";
+ echo "
" . lang('Loaded plugins') . "
\n
\n";
+ foreach (adminer()->plugins as $plugin) {
+ $reflection = new \ReflectionObject($plugin);
+ echo "- " . get_class($plugin) . "" . h(preg_match('~^/[\s*]+(.+)~', $reflection->getDocComment(), $match) ? ": $match[1]" : "") . "\n";
+ }
+ echo "
\n";
+ echo "
\n";
+ }
}
page_footer("db");