mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 17:14:07 +02:00
Pass credentials to connect()
This commit is contained in:
@@ -131,10 +131,8 @@ if (isset($_GET["firebird"])) {
|
||||
return idf_escape($idf);
|
||||
}
|
||||
|
||||
function connect() {
|
||||
$adminer = adminer();
|
||||
function connect($credentials) {
|
||||
$connection = new Db;
|
||||
$credentials = $adminer->credentials();
|
||||
if ($connection->connect($credentials[0], $credentials[1], $credentials[2])) {
|
||||
return $connection;
|
||||
}
|
||||
|
Reference in New Issue
Block a user