Browse files

Link to refresh database cache (bug #3102451)

  • Loading branch information...
1 parent 81f58ed commit cec86f5f9d28f98b9597029fc265335ab12dee6e @vrana committed Nov 3, 2010
Showing with 6 additions and 0 deletions.
  1. +4 −0 adminer/include/connect.inc.php
  2. +1 −0 adminer/lang/cs.inc.php
  3. +1 −0 changes.txt
View
4 adminer/include/connect.inc.php
@@ -23,6 +23,9 @@ function connect_error() {
}
echo "<p>" . lang('%s version: %s through PHP extension %s', $drivers[DRIVER], "<b>$connection->server_info</b>", "<b>$connection->extension</b>") . "\n";
echo "<p>" . lang('Logged as: %s', "<b>" . h(logged_user()) . "</b>") . "\n";
+ if ($_GET["refresh"]) {
+ set_session("dbs", null);
+ }
$databases = get_databases();
if ($databases) {
$scheme = support("scheme");
@@ -40,6 +43,7 @@ function connect_error() {
}
echo "</table>\n";
echo "<p><input type='submit' name='drop' value='" . lang('Drop') . "'" . confirm("formChecked(this, /db/)") . ">\n";
+ echo "<a href='" . h(ME) . "refresh=1'>" . lang('Refresh') . "</a>\n";
echo "</form>\n";
}
}
View
1 adminer/lang/cs.inc.php
@@ -18,6 +18,7 @@
'Session support must be enabled.' => 'Session proměnné musí být povolené.',
'Session expired, please login again.' => 'Session vypršela, přihlašte se prosím znovu.',
'%s version: %s through PHP extension %s' => 'Verze %s: %s přes PHP extenzi %s',
+ 'Refresh' => 'Obnovit',
'Privileges' => 'Oprávnění',
'Create user' => 'Vytvořit uživatele',
View
1 changes.txt
@@ -8,6 +8,7 @@ Highlight and edit SQL command in processlist
Recognize $$ strings in SQL command (PostgreSQL)
Always display all drivers
Timestamp at the end of export
+Link to refresh database cache (bug #3102451)
Disable XSS "protection" of IE8
Immunity against zend.ze1_compatibility_mode
Fix last page with empty result set

0 comments on commit cec86f5

Please sign in to comment.