HEX
Server: LiteSpeed
System: Linux uk-fast-web1592.main-hosting.eu 5.14.0-611.24.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 22 07:12:43 EST 2026 x86_64
User: u499994370 (499994370)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: //usr/local/lsws/add-ons/webcachemgr/autoloader.php
<?php

/* * *********************************************
 * LiteSpeed Web Server Cache Manager
 * @Author: LiteSpeed Technologies, Inc. (https://www.litespeedtech.com)
 * @Copyright: (c) 2018
 * *******************************************
 */

spl_autoload_register(function($class) {
    /**
     * project-specific namespace prefix
     */
    $prefix = 'Lsc\\Wp\\';

    /**
     * base directory for the namespace prefix
     */
    $base_dir = __DIR__ . '/src/';

    $len = strlen($prefix);

    if ( strncmp($prefix, $class, $len) !== 0 ) {
        /**
         * Class use the namespace prefix,
         * move to the next registered autoloader.
         */
        return;
    }

    $relative_class_name = substr($class, $len);

    $file = $base_dir . str_replace('\\', '/', $relative_class_name) . '.php';

    if ( file_exists($file) ) {
        require $file;
    }
});