%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /data/www_bck/varak.net_bck/stats.varak.net/
Upload File :
Create Path :
Current File : //data/www_bck/varak.net_bck/stats.varak.net/LegacyAutoloader.php

<?php

class LegacyAutoloader
{
    public function __construct()
    {
        spl_autoload_register(array($this, 'load_class'));
    }

    public static function register()
    {
        new LegacyAutoloader();
    }

    public function load_class($className)
    {
        if (strpos($className, 'Matomo\\') === 0) {
            $newName = 'Piwik' . substr($className, 6);
            if (class_exists($newName) && !class_exists($className, false)) {
                @class_alias($newName, $className);
            }
        } elseif (strpos($className, 'Piwik\\') === 0) {
            $newName = 'Matomo' . substr($className, 5);
            if (class_exists($newName) && !class_exists($className, false)) {
                @class_alias($newName, $className);
            }
        }
    }
}

LegacyAutoloader::register();

Zerion Mini Shell 1.0