⚝
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
/
Mime
/
Viewer
/
View File Name :
Mdn.php
* @category Horde * @copyright 2003-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ class IMP_Mime_Viewer_Mdn extends Horde_Mime_Viewer_Base { /** * This driver's display capabilities. * * @var array */ protected $_capability = array( 'full' => false, 'info' => true, 'inline' => true, 'raw' => false ); /** * Metadata for the current viewer/data. * * @var array */ protected $_metadata = array( 'compressed' => false, 'embedded' => false, 'forceinline' => true ); /** * Return the rendered inline version of the Horde_Mime_Part object. * * @return array See parent::render(). */ protected function _renderInline() { return $this->_renderInfo(); } /** * Return the rendered information about the Horde_Mime_Part object. * * @return array See parent::render(). */ protected function _renderInfo() { $mdn_id = $this->_mimepart->getMimeId(); $parts = array_keys($this->_mimepart->contentTypeMap()); $status = new IMP_Mime_Status(_("A message you have sent has resulted in a return notification from the recipient.")); $status->icon('info_icon.png', _("Info")); /* RFC 3798 [3]: There are three parts to a delivery status * multipart/report message: * (1) Human readable message * (2) Machine parsable body part (message/disposition-notification) * (3) Original message (optional) */ /* Get the human readable message. */ reset($parts); $part1_id = next($parts); /* Display a link to more detailed message. */ $part2_id = Horde_Mime::mimeIdArithmetic($part1_id, 'next'); $part = $this->getConfigParam('imp_contents')->getMIMEPart($part2_id); if ($part) { $status->addText(sprintf(_("Technical details can be viewed %s."), $this->getConfigParam('imp_contents')->linkViewJS($part, 'view_attach', _("HERE"), array('jstext' => _("Technical details"), 'params' => array('ctype' => 'text/plain', 'mode' => IMP_Contents::RENDER_FULL))))); } $ret[$part2_id] = null; /* Display a link to the sent message. */ $part3_id = Horde_Mime::mimeIdArithmetic($part2_id, 'next'); $part = $this->getConfigParam('imp_contents')->getMIMEPart($part3_id); if ($part) { $status->addText(sprintf(_("The text of the sent message can be viewed %s."), $this->getConfigParam('imp_contents')->linkViewJS($part, 'view_attach', _("HERE"), array('jstext' => _("The text of the sent message"), 'params' => array('ctype' => 'message/rfc822', 'mode' => IMP_Contents::RENDER_FULL))))); foreach (array_keys($part->contentTypeMap()) as $key) { $ret[$key] = null; } } $ret[$mdn_id] = array( 'data' => '', 'status' => $status, 'type' => 'text/html; charset=' . $this->getConfigParam('charset'), 'wrap' => 'mimePartWrap' ); return $ret; } }