Allow specifying server name displayed in breadcrumbs

This commit is contained in:
Jakub Vrana
2018-02-08 14:27:44 +01:00
parent 76d7560d27
commit a1927d5b71
6 changed files with 24 additions and 2 deletions

View File

@@ -19,6 +19,10 @@ class AdminerLoginServers {
$this->driver = $driver;
}
function serverName($server) {
return h($this->servers[$server]);
}
function login($login, $password) {
// check if server is allowed
foreach ($this->servers as $key => $val) {

View File

@@ -107,6 +107,11 @@ class AdminerPlugin extends Adminer {
return $this->_applyPlugin(__FUNCTION__, $args);
}
function serverName($server) {
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);
}
function database() {
$args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args);