⚝
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
/
Edit File: History.php
<?php /** * Copyright 2014-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (LGPL). If you * did not receive this file, see http://www.horde.org/licenses/lgpl21. * * @category Horde * @copyright 2014-2017 Horde LLC * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package Core */ /** * A Horde_Injector based factory for creating the History object. * * @category Horde * @copyright 2014-2017 Horde LLC * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package Core */ class Horde_Core_Factory_History extends Horde_Core_Factory_Injector { /** * @return Horde_Core_History * @throws Horde_Exception */ public function create(Horde_Injector $injector) { global $conf; // For BC, default to 'Sql' driver. $driver = empty($conf['history']['driver']) ? 'Sql' : $conf['history']['driver']; $history = null; $user = $injector->getInstance('Horde_Registry')->getAuth(); switch (Horde_String::lower($driver)) { case 'nosql': $nosql = $injector->getInstance('Horde_Core_Factory_Nosql')->create('horde', 'history'); if ($nosql instanceof Horde_History_Mongo) { $history = new Horde_History_Mongo( $user, array('mongo_db' => $nosql) ); } break; case 'sql': try { $history = new Horde_History_Sql( $user, $injector->getInstance('Horde_Core_Factory_Db')->create('horde', 'history') ); } catch (Exception $e) {} break; } if (is_null($history)) { $history = new Horde_History_Null($user); } elseif ($cache = $injector->getInstance('Horde_Cache')) { $history->setCache($cache); $history = new Horde_Core_History($history); } return $history; } }
Simpan