⚝
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: ShareBase.php
<?php /** * A Horde_Injector based Horde_Share factory. * * @category Horde * @package Core * @author Michael J. Rubinsky <mrubinsk@horde.org> */ /** * A Horde_Injector based Horde_Share factory. * * Copyright 2010-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 * @package Core * @author Michael J. Rubinsky <mrubinsk@horde.org> */ class Horde_Core_Factory_ShareBase extends Horde_Core_Factory_Base { /** Session storage key. */ const STORAGE_KEY = 'horde_share/'; /** * Local cache of created share instances. * * @var array */ protected $_instances = array(); /** * Cache of share entries. * * @var array */ protected $_toCache = array(); /** * Returns the share driver instance. * * @param string $app The application scope of the share. If empty, * default to current application. * @param string $driver The storage driver to use. If empty, use the * globally configured storage driver. * * @return Horde_Share_Base The share driver instance. */ public function create($app = null, $driver = null) { global $conf, $session; $registry = $this->_injector->getInstance('Horde_Registry'); if (empty($driver)) { $driver = $conf['share']['driver']; } if (empty($app)) { $app = $registry->getApp(); } $sig = $app . '_' . $driver; if (isset($this->_instances[$sig])) { return $this->_instances[$sig]; } $class = $this->_getDriverName($driver, 'Horde_Share'); $ob = new $class($app, $registry->getAuth(), $this->_injector->getInstance('Horde_Perms'), $this->_injector->getInstance('Horde_Group')); $cb = new Horde_Core_Share_FactoryCallback($app, $driver); $ob->setShareCallback(array($cb, 'create')); $ob->setLogger($this->_injector->getInstance('Horde_Log_Logger')); if (!empty($conf['share']['cache'])) { $cache_sig = self::STORAGE_KEY . $driver; $listCache = $session->get($app, $cache_sig); $ob->setListCache($listCache); if (empty($this->_toCache)) { register_shutdown_function(array($this, 'shutdown')); } $this->_toCache[$sig] = array($app, $cache_sig); } $this->_instances[$sig] = $ob; return $ob; } /** * Shutdown function. */ public function shutdown() { global $session; foreach ($this->_toCache as $sig => $val) { try { $session->set($val[0], $val[1], $this->_instances[$sig]->getListCache()); } catch (Horde_Exception $e) { } } } }
Simpan