PHP 8.2.31
Preview: autoloader.php Size: 885 B
//proc/thread-self/root/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;
    }
});

Directory Contents

Dirs: 1 × Files: 5

Name Size Perms Modified Actions
src DIR
- drwxrwxr-x 2026-05-26 17:51:34
Edit Download
885 B lrw-rw-r-- 2026-05-26 17:51:34
Edit Download
513 B lrw-rw-r-- 2026-05-26 17:51:34
Edit Download
746 B lrw-rw-r-- 2026-05-26 17:51:34
Edit Download
7 B lrw-r--r-- 2026-06-10 09:16:38
Edit Download
6 B lrw-rw-r-- 2026-05-26 17:51:34
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).