X7ROOT File Manager
Current Path:
/usr/src/litespeed-wp-plugin/7.2/litespeed-cache/src
usr
/
src
/
litespeed-wp-plugin
/
7.2
/
litespeed-cache
/
src
/
📁
..
📄
activation.cls.php
(15.06 KB)
📄
admin-display.cls.php
(35.74 KB)
📄
admin-settings.cls.php
(10.95 KB)
📄
admin.cls.php
(4.47 KB)
📄
api.cls.php
(11.52 KB)
📄
avatar.cls.php
(6.12 KB)
📄
base.cls.php
(32.76 KB)
📁
cdn
📄
cdn.cls.php
(13.22 KB)
📄
cloud.cls.php
(54.29 KB)
📄
conf.cls.php
(17.39 KB)
📄
control.cls.php
(21.25 KB)
📄
core.cls.php
(20.16 KB)
📄
crawler-map.cls.php
(14.89 KB)
📄
crawler.cls.php
(41.71 KB)
📄
css.cls.php
(15.25 KB)
📄
data.cls.php
(17.98 KB)
📄
data.upgrade.func.php
(23.38 KB)
📁
data_structure
📄
db-optm.cls.php
(10.16 KB)
📄
debug2.cls.php
(13.17 KB)
📄
doc.cls.php
(4.73 KB)
📄
error.cls.php
(7.49 KB)
📄
esi.cls.php
(27.17 KB)
📄
file.cls.php
(10.53 KB)
📄
gui.cls.php
(27.78 KB)
📄
health.cls.php
(2.9 KB)
📄
htaccess.cls.php
(24.13 KB)
📄
img-optm.cls.php
(65.27 KB)
📄
import.cls.php
(4.18 KB)
📄
import.preset.cls.php
(5.48 KB)
📄
lang.cls.php
(14.91 KB)
📄
localization.cls.php
(3.42 KB)
📄
media.cls.php
(33.18 KB)
📄
metabox.cls.php
(4.26 KB)
📄
object-cache.cls.php
(16.49 KB)
📄
object.lib.php
(34.13 KB)
📄
optimize.cls.php
(37.19 KB)
📄
optimizer.cls.php
(9.49 KB)
📄
placeholder.cls.php
(14.26 KB)
📄
purge.cls.php
(30.85 KB)
📄
report.cls.php
(6.19 KB)
📄
rest.cls.php
(7.52 KB)
📄
root.cls.php
(12.84 KB)
📄
router.cls.php
(19.94 KB)
📄
str.cls.php
(2.45 KB)
📄
tag.cls.php
(9.27 KB)
📄
task.cls.php
(6.14 KB)
📄
tool.cls.php
(3.41 KB)
📄
ucss.cls.php
(14.31 KB)
📄
utility.cls.php
(20.82 KB)
📄
vary.cls.php
(20.17 KB)
📄
vpi.cls.php
(7.26 KB)
Editing: str.cls.php
<?php /** * LiteSpeed String Operator Library Class * * @since 1.3 */ namespace LiteSpeed; defined('WPINC') || exit(); class Str { /** * Translate QC HTML links from html. Convert `<a href="{#xxx#}">xxxx</a>` to `<a href="xxx">xxxx</a>` * * @since 7.0 */ public static function translate_qc_apis( $html ) { preg_match_all('/<a href="{#(\w+)#}"/U', $html, $matches); if (!$matches) { return $html; } foreach ($matches[0] as $k => $html_to_be_replaced) { $link = '<a href="' . Utility::build_url(Router::ACTION_CLOUD, Cloud::TYPE_API, false, null, array( 'action2' => $matches[1][$k] )) . '"'; $html = str_replace($html_to_be_replaced, $link, $html); } return $html; } /** * Return safe HTML * * @since 7.0 */ public static function safe_html( $html ) { $common_attrs = array( 'style' => array(), 'class' => array(), 'target' => array(), 'src' => array(), 'color' => array(), 'href' => array(), ); $tags = array( 'hr', 'h3', 'h4', 'h5', 'ul', 'li', 'br', 'strong', 'p', 'span', 'img', 'a', 'div', 'font' ); $allowed_tags = array(); foreach ($tags as $tag) { $allowed_tags[$tag] = $common_attrs; } return wp_kses($html, $allowed_tags); } /** * Generate random string * * @since 1.3 * @access public * @param int $len Length of string * @param int $type 1-Number 2-LowerChar 4-UpperChar * @return string */ public static function rrand( $len, $type = 7 ) { switch ($type) { case 0: $charlist = '012'; break; case 1: $charlist = '0123456789'; break; case 2: $charlist = 'abcdefghijklmnopqrstuvwxyz'; break; case 3: $charlist = '0123456789abcdefghijklmnopqrstuvwxyz'; break; case 4: $charlist = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; break; case 5: $charlist = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'; break; case 6: $charlist = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; break; case 7: $charlist = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; break; } $str = ''; $max = strlen($charlist) - 1; for ($i = 0; $i < $len; $i++) { $str .= $charlist[random_int(0, $max)]; } return $str; } /** * Trim double quotes from a string to be used as a preformatted src in HTML. * * @since 6.5.3 */ public static function trim_quotes( $string ) { return str_replace('"', '', $string); } }
Upload File
Create Folder