golden hour
/home/godaofbq/cellsonic-usa.com/wp-content/plugins/litespeed-cache/src
⬆️ Go Up
Upload
File/Folder
Size
Actions
activation.cls.php
17.62 KB
Del
OK
admin-display.cls.php
48.76 KB
Del
OK
admin-settings.cls.php
12.77 KB
Del
OK
admin.cls.php
6.13 KB
Del
OK
api.cls.php
10.44 KB
Del
OK
avatar.cls.php
9.25 KB
Del
OK
base.cls.php
37.66 KB
Del
OK
cdn
-
Del
OK
cdn.cls.php
17.76 KB
Del
OK
cloud-auth-callback.trait.php
10.43 KB
Del
OK
cloud-auth-ip.trait.php
4.33 KB
Del
OK
cloud-auth.trait.php
9.38 KB
Del
OK
cloud-misc.trait.php
10.32 KB
Del
OK
cloud-node.trait.php
5.95 KB
Del
OK
cloud-queue-svc.cls.php
9.33 KB
Del
OK
cloud-request.trait.php
19.68 KB
Del
OK
cloud.cls.php
7.32 KB
Del
OK
conf.cls.php
19.53 KB
Del
OK
control.cls.php
24.35 KB
Del
OK
core.cls.php
21.53 KB
Del
OK
crawler-map.cls.php
22.3 KB
Del
OK
crawler.cls.php
44 KB
Del
OK
css.cls.php
7.26 KB
Del
OK
data.cls.php
22.2 KB
Del
OK
data.upgrade.func.php
6.41 KB
Del
OK
data_structure
-
Del
OK
db-optm.cls.php
15.35 KB
Del
OK
debug2.cls.php
18.4 KB
Del
OK
doc.cls.php
5.45 KB
Del
OK
error.cls.php
7.35 KB
Del
OK
esi.cls.php
31.37 KB
Del
OK
file.cls.php
13.75 KB
Del
OK
guest.cls.php
2.75 KB
Del
OK
gui.cls.php
35.09 KB
Del
OK
health.cls.php
4.66 KB
Del
OK
htaccess.cls.php
29.81 KB
Del
OK
img-optm-manage.trait.php
31.25 KB
Del
OK
img-optm-pull.trait.php
22.1 KB
Del
OK
img-optm-send.trait.php
20.77 KB
Del
OK
img-optm.cls.php
5.25 KB
Del
OK
import.cls.php
4.29 KB
Del
OK
import.preset.cls.php
5.5 KB
Del
OK
lang.cls.php
17.02 KB
Del
OK
localization.cls.php
4.03 KB
Del
OK
media.cls.php
44.06 KB
Del
OK
metabox.cls.php
5.29 KB
Del
OK
object-cache-wp.cls.php
18.82 KB
Del
OK
object-cache.cls.php
21.82 KB
Del
OK
object.lib.php
13.85 KB
Del
OK
optimax.cls.php
8.94 KB
Del
OK
optimize.cls.php
38.74 KB
Del
OK
optimizer.cls.php
12.71 KB
Del
OK
placeholder.cls.php
17.64 KB
Del
OK
purge.cls.php
35.48 KB
Del
OK
report.cls.php
7.53 KB
Del
OK
rest.cls.php
7.95 KB
Del
OK
root.cls.php
14.29 KB
Del
OK
router.cls.php
20.86 KB
Del
OK
str.cls.php
3.08 KB
Del
OK
tag.cls.php
9.26 KB
Del
OK
task.cls.php
8.98 KB
Del
OK
tool.cls.php
4.58 KB
Del
OK
ucss.cls.php
7.34 KB
Del
OK
utility.cls.php
27.11 KB
Del
OK
vary.cls.php
21.33 KB
Del
OK
vpi.cls.php
4.25 KB
Del
OK
Edit: error.cls.php
<?php /** * The error class. * * @package LiteSpeed * @since 3.0 */ namespace LiteSpeed; defined( 'WPINC' ) || exit(); /** * Class Error * * Handles error message translation and throwing for LiteSpeed Cache. * * @since 3.0 */ class Error { /** * Error code mappings to numeric values. * * @since 3.0 * @var array */ private static $code_set = [ '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 message * * Throws an exception with the translated error message. * * @since 3.0 * @access public * @param string $code Error code. * @param mixed $args Optional arguments for message formatting. * @throws \Exception Always throws an exception with the error message. */ public static function t( $code, $args = null ) { throw new \Exception( wp_kses_post( self::msg( $code, $args ) ) ); } /** * Translate an error to description * * Converts error codes to human-readable messages. * * @since 3.0 * @access public * @param string $code Error code. * @param mixed $args Optional arguments for message formatting. * @return string Translated error message. */ public static function msg( $code, $args = null ) { switch ( $code ) { case 'qc_setup_required': $msg = sprintf( __( 'You will need to finish %s setup to use the online services.', 'litespeed-cache' ), '<strong>QUIC.cloud</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 QUIC.cloud connection is set correctly', 'litespeed-cache' ); break; case 'unfinished_queue': $msg = __( 'There is proceeding queue not pulled yet.', 'litespeed-cache' ); break; case 0 === strpos( $code, 'unfinished_queue ' ): $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 QUIC.cloud connection is not correct. Please try to sync your QUIC.cloud connection 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 = [ '<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 %1$s! SQL: %2$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 0 === strpos( $code, 'try_later ' ): $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 ( null !== $args ) { $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; } }
Save