mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 14:46:36 +02:00
Pass credentials to connect()
This commit is contained in:
@@ -190,9 +190,8 @@ if (isset($_GET["sqlite"])) {
|
||||
return idf_escape($idf);
|
||||
}
|
||||
|
||||
function connect() {
|
||||
global $adminer;
|
||||
list(, , $password) = $adminer->credentials();
|
||||
function connect($credentials) {
|
||||
list(, , $password) = $credentials;
|
||||
if ($password != "") {
|
||||
return lang('Database does not support password.');
|
||||
}
|
||||
|
Reference in New Issue
Block a user