%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.26 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/proc/self/root/var/www/html/old/libraries/kunena/ |
Upload File : |
<?php
/**
* Kunena Component
* @package Kunena.Framework
* @subpackage Integration
*
* @copyright (C) 2008 - 2014 Kunena Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link http://www.kunena.org
**/
defined ( '_JEXEC' ) or die ();
/**
* Class KunenaLogin
*/
class KunenaLogin {
protected static $instance = false;
/**
* @var array|KunenaLogin[]
*/
protected $instances = array();
public function __construct() {
JPluginHelper::importPlugin('kunena');
$dispatcher = JDispatcher::getInstance();
$classes = $dispatcher->trigger('onKunenaGetLogin');
foreach ($classes as $class) {
if (!is_object($class)) continue;
$this->instances[] = $class;
}
}
public function enabled() {
// TODO: do better
return !empty($this->instances);
}
public static function getInstance($integration = null) {
if (self::$instance === false) {
self::$instance = new KunenaLogin();
}
return self::$instance;
}
public function loginUser($username, $password, $rememberme=0, $return=null) {
foreach ($this->instances as $login) {
if (method_exists($login, 'loginUser')) {
return $login->loginUser($username, $password, $rememberme, $return);
}
}
return false;
}
public function logoutUser($return=null) {
foreach ($this->instances as $login) {
if (method_exists($login, 'logoutUser')) {
return $login->logoutUser($return);
}
}
return false;
}
public function getRememberMe() {
foreach ($this->instances as $login) {
if (method_exists($login, 'getRememberMe')) {
return $login->getRememberMe();
}
}
return false;
}
public function getLoginURL() {
foreach ($this->instances as $login) {
if (method_exists($login, 'getLoginURL')) {
return $login->getLoginURL();
}
}
return null;
}
public function getLogoutURL() {
foreach ($this->instances as $login) {
if (method_exists($login, 'getLogoutURL')) {
return $login->getLogoutURL();
}
}
return null;
}
public function getRegistrationURL() {
foreach ($this->instances as $login) {
if (method_exists($login, 'getRegistrationURL')) {
return $login->getRegistrationURL();
}
}
return null;
}
public function getResetURL() {
foreach ($this->instances as $login) {
if (method_exists($login, 'getResetURL')) {
return $login->getResetURL();
}
}
return null;
}
public function getRemindURL() {
foreach ($this->instances as $login) {
if (method_exists($login, 'getRemindURL')) {
return $login->getRemindURL();
}
}
return null;
}
}