From 56a1bdd7fc7d128c08b7ba8a46afaa15ca4a4a08 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 7 Jun 2011 15:47:11 +0200 Subject: [PATCH] Support for other drivers --- plugins/login-servers.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/login-servers.php b/plugins/login-servers.php index 691b7307..50fbf8a6 100644 --- a/plugins/login-servers.php +++ b/plugins/login-servers.php @@ -6,13 +6,15 @@ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) */ class AdminerLoginServers { - var $servers; + var $servers, $driver; /** Set supported servers * @param array array($domain) or array($domain => $description) or array($category => array()) + * @param string */ - function AdminerLoginServers($servers) { + function AdminerLoginServers($servers, $driver = "server") { $this->servers = $servers; + $this->driver = $driver; } function login($login, $password) { @@ -34,7 +36,7 @@ class AdminerLoginServers { function loginForm() { ?> -
+
">