Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SQLite version supports two systems

  • Loading branch information...
commit 4b9d451d2e8e635ec76bc396bb0a8ff83632d38e 1 parent 6e2a887
@vrana authored
Showing with 4 additions and 1 deletion.
  1. +1 −1  adminer/include/adminer.inc.php
  2. +3 −0  compile.php
View
2  adminer/include/adminer.inc.php
@@ -39,7 +39,7 @@ function loginForm() {
global $drivers, $possible_drivers;
?>
<table cellspacing="0">
-<tr><th><?php echo lang('System'); ?><td><?php echo (count($possible_drivers) > 3 ? html_select("driver", $drivers, DRIVER) : "<input type='hidden' name='driver' value='" . key($drivers) . "'>" . reset($drivers)); ?></tr>
+<tr><th><?php echo lang('System'); ?><td><?php echo html_select("driver", $drivers, DRIVER); ?>
<tr><th><?php echo lang('Server'); ?><td><input name="server" value="<?php echo h(SERVER); ?>">
<tr><th><?php echo lang('Username'); ?><td><input id="username" name="username" value="<?php echo h($_GET["username"]); ?>">
<tr><th><?php echo lang('Password'); ?><td><input type="password" name="password">
View
3  compile.php
@@ -238,6 +238,9 @@ function compile_file($match) {
$file = preg_replace("((\t*)" . preg_quote('if (support("' . $feature . '")') . ".*\n\\1\\})sU", '', $file);
}
}
+ if (count($drivers) == 1) {
+ $file = str_replace('<?php echo html_select("driver", $drivers, DRIVER); ?>', "<input type='hidden' name='driver' value='$driver'>" . reset($drivers), $file);
+ }
}
$file = preg_replace_callback("~lang\\('((?:[^\\\\']+|\\\\.)*)'([,)])~s", 'lang_ids', $file);
$file = preg_replace_callback('~\\b(include|require) "([^"]*\\$LANG.inc.php)";~', 'put_file_lang', $file);
Please sign in to comment.
Something went wrong with that request. Please try again.