From 841bcac241bac980d5e943793ffda3372d7f8f82 Mon Sep 17 00:00:00 2001 From: Christoph Burschka Date: Thu, 16 Jan 2014 19:34:39 +0100 Subject: Big multiple-plugins patch (fixes #2). --- plugins/session/BridgeSession.php | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'plugins/session/BridgeSession.php') diff --git a/plugins/session/BridgeSession.php b/plugins/session/BridgeSession.php index 58e2208..d9c3afc 100644 --- a/plugins/session/BridgeSession.php +++ b/plugins/session/BridgeSession.php @@ -11,11 +11,6 @@ class BridgeSession extends EjabberdAuthBridge { $this->_isuser = $this->db->prepare(sprintf('SELECT COUNT(*) FROM `%s` WHERE `username` = :user AND `created` >= :limit;', $this->table)); $this->_auth = $this->db->prepare(sprintf('DELETE FROM `%s` WHERE `username` = :user AND `secret` = :secret AND `created` >= :limit;', $this->table)); $this->_prune = $this->db->prepare(sprintf('DELETE COUNT(*) FROM `%s` WHERE `created` < :limit;', $this->table)); - $this->_create = $this->db->prepare(sprintf('INSERT INTO `%s` (`username`, `secret`, `created`) VALUES (:user, :secret, :time);', $this->table)); - } - - function create($entry) { - $this->_create->execute([':user' => $entry['user'], ':secret' => $entry['secret'], ':time' => $entry['time']]); } function prune() { @@ -33,16 +28,4 @@ class BridgeSession extends EjabberdAuthBridge { $this->_auth->execute([':user' => $username, ':secret' => $password, ':limit' => time() - $this->timeout]); return $this->_auth->rowCount() > 0; } - - function setpass($username, $server, $password) { - return FALSE; - } - - function tryregister($username, $server, $password) { - return FALSE; - } - - function removeuser($username, $server) { - return FALSE; - } } -- cgit v1.1