mirror of
https://github.com/vrana/adminer.git
synced 2026-05-06 10:26:08 +02:00
Allow specifying server name displayed in breadcrumbs
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user