⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.78
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-pear
/
pear
/
php
/
Horde
/
Core
/
Factory
/
View File Name :
Identity.php
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 */ /** * A Horde_Injector based Horde_Identity factory. * * @category Horde * @package Core * @author Michael Slusarz
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 */ class Horde_Core_Factory_Identity extends Horde_Core_Factory_Base { /** * Instances. * * @var array */ private $_instances = array(); /** * Returns the Horde_Identity instance. * * @param string $user The user to use, if not the current user. * @param string $driver The identity driver. Either empty (use default * driver) or an application name. * * @return Horde_Identity The singleton identity instance. * @throws Horde_Exception */ public function create($user = null, $driver = null) { global $prefs, $registry; $class = 'Horde_Core_Prefs_Identity'; switch ($driver) { case 'horde': // Bug #9936: There is a conflict between the horde/Prefs // Identity base driver and the application-specific Identity // driver for Horde. $temp_class = 'Horde_Prefs_HordeIdentity'; if (class_exists($temp_class)) { $class = $temp_class; } break; default: if (!is_null($driver)) { $class = Horde_String::ucfirst($driver) . '_Prefs_Identity'; if (!class_exists($class)) { throw new Horde_Exception($driver . ' identity driver does not exist.'); } } break; } $key = $class . '|' . $user; if (!isset($this->_instances[$key])) { $params = array( 'user' => is_null($user) ? $registry->getAuth() : $user, ); if (isset($prefs) && ($params['user'] == $registry->getAuth())) { $params['prefs'] = $prefs; } else { $params['prefs'] = $this->_injector->getInstance('Horde_Core_Factory_Prefs')->create($registry->getApp() ?: 'horde', array( 'cache' => false, 'user' => $user )); } $this->_instances[$key] = new $class($params); $this->_instances[$key]->init(); } return $this->_instances[$key]; } }