diff options
author | Christoph Burschka | 2012-11-01 00:01:08 +0100 |
---|---|---|
committer | Christoph Burschka | 2012-11-01 00:01:08 +0100 |
commit | 1a1ec38c95a25143bea1e3da38c65a60437d7883 (patch) | |
tree | 4784357112e6fce315bef1fc21848df7a1b50154 /plugins/phpbb3/JabberAuthPhpBB3.php | |
parent | Huge overhaul to deal with the global variables more cleanly. Avoid globals w... (diff) | |
download | ejabberd-auth-php-1a1ec38c95a25143bea1e3da38c65a60437d7883.tar.gz |
Huge overhaul to deal with the global variables more cleanly. Avoid globals wherever possible, to avoid collisions with CMS systems.
Diffstat (limited to 'plugins/phpbb3/JabberAuthPhpBB3.php')
-rw-r--r-- | plugins/phpbb3/JabberAuthPhpBB3.php | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/plugins/phpbb3/JabberAuthPhpBB3.php b/plugins/phpbb3/JabberAuthPhpBB3.php deleted file mode 100644 index e60cbae..0000000 --- a/plugins/phpbb3/JabberAuthPhpBB3.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php - -class JabberAuthPhpBB extends JabberAuth { - var $auth; - var $db; - - function __construct($auth, $db, $logpath) { - $this->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; - } -} |