SILENT KILLERPanel

Current Path: > > usr > src > > litespeed-wp-plugin > 6.5.1 > litespeed-cache > > src


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //usr/src//litespeed-wp-plugin/6.5.1/litespeed-cache//src

NameTypeSizeLast ModifiedActions
cdn Directory - -
data_structure Directory - -
activation.cls.php File 15351 bytes September 25 2024 22:06:38.
admin-display.cls.php File 33999 bytes September 25 2024 22:06:38.
admin-settings.cls.php File 9750 bytes September 25 2024 22:06:38.
admin.cls.php File 4548 bytes September 25 2024 22:06:38.
api.cls.php File 11342 bytes September 25 2024 22:06:38.
avatar.cls.php File 6208 bytes September 25 2024 22:06:38.
base.cls.php File 30959 bytes September 25 2024 22:06:38.
cdn-setup.cls.php File 10702 bytes September 25 2024 22:06:38.
cdn.cls.php File 13447 bytes September 25 2024 22:06:38.
cloud.cls.php File 43495 bytes September 25 2024 22:06:38.
conf.cls.php File 19025 bytes September 25 2024 22:06:38.
control.cls.php File 22268 bytes September 25 2024 22:06:38.
core.cls.php File 20531 bytes September 25 2024 22:06:38.
crawler-map.cls.php File 14335 bytes September 25 2024 22:06:38.
crawler.cls.php File 35465 bytes September 25 2024 22:06:38.
css.cls.php File 13418 bytes September 25 2024 22:06:38.
data.cls.php File 17824 bytes September 25 2024 22:06:38.
data.upgrade.func.php File 21885 bytes September 25 2024 22:06:38.
db-optm.cls.php File 9815 bytes September 25 2024 22:06:38.
debug2.cls.php File 13412 bytes September 25 2024 22:06:38.
doc.cls.php File 4851 bytes September 25 2024 22:06:38.
error.cls.php File 7071 bytes September 25 2024 22:06:38.
esi.cls.php File 27553 bytes September 25 2024 22:06:38.
file.cls.php File 10378 bytes September 25 2024 22:06:38.
gui.cls.php File 28108 bytes September 25 2024 22:06:38.
health.cls.php File 2962 bytes September 25 2024 22:06:38.
htaccess.cls.php File 24527 bytes September 25 2024 22:06:38.
img-optm.cls.php File 61689 bytes September 25 2024 22:06:38.
import.cls.php File 4250 bytes September 25 2024 22:06:38.
instance.cls.php File 154 bytes September 25 2024 22:06:38.
lang.cls.php File 15844 bytes September 25 2024 22:06:38.
localization.cls.php File 3464 bytes September 25 2024 22:06:38.
media.cls.php File 31770 bytes September 25 2024 22:06:38.
metabox.cls.php File 4306 bytes September 25 2024 22:06:38.
object-cache.cls.php File 16299 bytes September 25 2024 22:06:38.
object.lib.php File 34784 bytes September 25 2024 22:06:38.
optimize.cls.php File 37402 bytes September 25 2024 22:06:38.
optimizer.cls.php File 9232 bytes September 25 2024 22:06:38.
placeholder.cls.php File 14454 bytes September 25 2024 22:06:38.
preset.cls.php File 5560 bytes September 25 2024 22:06:38.
purge.cls.php File 30500 bytes September 25 2024 22:06:38.
report.cls.php File 5456 bytes September 25 2024 22:06:38.
rest.cls.php File 8060 bytes September 25 2024 22:06:38.
root.cls.php File 12898 bytes September 25 2024 22:06:38.
router.cls.php File 19479 bytes September 25 2024 22:06:38.
str.cls.php File 1198 bytes September 25 2024 22:06:38.
tag.cls.php File 8826 bytes September 25 2024 22:06:38.
task.cls.php File 5965 bytes September 25 2024 22:06:38.
tool.cls.php File 3370 bytes September 25 2024 22:06:38.
ucss.cls.php File 14735 bytes September 25 2024 22:06:38.
utility.cls.php File 21129 bytes September 25 2024 22:06:38.
vary.cls.php File 19631 bytes September 25 2024 22:06:38.
vpi.cls.php File 7586 bytes September 25 2024 22:06:38.

Reading File: //usr/src//litespeed-wp-plugin/6.5.1/litespeed-cache//src/error.cls.php

<?php

/**
 * The error class.
 *
 * @since      	3.0
 * @package    	LiteSpeed
 * @subpackage 	LiteSpeed/src
 * @author     	LiteSpeed Technologies <info@litespeedtech.com>
 */

namespace LiteSpeed;

defined('WPINC') || exit();

class Error
{
	private static $CODE_SET = array(
		'HTA_LOGIN_COOKIE_INVALID' => 4300, // .htaccess did not find.
		'HTA_DNF' => 4500, // .htaccess did not find.
		'HTA_BK' => 9010, // backup
		'HTA_R' => 9041, // read htaccess
		'HTA_W' => 9042, // write
		'HTA_GET' => 9030, // failed to get
	);

	/**
	 * Throw an error with msg
	 *
	 * @since  3.0
	 */
	public static function t($code, $args = null)
	{
		throw new \Exception(self::msg($code, $args));
	}

	/**
	 * Translate an error to description
	 *
	 * @since  3.0
	 */
	public static function msg($code, $args = null)
	{
		switch ($code) {
			case 'disabled_all':
				$msg =
					sprintf(__('The setting %s is currently enabled.', 'litespeed-cache'), '<strong>' . Lang::title(Base::O_DEBUG_DISABLE_ALL) . '</strong>') .
					Doc::learn_more(
						is_network_admin() ? network_admin_url('admin.php?page=litespeed-toolbox') : admin_url('admin.php?page=litespeed-toolbox'),
						__('Click here to change.', 'litespeed-cache'),
						true,
						false,
						true
					);
				break;

			case 'lack_of_api_key':
				$msg =
					sprintf(__('You will need to set %s to use the online services.', 'litespeed-cache'), '<strong>' . Lang::title(Base::O_API_KEY) . '</strong>') .
					Doc::learn_more(admin_url('admin.php?page=litespeed-general'), __('Click here to set.', 'litespeed-cache'), true, false, true);
				break;

			case 'out_of_daily_quota':
				$msg = __('You have used all of your daily quota for today.', 'litespeed-cache');
				$msg .=
					' ' .
					Doc::learn_more(
						'https://docs.quic.cloud/billing/services/#daily-limits-on-free-quota-usage',
						__('Learn more or purchase additional quota.', 'litespeed-cache'),
						false,
						false,
						true
					);
				break;

			case 'out_of_quota':
				$msg = __('You have used all of your quota left for current service this month.', 'litespeed-cache');
				$msg .=
					' ' .
					Doc::learn_more(
						'https://docs.quic.cloud/billing/services/#daily-limits-on-free-quota-usage',
						__('Learn more or purchase additional quota.', 'litespeed-cache'),
						false,
						false,
						true
					);
				break;

			case 'too_many_requested':
				$msg = __('You have too many requested images, please try again in a few minutes.', 'litespeed-cache');
				break;

			case 'too_many_notified':
				$msg = __('You have images waiting to be pulled. Please wait for the automatic pull to complete, or pull them down manually now.', 'litespeed-cache');
				break;

			case 'empty_list':
				$msg = __('The image list is empty.', 'litespeed-cache');
				break;

			case 'lack_of_param':
				$msg = __('Not enough parameters. Please check if the domain key is set correctly', 'litespeed-cache');
				break;

			case 'unfinished_queue':
				$msg = __('There is proceeding queue not pulled yet.', 'litespeed-cache');
				break;

			case strpos($code, 'unfinished_queue ') === 0:
				$msg = sprintf(
					__('There is proceeding queue not pulled yet. Queue info: %s.', 'litespeed-cache'),
					'<code>' . substr($code, strlen('unfinished_queue ')) . '</code>'
				);
				break;

			case 'err_alias':
				$msg = __('The site is not a valid alias on QUIC.cloud.', 'litespeed-cache');
				break;

			case 'site_not_registered':
				$msg = __('The site is not registered on QUIC.cloud.', 'litespeed-cache');
				break;

			case 'err_key':
				$msg = __('The domain key is not correct. Please try to sync your domain key again.', 'litespeed-cache');
				break;

			case 'heavy_load':
				$msg = __('The current server is under heavy load.', 'litespeed-cache');
				break;

			case 'redetect_node':
				$msg = __('Online node needs to be redetected.', 'litespeed-cache');
				break;

			case 'err_overdraw':
				$msg = __('Credits are not enough to proceed the current request.', 'litespeed-cache');
				break;

			case 'W':
				$msg = __('%s file not writable.', 'litespeed-cache');
				break;

			case 'HTA_DNF':
				if (!is_array($args)) {
					$args = array('<code>' . $args . '</code>');
				}
				$args[] = '.htaccess';
				$msg = __('Could not find %1$s in %2$s.', 'litespeed-cache');
				break;

			case 'HTA_LOGIN_COOKIE_INVALID':
				$msg = sprintf(__('Invalid login cookie. Please check the %s file.', 'litespeed-cache'), '.htaccess');
				break;

			case 'HTA_BK':
				$msg = sprintf(__('Failed to back up %s file, aborted changes.', 'litespeed-cache'), '.htaccess');
				break;

			case 'HTA_R':
				$msg = sprintf(__('%s file not readable.', 'litespeed-cache'), '.htaccess');
				break;

			case 'HTA_W':
				$msg = sprintf(__('%s file not writable.', 'litespeed-cache'), '.htaccess');
				break;

			case 'HTA_GET':
				$msg = sprintf(__('Failed to get %s file contents.', 'litespeed-cache'), '.htaccess');
				break;

			case 'failed_tb_creation':
				$msg = __('Failed to create table %s! SQL: %s.', 'litespeed-cache');
				break;

			case 'crawler_disabled':
				$msg = __('Crawler disabled by the server admin.', 'litespeed-cache');
				break;

			case 'try_later': // QC error code
				$msg = __('Previous request too recent. Please try again later.', 'litespeed-cache');
				break;

			case strpos($code, 'try_later ') === 0:
				$msg = sprintf(
					__('Previous request too recent. Please try again after %s.', 'litespeed-cache'),
					'<code>' . Utility::readable_time(substr($code, strlen('try_later ')), 3600, true) . '</code>'
				);
				break;

			case 'waiting_for_approval':
				$msg = __('Your application is waiting for approval.', 'litespeed-cache');
				break;

			case 'callback_fail_hash':
				$msg = __('The callback validation to your domain failed due to hash mismatch.', 'litespeed-cache');
				break;

			case 'callback_fail':
				$msg = __('The callback validation to your domain failed. Please make sure there is no firewall blocking our servers.', 'litespeed-cache');
				break;

			case substr($code, 0, 14) === 'callback_fail ':
				$msg =
					__('The callback validation to your domain failed. Please make sure there is no firewall blocking our servers. Response code: ', 'litespeed-cache') .
					substr($code, 14);
				break;

			case 'forbidden':
				$msg = __('Your domain has been forbidden from using our services due to a previous policy violation.', 'litespeed-cache');
				break;

			case 'err_dns_active':
				$msg = __(
					'You cannot remove this DNS zone, because it is still in use. Please update the domain\'s nameservers, then try to delete this zone again, otherwise your site will become inaccessible.',
					'litespeed-cache'
				);
				break;

			default:
				$msg = __('Unknown error', 'litespeed-cache') . ': ' . $code;
				break;
		}

		if ($args !== null) {
			$msg = is_array($args) ? vsprintf($msg, $args) : sprintf($msg, $args);
		}

		if (isset(self::$CODE_SET[$code])) {
			$msg = 'ERROR ' . self::$CODE_SET[$code] . ': ' . $msg;
		}

		return $msg;
	}
}

SILENT KILLER Tool