GRAYBYTE WORDPRESS FILE MANAGER8429

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/src/litespeed-wp-plugin/6.2.0.1/litespeed-cache/src/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/src/litespeed-wp-plugin/6.2.0.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 don\'t have enough daily quota left for current service today.', 'litespeed-cache');
				break;

			case 'out_of_quota':
				$msg = __('You don\'t have enough quota left for current service this month.', 'litespeed-cache');
				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 too many notified images, please pull down notified images first.', '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;

			/*** QC error code ***/
			case 'try_later':
				$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;
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
January 01 1970 00:00:00
root / root
0
cdn
--
April 26 2024 00:11:08
root / root
0755
data_structure
--
April 26 2024 00:11:08
root / root
0755
activation.cls.php
14.986 KB
April 25 2024 23:07:02
root / root
0644
admin-display.cls.php
33.175 KB
April 25 2024 23:07:02
root / root
0644
admin-settings.cls.php
9.521 KB
April 25 2024 23:07:02
root / root
0644
admin.cls.php
4.441 KB
April 25 2024 23:07:02
root / root
0644
api.cls.php
11.075 KB
April 25 2024 23:07:02
root / root
0644
avatar.cls.php
6.063 KB
April 25 2024 23:07:02
root / root
0644
base.cls.php
29.958 KB
April 25 2024 23:07:02
root / root
0644
cdn-setup.cls.php
9.805 KB
April 25 2024 23:07:02
root / root
0644
cdn.cls.php
13.131 KB
April 25 2024 23:07:02
root / root
0644
cloud.cls.php
40.857 KB
April 25 2024 23:07:02
root / root
0644
conf.cls.php
18.578 KB
April 25 2024 23:07:02
root / root
0644
control.cls.php
21.247 KB
April 25 2024 23:07:02
root / root
0644
core.cls.php
20.005 KB
April 25 2024 23:07:02
root / root
0644
crawler-map.cls.php
13.974 KB
April 25 2024 23:07:02
root / root
0644
crawler.cls.php
35.217 KB
April 25 2024 23:07:02
root / root
0644
css.cls.php
13.104 KB
April 25 2024 23:07:02
root / root
0644
data.cls.php
16.842 KB
April 25 2024 23:07:02
root / root
0644
data.upgrade.func.php
21.372 KB
April 25 2024 23:07:02
root / root
0644
db-optm.cls.php
9.585 KB
April 25 2024 23:07:02
root / root
0644
debug2.cls.php
11.828 KB
April 25 2024 23:07:02
root / root
0644
doc.cls.php
4.737 KB
April 25 2024 23:07:02
root / root
0644
error.cls.php
6.405 KB
April 25 2024 23:07:02
root / root
0644
esi.cls.php
26.617 KB
April 25 2024 23:07:02
root / root
0644
file.cls.php
10.135 KB
April 25 2024 23:07:02
root / root
0644
gui.cls.php
27.057 KB
April 25 2024 23:07:02
root / root
0644
health.cls.php
2.893 KB
April 25 2024 23:07:02
root / root
0644
htaccess.cls.php
23.919 KB
April 25 2024 23:07:02
root / root
0644
img-optm.cls.php
60.366 KB
April 25 2024 23:07:02
root / root
0644
import.cls.php
4.147 KB
April 25 2024 23:07:02
root / root
0644
instance.cls.php
0.15 KB
April 25 2024 23:07:02
root / root
0644
lang.cls.php
15.386 KB
April 25 2024 23:07:02
root / root
0644
localization.cls.php
3.389 KB
April 25 2024 23:07:02
root / root
0644
media.cls.php
30.858 KB
April 25 2024 23:07:02
root / root
0644
metabox.cls.php
4.205 KB
April 25 2024 23:07:02
root / root
0644
object-cache.cls.php
15.623 KB
April 25 2024 23:07:02
root / root
0644
object.lib.php
33.969 KB
April 25 2024 23:07:02
root / root
0644
optimize.cls.php
36.491 KB
April 25 2024 23:07:02
root / root
0644
optimizer.cls.php
8.69 KB
April 25 2024 23:07:02
root / root
0644
placeholder.cls.php
14.074 KB
April 25 2024 23:07:02
root / root
0644
preset.cls.php
5.428 KB
April 25 2024 23:07:02
root / root
0644
purge.cls.php
29.784 KB
April 25 2024 23:07:02
root / root
0644
report.cls.php
5.328 KB
April 25 2024 23:07:02
root / root
0644
rest.cls.php
7.865 KB
April 25 2024 23:07:02
root / root
0644
root.cls.php
12.591 KB
April 25 2024 23:07:02
root / root
0644
router.cls.php
17.357 KB
April 25 2024 23:07:02
root / root
0644
str.cls.php
1.17 KB
April 25 2024 23:07:02
root / root
0644
tag.cls.php
8.619 KB
April 25 2024 23:07:02
root / root
0644
task.cls.php
5.292 KB
April 25 2024 23:07:02
root / root
0644
tool.cls.php
3.291 KB
April 25 2024 23:07:02
root / root
0644
ucss.cls.php
14.389 KB
April 25 2024 23:07:02
root / root
0644
utility.cls.php
20.633 KB
April 25 2024 23:07:02
root / root
0644
vary.cls.php
19.168 KB
April 25 2024 23:07:02
root / root
0644
vpi.cls.php
7.407 KB
April 25 2024 23:07:02
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF