⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.37
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 :
Audio.php
* @category Horde * @copyright 2011-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ class IMP_Mime_Viewer_Audio extends Horde_Mime_Viewer_Audio { /** * This driver's display capabilities. * * @var array */ protected $_capability = array( 'full' => true, 'info' => true, 'inline' => false, 'raw' => false ); /** * Return the rendered information about the Horde_Mime_Part object. * * @return array See parent::render(). */ protected function _renderInfo() { $mime_id = $this->_mimepart->getMimeId(); $headers = Horde_Mime_Headers::parseHeaders($this->getConfigParam('imp_contents')->getBodyPart($mime_id, array( 'length' => 0, 'mimeheaders' => true, 'stream' => true ))->data); if (($duration = $headers->getValue('content-duration')) === null) { return array(); } $text = array(); if ($minutes = floor($duration / 60)) { $text[] = sprintf( ngettext(_("%d minute"), _("%d minutes"), $minutes), $minutes ); } if ($seconds = ($duration % 60)) { $text[] = sprintf( ngettext(_("%d second"), _("%d seconds"), $seconds), $seconds ); } $status = new IMP_Mime_Status( sprintf(_("This audio file is reported to be %s in length."), implode(' ', $text)) ); $status->icon('mime/audio.png'); return array( $this->_mimepart->getMimeId() => array( 'data' => '', 'status' => $status, 'type' => 'text/html; charset=UTF-8' ) ); } }