function adminer_login_form($username) {
if (call_adminer('login_form', true, $username)) {
?>
- <table cellspacing="0">
- <tr><th><?php echo lang('Server'); ?><td><input name="server" value="<?php echo htmlspecialchars($_GET["server"]); ?>">
- <tr><th><?php echo lang('Username'); ?><td><input name="username" value="<?php echo htmlspecialchars($username); ?>">
- <tr><th><?php echo lang('Password'); ?><td><input type="password" name="password">
- </table>
+<table cellspacing="0">
+<tr><th><?php echo lang('Server'); ?><td><input name="server" value="<?php echo htmlspecialchars($_GET["server"]); ?>">
+<tr><th><?php echo lang('Username'); ?><td><input name="username" value="<?php echo htmlspecialchars($username); ?>">
+<tr><th><?php echo lang('Password'); ?><td><input type="password" name="password">
+</table>
<?php
}
}
foreach ($_FILES as $key => $val) {
echo '<input type="hidden" name="files[' . htmlspecialchars($key) . ']" value="' . ($val["error"] ? $val["error"] : base64_encode(file_get_contents($val["tmp_name"]))) . '">';
}
- ?>
- <input type="submit" value="<?php echo lang('Login'); ?>">
-
- </form>
-<?php
+ echo "<input type='submit' value='" . lang('Login') . "'>\n</form>\n";
page_footer("auth");
}
function adminer_login_form($username) {
if (call_adminer('login_form', true, $username)) {
?>
- <table cellspacing="0">
- <tr><th><?php echo lang('Username'); ?><td><input type="hidden" name="server" value="" /><input name="username" value="<?php echo htmlspecialchars($username); ?>">
- <tr><th><?php echo lang('Password'); ?><td><input type="password" name="password">
- </table>
+<table cellspacing="0">
+<tr><th><?php echo lang('Username'); ?><td><input type="hidden" name="server" value="" /><input name="username" value="<?php echo htmlspecialchars($username); ?>">
+<tr><th><?php echo lang('Password'); ?><td><input type="password" name="password">
+</table>
<?php
}
}