mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 23:57:29 +02:00
Always display all drivers (bug #3097666)
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
<?php
|
||||
$connection = '';
|
||||
|
||||
if (!$drivers) {
|
||||
page_header(lang('No extension'), lang('None of the supported PHP extensions (%s) are available.', implode(", ", $possible_drivers)), null);
|
||||
page_footer("auth");
|
||||
exit;
|
||||
}
|
||||
|
||||
$token = $_SESSION["token"];
|
||||
if (!$_SESSION["token"]) {
|
||||
$_SESSION["token"] = rand(1, 1e6); // defense against cross-site request forgery
|
||||
@@ -89,7 +83,12 @@ function auth_error($exception = null) {
|
||||
page_footer("auth");
|
||||
}
|
||||
|
||||
if (isset($_GET["username"]) && class_exists("Min_DB")) { // doesn't exists with passing wrong driver
|
||||
if (isset($_GET["username"])) {
|
||||
if (!class_exists("Min_DB")) {
|
||||
page_header(lang('No extension'), lang('None of the supported PHP extensions (%s) are available.', implode(", ", $possible_drivers)), null);
|
||||
page_footer("auth");
|
||||
exit;
|
||||
}
|
||||
$connection = connect();
|
||||
}
|
||||
if (is_string($connection) || !$adminer->login($_GET["username"], get_session("pwds"))) {
|
||||
|
Reference in New Issue
Block a user