⚝
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
/
Contacts
/
View File Name :
Image.php
* @category Horde * @copyright 2013-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ class IMP_Contacts_Image { /* Image types. */ const AVATAR = 1; const FLAG = 2; /** * The e-mail address. * * @var string */ protected $_email; /** * Constructor. * * @param string $email The e-mail address. */ public function __construct($email) { $this->_email = $email; } /** * Return the data representing the contact image. * * @param integer $type The image type. * * @return array Array with the following keys: *
* - desc: (string) Description. * - url: (Horde_Url|Horde_Url_Data) URL object. *
* * @throws IMP_Exception */ public function getImage($type) { global $conf; if (!empty($conf['contactsimage']['backends'])) { switch ($type) { case self::AVATAR: $func = 'avatarImg'; $type = 'IMP_Contacts_Avatar_Backend'; break; case self::FLAG: $func = 'flagImg'; $type = 'IMP_Contacts_Flag_Backend'; break; } foreach ($conf['contactsimage']['backends'] as $val) { if (class_exists($val)) { $backend = new $val(); if (($backend instanceof $type) && ($url = $backend->$func($this->_email))) { return $url; } } } } throw new IMP_Exception('No backend found to generate contact image.'); } }