Skip to content
Browse files

Move Login button to customization

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1282 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
1 parent 95b4ea4 commit 8474399a40e89c488e06040b5fffeff25451cc8b jakubvrana committed Dec 18, 2009
Showing with 7 additions and 4 deletions.
  1. +2 −1 adminer/include/adminer.inc.php
  2. +3 −2 adminer/include/auth.inc.php
  3. +2 −1 editor/include/adminer.inc.php
View
3 adminer/include/adminer.inc.php
@@ -50,8 +50,9 @@ function loginForm($username) {
<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
5 adminer/include/auth.inc.php
@@ -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
3 editor/include/adminer.inc.php
@@ -31,8 +31,9 @@ function loginForm($username) {
<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";
}
}

0 comments on commit 8474399

Please sign in to comment.
Something went wrong with that request. Please try again.