⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.82
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-horde
/
imp
/
lib
/
Factory
/
Edit File: Flags.php
<?php /** * Copyright 2010-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (GPL). If you * did not receive this file, see http://www.horde.org/licenses/gpl. * * @category Horde * @copyright 2010-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ /** * A Horde_Injector based factory for the IMP_Flags object. * * @author Michael Slusarz <slusarz@horde.org> * @category Horde * @copyright 2010-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ class IMP_Factory_Flags extends Horde_Core_Factory_Injector implements Horde_Shutdown_Task { /** * @var IMP_Flags */ private $_instance = null; /** * Return the IMP_Flags instance. * * @return IMP_Flags The singleton instance. */ public function create(Horde_Injector $injector) { try { $this->_instance = $GLOBALS['session']->get('imp', 'flags'); } catch (Exception $e) { Horde::log('Could not unserialize stored IMP_Flags object.', 'DEBUG'); } if (is_null($this->_instance)) { $this->_instance = new IMP_Flags(); } Horde_Shutdown::add($this); return $this->_instance; } /** * Store serialized version of object in the current session. */ public function shutdown() { /* Only need to store the object if the object has changed. */ if ($this->_instance->changed) { $GLOBALS['session']->set('imp', 'flags', $this->_instance); } } }
Simpan