Use correct server...

This commit is contained in:
Michal Čihař
2006-02-22 19:02:56 +00:00
parent 30c3077ed5
commit 5850b36472

View File

@@ -22,15 +22,15 @@ function PMA_DBI_real_connect($server, $user, $password, $client_flags) {
if (empty($client_flags)) {
if ($cfg['PersistentConnections']) {
$link = @mysql_pconnect($cfg['Server']['host'] . $server_port . $server_socket, $user, $password);
$link = @mysql_pconnect($server, $user, $password);
} else {
$link = @mysql_connect($cfg['Server']['host'] . $server_port . $server_socket, $user, $password);
$link = @mysql_connect($server, $user, $password);
}
} else {
if ($cfg['PersistentConnections']) {
$link = @mysql_pconnect($cfg['Server']['host'] . $server_port . $server_socket, $user, $password, $client_flags);
$link = @mysql_pconnect($server, $user, $password, $client_flags);
} else {
$link = @mysql_connect($cfg['Server']['host'] . $server_port . $server_socket, $user, $password, FALSE, $client_flags);
$link = @mysql_connect($server, $user, $password, FALSE, $client_flags);
}
}