??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/sendmaxagency.com/wp-content/plugins/litespeed-cache/src/report.cls.php
⬅ Kembali
<?php
// phpcs:ignoreFile
/**
* The report class
*
* @since 1.1.0
* @package LiteSpeed
*/
namespace LiteSpeed;
defined('WPINC') || exit();
class Report extends Base {
const TYPE_SEND_REPORT = 'send_report';
/**
* Handle all request actions from main cls
*
* @since 1.6.5
* @access public
*/
public function handler() {
$type = Router::verify_type();
switch ($type) {
case self::TYPE_SEND_REPORT:
$this->post_env();
break;
default:
break;
}
Admin::redirect();
}
/**
* post env report number to ls center server
*
* @since 1.6.5
* @access public
*/
public function post_env() {
$report_con = $this->generate_environment_report();
// Generate link
$link = !empty($_POST['link']) ? esc_url($_POST['link']) : '';
$notes = !empty($_POST['notes']) ? esc_html($_POST['notes']) : '';
$php_info = !empty($_POST['attach_php']) ? esc_html($_POST['attach_php']) : '';
$report_php = $php_info === '1' ? $this->generate_php_report() : '';
if ($report_php) {
$report_con .= "\nPHPINFO\n" . $report_php;
}
$data = array(
'env' => $report_con,
'link' => $link,
'notes' => $notes,
);
$json = Cloud::post(Cloud::API_REPORT, $data);
if (!is_array($json)) {
return;
}
$num = !empty($json['num']) ? $json['num'] : '--';
$summary = array(
'num' => $num,
'dateline' => time(),
);
self::save_summary($summary);
return $num;
}
/**
* Gathers the PHP information.
*
* @since 7.0
* @access public
*/
public function generate_php_report( $flags = INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES ) {
// INFO_ENVIRONMENT
$report = '';
ob_start();
phpinfo($flags);
$report = ob_get_contents();
ob_end_clean();
preg_match('%<style type="text/css">(.*?)</style>.*?<body>(.*?)</body>%s', $report, $report);
return $report[2];
}
/**
* Gathers the environment details and creates the report.
* Will write to the environment report file.
*
* @since 1.0.12
* @access public
*/
public function generate_environment_report( $options = null ) {
global $wp_version, $_SERVER;
$frontend_htaccess = Htaccess::get_frontend_htaccess();
$backend_htaccess = Htaccess::get_backend_htaccess();
$paths = array( $frontend_htaccess );
if ($frontend_htaccess != $backend_htaccess) {
$paths[] = $backend_htaccess;
}
if (is_multisite()) {
$active_plugins = get_site_option('active_sitewide_plugins');
if (!empty($active_plugins)) {
$active_plugins = array_keys($active_plugins);
}
} else {
$active_plugins = get_option('active_plugins');
}
if (function_exists('wp_get_theme')) {
$theme_obj = wp_get_theme();
$active_theme = $theme_obj->get('Name');
} else {
$active_theme = get_current_theme();
}
$extras = array(
'wordpress version' => $wp_version,
'siteurl' => get_option('siteurl'),
'home' => get_option('home'),
'home_url' => home_url(),
'locale' => get_locale(),
'active theme' => $active_theme,
);
$extras['active plugins'] = $active_plugins;
$extras['cloud'] = Cloud::get_summary();
foreach (array( 'mini_html', 'pk_b64', 'sk_b64', 'cdn_dash', 'ips' ) as $v) {
if (!empty($extras['cloud'][$v])) {
unset($extras['cloud'][$v]);
}
}
if (is_null($options)) {
$options = $this->get_options(true);
if (is_multisite()) {
$options2 = $this->get_options();
foreach ($options2 as $k => $v) {
if (isset($options[$k]) && $options[$k] !== $v) {
$options['[Overwritten] ' . $k] = $v;
}
}
}
}
if (!is_null($options) && is_multisite()) {
$blogs = Activation::get_network_ids();
if (!empty($blogs)) {
$i = 0;
foreach ($blogs as $blog_id) {
if (++$i > 3) {
// Only log 3 subsites
break;
}
$opts = $this->cls('Conf')->load_options($blog_id, true);
if (isset($opts[self::O_CACHE])) {
$options['blog ' . $blog_id . ' radio select'] = $opts[self::O_CACHE];
}
}
}
}
// Security: Remove cf key in report
$secure_fields = array( self::O_CDN_CLOUDFLARE_KEY, self::O_OBJECT_PSWD );
foreach ($secure_fields as $v) {
if (!empty($options[$v])) {
$options[$v] = str_repeat('*', strlen($options[$v]));
}
}
$report = $this->build_environment_report($_SERVER, $options, $extras, $paths);
return $report;
}
/**
* Builds the environment report buffer with the given parameters
*
* @access private
*/
private function build_environment_report( $server, $options, $extras = array(), $htaccess_paths = array() ) {
$server_keys = array(
'DOCUMENT_ROOT' => '',
'SERVER_SOFTWARE' => '',
'X-LSCACHE' => '',
'HTTP_X_LSCACHE' => '',
);
$server_vars = array_intersect_key($server, $server_keys);
$server_vars[] = 'LSWCP_TAG_PREFIX = ' . LSWCP_TAG_PREFIX;
$server_vars = array_merge($server_vars, $this->cls('Base')->server_vars());
$buf = $this->_format_report_section('Server Variables', $server_vars);
$buf .= $this->_format_report_section('WordPress Specific Extras', $extras);
$buf .= $this->_format_report_section('LSCache Plugin Options', $options);
if (empty($htaccess_paths)) {
return $buf;
}
foreach ($htaccess_paths as $path) {
if (!file_exists($path) || !is_readable($path)) {
$buf .= $path . " does not exist or is not readable.\n";
continue;
}
$content = file_get_contents($path);
if ($content === false) {
$buf .= $path . " returned false for file_get_contents.\n";
continue;
}
$buf .= $path . " contents:\n" . $content . "\n\n";
}
return $buf;
}
/**
* Creates a part of the environment report based on a section header and an array for the section parameters.
*
* @since 1.0.12
* @access private
*/
private function _format_report_section( $section_header, $section ) {
$tab = ' '; // four spaces
if (empty($section)) {
return 'No matching ' . $section_header . "\n\n";
}
$buf = $section_header;
foreach ($section as $k => $v) {
$buf .= "\n" . $tab;
if (!is_numeric($k)) {
$buf .= $k . ' = ';
}
if (!is_string($v)) {
$v = var_export($v, true);
} else {
$v = esc_html($v);
}
$buf .= $v;
}
return $buf . "\n\n";
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 cdn
dir
—
2026-06-22 03:57
📁 data_structure
dir
—
2026-06-22 03:57
🐘 activation.cls.php
php
17.3 KB
2026-06-22 03:57
🐘 admin-display.cls.php
php
48.5 KB
2026-06-22 03:57
🐘 admin-settings.cls.php
php
11.1 KB
2026-06-22 03:57
🐘 admin.cls.php
php
6.1 KB
2026-06-22 03:57
🐘 api.cls.php
php
10.4 KB
2026-06-22 03:57
🐘 avatar.cls.php
php
8.7 KB
2026-06-22 03:57
🐘 base.cls.php
php
37.7 KB
2026-06-22 03:57
🐘 cdn.cls.php
php
15.9 KB
2026-06-22 03:57
🐘 cloud-auth-callback.trait.php
php
10.4 KB
2026-06-22 03:57
🐘 cloud-auth-ip.trait.php
php
4.3 KB
2026-06-22 03:57
🐘 cloud-auth.trait.php
php
9.4 KB
2026-06-22 03:57
🐘 cloud-misc.trait.php
php
10.3 KB
2026-06-22 03:57
🐘 cloud-node.trait.php
php
5.9 KB
2026-06-22 03:57
🐘 cloud-request.trait.php
php
19.7 KB
2026-06-22 03:57
🐘 cloud.cls.php
php
7.3 KB
2026-06-22 03:57
🐘 conf.cls.php
php
19.5 KB
2026-06-22 03:57
🐘 control.cls.php
php
24.3 KB
2026-06-22 03:57
🐘 core.cls.php
php
21 KB
2026-06-22 03:57
🐘 crawler-map.cls.php
php
19.4 KB
2026-06-22 03:57
🐘 crawler.cls.php
php
44.7 KB
2026-06-22 03:57
🐘 css.cls.php
php
17.8 KB
2026-06-22 03:57
🐘 data.cls.php
php
22.2 KB
2026-06-22 03:57
🐘 data.upgrade.func.php
php
5.7 KB
2026-06-22 03:57
🐘 db-optm.cls.php
php
15.3 KB
2026-06-22 03:57
🐘 debug2.cls.php
php
18.4 KB
2026-06-22 03:57
🐘 doc.cls.php
php
5.4 KB
2026-06-22 03:57
🐘 error.cls.php
php
7.4 KB
2026-06-22 03:57
🐘 esi.cls.php
php
27.2 KB
2026-06-22 03:57
🐘 file.cls.php
php
10.6 KB
2026-06-22 03:57
🐘 guest.cls.php
php
2.8 KB
2026-06-22 03:57
🐘 gui.cls.php
php
36.6 KB
2026-06-22 03:57
🐘 health.cls.php
php
2.8 KB
2026-06-22 03:57
🐘 htaccess.cls.php
php
29.8 KB
2026-06-22 03:57
🐘 img-optm-manage.trait.php
php
30.8 KB
2026-06-22 03:57
🐘 img-optm-pull.trait.php
php
22.1 KB
2026-06-22 03:57
🐘 img-optm-send.trait.php
php
21.9 KB
2026-06-22 03:57
🐘 img-optm.cls.php
php
5.3 KB
2026-06-22 03:57
🐘 import.cls.php
php
4.3 KB
2026-06-22 03:57
🐘 import.preset.cls.php
php
5.5 KB
2026-06-22 03:57
🐘 lang.cls.php
php
17 KB
2026-06-22 03:57
🐘 localization.cls.php
php
4 KB
2026-06-22 03:57
🐘 media.cls.php
php
44.1 KB
2026-06-22 03:57
🐘 metabox.cls.php
php
5.3 KB
2026-06-22 03:57
🐘 object-cache-wp.cls.php
php
18.8 KB
2026-06-22 03:57
🐘 object-cache.cls.php
php
20.9 KB
2026-06-22 03:57
🐘 object.lib.php
php
14.2 KB
2026-06-22 03:57
🐘 optimize.cls.php
php
38.6 KB
2026-06-22 03:57
🐘 optimizer.cls.php
php
10.5 KB
2026-06-22 03:57
🐘 placeholder.cls.php
php
17.9 KB
2026-06-22 03:57
🐘 purge.cls.php
php
34.4 KB
2026-06-22 03:57
🐘 report.cls.php
php
6.1 KB
2026-06-22 03:57
🐘 rest.cls.php
php
9.1 KB
2026-06-22 03:57
🐘 root.cls.php
php
14.3 KB
2026-06-22 03:57
🐘 router.cls.php
php
20.8 KB
2026-06-22 03:57
🐘 str.cls.php
php
3.1 KB
2026-06-22 03:57
🐘 tag.cls.php
php
9.3 KB
2026-06-22 03:57
🐘 task.cls.php
php
7 KB
2026-06-22 03:57
🐘 tool.cls.php
php
4.2 KB
2026-06-22 03:57
🐘 ucss.cls.php
php
16.3 KB
2026-06-22 03:57
🐘 utility.cls.php
php
26 KB
2026-06-22 03:57
🐘 vary.cls.php
php
21.3 KB
2026-06-22 03:57
🐘 vpi.cls.php
php
9.4 KB
2026-06-22 03:57