1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 09:04:02 +02:00

Display link to refresh with no databases

This commit is contained in:
Jakub Vrana
2012-08-19 09:37:29 -07:00
parent 0da02c5505
commit b7af79e745

View File

@@ -26,6 +26,7 @@ function connect_error() {
if ($_GET["refresh"]) {
set_session("dbs", null);
}
$refresh = "<a href='" . h(ME) . "refresh=1'>" . lang('Refresh') . "</a>\n";
$databases = $adminer->databases();
if ($databases) {
$scheme = support("scheme");
@@ -45,8 +46,10 @@ function connect_error() {
echo "<script type='text/javascript'>tableCheck();</script>\n";
echo "<p><input type='submit' name='drop' value='" . lang('Drop') . "'" . confirm("formChecked(this, /db/)") . ">\n";
echo "<input type='hidden' name='token' value='$token'>\n";
echo "<a href='" . h(ME) . "refresh=1'>" . lang('Refresh') . "</a>\n";
echo $refresh;
echo "</form>\n";
} else {
echo "<p>$refresh";
}
}
page_footer("db");