⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.72
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
/
Avatar
/
View File Name :
Addressbook.php
* @category Horde * @copyright 2013-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ class IMP_Contacts_Avatar_Addressbook implements IMP_Contacts_Avatar_Backend { /** */ public function avatarImg($email) { global $injector, $registry; if ($registry->hasMethod('contacts/search')) { $sparams = $injector->getInstance('IMP_Contacts')->getAddressbookSearchParams(); try { $res = $registry->call('contacts/search', array( $email, array( 'customStrict' => array('email'), 'fields' => array_fill_keys($sparams['sources'], array('email')), 'returnFields' => array('photo', 'phototype'), 'sources' => $sparams['sources'] ) )); if (isset($res[$email][0]['photo'])) { try { $img = $injector->getInstance('Horde_Core_Factory_Image')->create(); $img->loadString($res[$email][0]['photo']['load']['data']); $img->resize(80, 80, true); $data = $img->raw(true); $type = $img->getContentType(); } catch (Horde_Exception $e) { $data = $res[$email][0]['photo']['load']['data']; $type = $res[$email][0]['phototype']; } return array( 'desc' => '', 'url' => Horde_Url_Data::create($type, $data) ); } } catch (Horde_Exception $e) {} } return null; } }