⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.74
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
/
Imsp
/
Auth
/
Edit File: Base.php
<?php /** * Abstract IMSP authentication class. * * Required Parameters:<pre> * 'username' Username to logon to IMSP server as. * 'password' Password for current user. * 'server' The hostname of the IMSP server. * 'port' The port of the IMSP server.</pre> * * Copyright 2003-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. * * @author Michael Rubinsky <mrubinsk@horde.org> * @package Horde_Imsp */ abstract class Horde_Imsp_Auth_Base { protected $_params = array(); /** * Class variable to hold the resulting Horde_Imsp object * * @var Horde_Imsp_Client_Base */ protected $_imsp; /** * Constructor * * @param array $params */ public function __construct(array $params = array()) { $this->_params = $params; } /** * Attempts to login to IMSP server. * * @param Horde_Imsp_Client_Base $client The Imsp client connection. * @param boolean $login Remain logged in after auth? * * @return boolean */ public function authenticate(Horde_Imsp_Client_Base $client, $login = true) { $this->_imsp = $client; if(!$this->_authenticate()) { return false; } if (!$login) { $this->_imsp->logout(); } return true; } /** * Private authentication function. Provides actual authentication code. * * @return boolean */ abstract protected function _authenticate(); /** * Returns the type of this driver. * * * @return string Type of IMSP_Auth driver instance */ abstract public function getDriverType(); /** * Force a logout from the underlying IMSP stream. * */ abstract public function logout(); }
Simpan