cookie("adminer_key", ($_COOKIE["adminer_key"] ? $_COOKIE["adminer_key"] : rand_string()), $params["lifetime"]);
page_header(lang('Login'), $error, null);
echo "<form action='' method='post'>\n";
- $adminer->loginForm();
echo "<div>";
- hidden_fields($_POST, array("auth")); // expired session
+ if (hidden_fields($_POST, array("auth"))) { // expired session
+ echo "<p class='message'>" . lang('The action will be performed after successful login with the same credentials.') . "\n";
+ }
echo "</div>\n";
+ $adminer->loginForm();
echo "</form>\n";
page_footer("auth");
exit;
/** Print hidden fields
* @param array
* @param array
-* @return null
+* @return bool
*/
function hidden_fields($process, $ignore = array()) {
+ $return = false;
while (list($key, $val) = each($process)) {
if (!in_array($key, $ignore)) {
if (is_array($val)) {
$process[$key . "[$k]"] = $v;
}
} else {
+ $return = true;
echo '<input type="hidden" name="' . h($key) . '" value="' . h($val) . '">';
}
}
}
+ return $return;
}
/** Print hidden fields for GET forms
'Connecting to privileged ports is not allowed.' => 'Připojování k privilegovaným portům není povoleno.',
'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.',
+ 'The action will be performed after successful login with the same credentials.' => 'Akce bude provedena po úspěšném přihlášení se stejnými přihlašovacími údaji.',
'%s version: %s through PHP extension %s' => 'Verze %s: %s přes PHP rozšíření %s',
'Refresh' => 'Obnovit',
'Connecting to privileged ports is not allowed.' => 'Xx.',
'Session support must be enabled.' => 'Xx.',
'Session expired, please login again.' => 'Xx.',
+ 'The action will be performed after successful login with the same credentials.' => 'Xx.',
'%s version: %s through PHP extension %s' => '%s xx: %s xx %s',
'Refresh' => 'Xx',
Adminer 4.6.1-dev:
Sticky position of table actions
Speed up rendering of long tables (regression from 4.4.0)
+Display notification about performing action after relogin
Add system tables help links
MySQL: Support non-utf8 charset in search in column
MySQL: Support geometry in MySQL 8 (bug #574)