⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.82
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
/
Minimal
/
View File Name :
Messagepart.php
* @category Horde * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ class IMP_Minimal_Messagepart extends IMP_Minimal_Base { /** * URL Parameters: * - atc * - buid * - id */ protected function _init() { global $injector; /* Parse the message. */ try { $imp_contents = $injector->getInstance('IMP_Factory_Contents')->create($this->indices); } catch (IMP_Exception $e) { IMP_Minimal_Mailbox::url(array('mailbox' => $this->indices->mailbox))->add('a', 'm')->redirect(); } if (isset($this->vars->atc)) { try { $summary = $imp_contents->getSummary($this->vars->atc, IMP_Contents::SUMMARY_SIZE | IMP_Contents::SUMMARY_DESCRIP | IMP_Contents::SUMMARY_DOWNLOAD); } catch (IMP_Exception $e) { IMP_Minimal_Mailbox::url(array('mailbox' => $this->indices->mailbox))->add('a', 'm')->redirect(); } $this->title = _("Download Attachment"); $this->view->descrip = $summary['description_raw']; $this->view->download = $summary['download_url']; $this->view->size = $summary['size']; $this->view->type = $summary['type']; } else { $this->title = _("View Attachment"); $data = $imp_contents->renderMIMEPart($this->vars->id, $imp_contents->canDisplay($this->vars->id, IMP_Contents::RENDER_INLINE)); $this->view->data = isset($data[$this->vars->id]) ? $data[$this->vars->id]['data'] : _("This part is empty."); } $this->view->self_link = IMP_Minimal_Message::url(array( 'buid' => $this->vars->buid, 'mailbox' => $this->indices->mailbox )); $this->view->title = $this->title; $this->_pages[] = 'messagepart'; } /** * @param array $opts Options: * - buid: (integer) BUID of message. * - mailbox: (string) Mailbox of message. */ static public function url(array $opts = array()) { return IMP_Mailbox::get($opts['mailbox'])->url('minimal', $opts['buid'])->add('page', 'messagepart'); } }