mirror of
https://github.com/vrana/adminer.git
synced 2025-08-17 20:01:25 +02:00
Trim trailing whitespace
This commit is contained in:
@@ -8,20 +8,20 @@
|
||||
*/
|
||||
class AdminerMasterSlave {
|
||||
private $masters = array();
|
||||
|
||||
|
||||
/**
|
||||
* @param array ($slave => $master)
|
||||
*/
|
||||
function __construct($masters) {
|
||||
$this->masters = $masters;
|
||||
}
|
||||
|
||||
|
||||
function credentials() {
|
||||
if ($_POST && isset($this->masters[SERVER])) {
|
||||
return array($this->masters[SERVER], $_GET["username"], get_session("pwds"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function login($login, $password) {
|
||||
if (!$_POST && ($master = &$_SESSION["master"])) {
|
||||
$connection = connection();
|
||||
|
Reference in New Issue
Block a user