⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.72
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
/
Mailbox
/
List
/
Edit File: Thread.php
<?php /** * Copyright 2012-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 2012-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP */ /** * This class represents thread information for a single message. * * @author Michael Slusarz <slusarz@horde.org> * @category Horde * @copyright 2012-2017 Horde LLC * @license http://www.horde.org/licenses/gpl GPL * @package IMP * * @property-read string $img An image HTML tag of the thread. * @property-read string $raw The raw thread data. * @property-read string $reverse_img An image HTML tag of the thread * (reversed). * @property-read string $reverse_raw The raw thread data (reversed). */ class IMP_Mailbox_List_Thread { /* Thread level representations. */ const BLANK = 0; const LINE = 1; const JOIN = 2; const JOINBOTTOM_DOWN = 3; const JOINBOTTOM = 4; /** * Thread information. * * @var string */ protected $_data; /** * Constructor. * * @param string $data The thread information. */ public function __construct($data) { $this->_data = $data; } /** */ public function __get($name) { switch ($name) { case 'reverse_img': case 'reverse_raw': $ret = strtr($this->_data, array( self::JOINBOTTOM_DOWN => self::JOINBOTTOM, self::JOINBOTTOM => self::JOINBOTTOM_DOWN )); break; default: $ret = $this->_data; break; } switch ($name) { case 'img': case 'reverse_img': $tmp = ''; if (strlen($ret)) { foreach (str_split($ret) as $val) { $tmp .= '<span class="horde-tree-image horde-tree-image-' . $val . '"></span>'; } } return $tmp; case 'raw': case 'reverse_raw': return $ret; } } }
Simpan