Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.26
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
webuzo-data /
roundcube /
program /
lib /
Roundcube /
Delete
Unzip
Name
Size
Permission
Date
Action
cache
[ DIR ]
drwxr-xr-x
2026-02-08 09:33
db
[ DIR ]
drwxr-xr-x
2026-02-08 09:33
session
[ DIR ]
drwxr-xr-x
2026-02-08 09:33
spellchecker
[ DIR ]
drwxr-xr-x
2026-02-08 09:33
README.md
3.72
KB
-rw-r--r--
2026-02-08 09:33
bootstrap.php
11.94
KB
-rw-r--r--
2026-02-08 09:33
html.php
28.33
KB
-rw-r--r--
2026-02-08 09:33
rcube.php
56.49
KB
-rw-r--r--
2026-02-08 09:33
rcube_addressbook.php
30.71
KB
-rw-r--r--
2026-02-08 09:33
rcube_addresses.php
13.24
KB
-rw-r--r--
2026-02-08 09:33
rcube_base_replacer.php
3.63
KB
-rw-r--r--
2026-02-08 09:33
rcube_browser.php
4.09
KB
-rw-r--r--
2026-02-08 09:33
rcube_cache.php
19
KB
-rw-r--r--
2026-02-08 09:33
rcube_charset.php
24.98
KB
-rw-r--r--
2026-02-08 09:33
rcube_config.php
31.87
KB
-rw-r--r--
2026-02-08 09:33
rcube_contacts.php
35.47
KB
-rw-r--r--
2026-02-08 09:33
rcube_content_filter.php
2.05
KB
-rw-r--r--
2026-02-08 09:33
rcube_csv2vcard.php
24.52
KB
-rw-r--r--
2026-02-08 09:33
rcube_db.php
44.35
KB
-rw-r--r--
2026-02-08 09:33
rcube_enriched.php
5.31
KB
-rw-r--r--
2026-02-08 09:33
rcube_html2text.php
26.82
KB
-rw-r--r--
2026-02-08 09:33
rcube_image.php
18.24
KB
-rw-r--r--
2026-02-08 09:33
rcube_imap.php
152.15
KB
-rw-r--r--
2026-02-08 09:33
rcube_imap_cache.php
39.08
KB
-rw-r--r--
2026-02-08 09:33
rcube_imap_generic.php
138.47
KB
-rw-r--r--
2026-02-08 09:33
rcube_imap_search.php
8.92
KB
-rw-r--r--
2026-02-08 09:33
rcube_ldap.php
81.01
KB
-rw-r--r--
2026-02-08 09:33
rcube_ldap_generic.php
9.64
KB
-rw-r--r--
2026-02-08 09:33
rcube_message.php
46.62
KB
-rw-r--r--
2026-02-08 09:33
rcube_message_header.php
8.73
KB
-rw-r--r--
2026-02-08 09:33
rcube_message_part.php
3.04
KB
-rw-r--r--
2026-02-08 09:33
rcube_mime.php
33.51
KB
-rw-r--r--
2026-02-08 09:33
rcube_mime_decode.php
14.47
KB
-rw-r--r--
2026-02-08 09:33
rcube_output.php
13
KB
-rw-r--r--
2026-02-08 09:33
rcube_plugin.php
13.27
KB
-rw-r--r--
2026-02-08 09:33
rcube_plugin_api.php
28.06
KB
-rw-r--r--
2026-02-08 09:33
rcube_result_index.php
12.93
KB
-rw-r--r--
2026-02-08 09:33
rcube_result_multifolder.php
9.89
KB
-rw-r--r--
2026-02-08 09:33
rcube_result_set.php
3.88
KB
-rw-r--r--
2026-02-08 09:33
rcube_result_thread.php
20.92
KB
-rw-r--r--
2026-02-08 09:33
rcube_session.php
21.11
KB
-rw-r--r--
2026-02-08 09:33
rcube_smtp.php
20.41
KB
-rw-r--r--
2026-02-08 09:33
rcube_spellchecker.php
12.89
KB
-rw-r--r--
2026-02-08 09:33
rcube_spoofchecker.php
2.69
KB
-rw-r--r--
2026-02-08 09:33
rcube_storage.php
30.1
KB
-rw-r--r--
2026-02-08 09:33
rcube_string_replacer.php
11.07
KB
-rw-r--r--
2026-02-08 09:33
rcube_text2html.php
10.88
KB
-rw-r--r--
2026-02-08 09:33
rcube_tnef_decoder.php
27.38
KB
-rw-r--r--
2026-02-08 09:33
rcube_user.php
31.67
KB
-rw-r--r--
2026-02-08 09:33
rcube_utils.php
58.74
KB
-rw-r--r--
2026-02-08 09:33
rcube_vcard.php
36.16
KB
-rw-r--r--
2026-02-08 09:33
rcube_washtml.php
38.15
KB
-rw-r--r--
2026-02-08 09:33
Save
Rename
<?php /** +-----------------------------------------------------------------------+ | This file is part of the Roundcube Webmail client | | | | Copyright (C) The Roundcube Dev Team | | | | Licensed under the GNU General Public License version 3 or | | any later version with exceptions for skins & plugins. | | See the README file for a full license statement. | | | | PURPOSE: | | Helper class to convert Enriched to HTML format (RFC 1523, 1896) | +-----------------------------------------------------------------------+ | Author: Aleksander Machniak <alec@alec.pl> | | Author: Ryo Chijiiwa (IlohaMail) | +-----------------------------------------------------------------------+ */ /** * Class for Enriched to HTML conversion * * @package Framework * @subpackage Utils */ class rcube_enriched { protected static function convert_newlines($body) { // remove single newlines, convert N newlines to N-1 $body = str_replace("\r\n", "\n", $body); $len = strlen($body); $nl = 0; $out = ''; for ($i=0; $i<$len; $i++) { $c = $body[$i]; if (ord($c) == 10) { $nl++; } if ($nl && ord($c) != 10) { $nl = 0; } if ($nl != 1) { $out .= $c; } else { $out .= ' '; } } return $out; } protected static function convert_formatting($body) { $replace = [ '<bold>' => '<b>', '</bold>' => '</b>', '<italic>' => '<i>', '</italic>' => '</i>', '<fixed>' => '<tt>', '</fixed>' => '</tt>', '<smaller>' => '<font size=-1>', '</smaller>'=> '</font>', '<bigger>' => '<font size=+1>', '</bigger>' => '</font>', '<underline>' => '<span style="text-decoration: underline">', '</underline>' => '</span>', '<flushleft>' => '<span style="text-align: left">', '</flushleft>' => '</span>', '<flushright>' => '<span style="text-align: right">', '</flushright>' => '</span>', '<flushboth>' => '<span style="text-align: justified">', '</flushboth>' => '</span>', '<indent>' => '<span style="padding-left: 20px">', '</indent>' => '</span>', '<indentright>' => '<span style="padding-right: 20px">', '</indentright>' => '</span>', ]; return str_ireplace(array_keys($replace), array_values($replace), $body); } protected static function convert_font($body) { $pattern = '/(.*)\<fontfamily\>\<param\>(.*)\<\/param\>(.*)\<\/fontfamily\>(.*)/ims'; while (preg_match($pattern, $body, $a)) { if (count($a) != 5) { continue; } $body = $a[1].'<span style="font-family: '.$a[2].'">'.$a[3].'</span>'.$a[4]; } return $body; } protected static function convert_color($body) { $pattern = '/(.*)\<color\>\<param\>(.*)\<\/param\>(.*)\<\/color\>(.*)/ims'; while (preg_match($pattern, $body, $a)) { if (count($a) != 5) { continue; } // extract color (either by name, or ####,####,####) if (strpos($a[2],',')) { $rgb = explode(',', $a[2]); $color = '#'; for ($i=0; $i<3; $i++) { $color .= substr($rgb[$i], 0, 2); // just take first 2 bytes } } else { $color = $a[2]; } // put it all together $body = $a[1].'<span style="color: '.$color.'">'.$a[3].'</span>'.$a[4]; } return $body; } protected static function convert_excerpt($body) { $pattern = '/(.*)\<excerpt\>(.*)\<\/excerpt\>(.*)/i'; while (preg_match($pattern, $body, $a)) { if (count($a) != 4) { continue; } $quoted = ''; $lines = explode('<br>', $a[2]); foreach ($lines as $line) { $quoted .= '>'.$line.'<br>'; } $body = $a[1].'<span class="quotes">'.$quoted.'</span>'.$a[3]; } return $body; } /** * Converts Enriched text into HTML format * * @param string $body Enriched text * * @return string HTML text */ public static function to_html($body) { $body = str_replace('<<','<',$body); $body = self::convert_newlines($body); $body = str_replace("\n", '<br>', $body); $body = self::convert_formatting($body); $body = self::convert_color($body); $body = self::convert_font($body); $body = self::convert_excerpt($body); //$body = nl2br($body); return $body; } }