Warning: Undefined array key "yPBFjS" in /home/ic3/domains/ic3.info/public_html/wp-includes/kses.php on line 1
HEX
HEX
Server: LiteSpeed
System: Linux control5.webnow.vn 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: ic3 (1169)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/ic3/public_html/wp-content/plugins/wn-source-protector/includes/Autoloader.php
<?php

if (!defined('ABSPATH')) {
    exit;
}

class WNSP_Autoloader
{
    private static $classes = array(
        'WNSP_SessionManager' => 'classes/SessionManager.php',
        'WNSP_AccessController' => 'classes/AccessController.php',
        'WNSP_StudyCountManager' => 'classes/StudyCountManager.php',
        'WNSP_LoginRenderer' => 'classes/LoginRenderer.php',
    );

    public static function init()
    {
        spl_autoload_register(array(__CLASS__, 'load'));
    }

    public static function load($class)
    {
        if (isset(self::$classes[$class])) {
            $file = dirname(__FILE__) . '/' . self::$classes[$class];
            if (file_exists($file)) {
                require_once $file;
            }
        }
    }

    public static function load_all_classes()
    {
        foreach (self::$classes as $class => $file) {
            $full_path = dirname(__FILE__) . '/' . $file;
            if (file_exists($full_path)) {
                require_once $full_path;
            }
        }
    }
}