⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.50
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
/
Imap
/
View File Name :
Password.php
* @category Horde * @copyright 2013-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ class IMP_Imap_Password implements Horde_Imap_Client_Base_Password, Serializable { /* Password key. */ const PASSWORD_KEY = 'imap_ob_pass'; /** * Object storage ID. * * @var string */ private $_id; /** * Mail server password. * * @var string */ private $_password; /** * Constructor. * * @param string $password The mail server password. */ public function __construct($password) { $this->_password = $password; } /* Horde_Imap_Client_Base_Password methods. */ /** */ public function getPassword() { return $this->_password; } /* Serializable methods. */ /** */ public function serialize() { global $session; if (!isset($this->_id)) { $this->_id = strval(new Horde_Support_Randomid()); } $session->set('imp', self::PASSWORD_KEY . '/' . $this->_id, $this->_password, $session::ENCRYPT); return $this->_id; } /** * @throws RuntimeException */ public function unserialize($data) { $this->_id = $data; $password = $GLOBALS['session']->get( 'imp', self::PASSWORD_KEY . '/' . $this->_id ); if (!strlen($password)) { /* Without a password, this object is invalid. */ throw new RuntimeException( 'Invalid object since password is empty.' ); } $this->_password = $password; } }