HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/adnkronos/vendor/autoload.php
<?php

namespace Adnkronos;

class AutoLoader {
    static function register($prefix, $basedir) {
        spl_autoload_register(function ($class) use ($prefix, $basedir) {
            if(strncmp($prefix, $class, strlen($prefix)) !== 0) {
                return;
            }

            $relative_class = substr($class, strlen($prefix));
            $file = $basedir . DIRECTORY_SEPARATOR . str_replace('\\', '/', $relative_class) . '.php';

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

    static function bootstrap() {
        $ds = DIRECTORY_SEPARATOR;
        self::register('AdnKronos\\Psr\\Log\\', __DIR__ . "{$ds}Psr{$ds}Log");
        self::register('AdnKronos\\Katzgrau\\KLogger\\', __DIR__ . "{$ds}Katzgrau{$ds}KLogger");
    }
}