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

Move Login button to customization

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1282 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-12-18 17:49:21 +00:00
parent 95b4ea471d
commit 8474399a40
3 changed files with 7 additions and 4 deletions

View File

@@ -50,8 +50,9 @@ class Adminer {
<tr><th><?php echo lang('Password'); ?><td><input type="password" name="password">
</table>
<?php
echo "<p><input type='submit' value='" . lang('Login') . "'>\n";
if ($this->permanentLogin()) {
echo "<p>" . checkbox("permanent", 1, $_COOKIE["adminer_permanent"], lang('Permanent login')) . "\n";
echo checkbox("permanent", 1, $_COOKIE["adminer_permanent"], lang('Permanent login')) . "\n";
}
}

View File

@@ -81,9 +81,10 @@ function auth_error($exception = null) {
: ""))), null);
echo "<form action='' method='post'>\n";
$adminer->loginForm($username);
echo "<p>\n";
echo "<div>";
hidden_fields($_POST, array("server", "username", "password")); // expired session
echo "<input type='submit' value='" . lang('Login') . "'>\n</form>\n";
echo "</div>\n";
echo "</form>\n";
page_footer("auth");
}

View File

@@ -31,8 +31,9 @@ class Adminer {
<tr><th><?php echo lang('Password'); ?><td><input type="password" name="password">
</table>
<?php
echo "<p><input type='submit' value='" . lang('Login') . "'>\n";
if ($this->permanentLogin()) {
echo "<p>" . checkbox("permanent", 1, $_COOKIE["adminer_permanent"], lang('Permanent login')) . "\n";
echo checkbox("permanent", 1, $_COOKIE["adminer_permanent"], lang('Permanent login')) . "\n";
}
}