From 12f6c2acb29cbea6f41d1152eb27affa358c196f Mon Sep 17 00:00:00 2001 From: Christoph Burschka Date: Tue, 30 Oct 2012 15:28:52 +0100 Subject: Refactor to a general, flexible and extensible architecture. --- classes/JabberAuthPhpBB.php | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 classes/JabberAuthPhpBB.php (limited to 'classes/JabberAuthPhpBB.php') diff --git a/classes/JabberAuthPhpBB.php b/classes/JabberAuthPhpBB.php deleted file mode 100644 index e60cbae..0000000 --- a/classes/JabberAuthPhpBB.php +++ /dev/null @@ -1,38 +0,0 @@ -logpath = $logpath; - parent::init(); - $this->auth = $auth; - $this->db = $db; - } - - function isuser($username, $server) { - $username_clean = utf8_clean_string($username); - $row = $this->db->sql_fetchrow($this->db->sql_query('SELECT username FROM ' . USERS_TABLE . ' WHERE username_clean = ' . "'" . $this->db->sql_escape($username_clean) . "'" . ';')); - return !empty($row); - } - - function auth($username, $server, $password) { - $result = $this->auth->login($username, $password); - return $result['status'] == LOGIN_SUCCESS; - } - - // The following functions are disabled. This script will not change the phpBB user database. - - function setpass($username, $server, $password) { - return FALSE; - } - - function tryregister($username, $server, $password) { - return FALSE; - } - - function removeuser($username, $server) { - return FALSE; - } -} -- cgit v1.1