PHP 8.2.31
Preview: autoload.php Size: 702 B
//home/nshryvcy/blissfulnepal.com/wp-content/plugins/tourmaster/include/paymill/autoload.php

<?php

function goodlayers_paymill_autoload($className)
{
    $prefix = 'Paymill\\';
    $len = strlen($prefix);
    if (strncmp($prefix, $className, $len) !== 0) {
        return;
    }

    $className = ltrim($className, "\\");
    $fileName  = '';
    $namespace = '';
    if ($lastNsPos = strripos($className, "\\")) {
        $namespace = substr($className, 0, $lastNsPos);
        $className = substr($className, $lastNsPos + 1);
        $fileName  = str_replace("\\", DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;
    }
    $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';

    require 'lib/'.$fileName;
}

spl_autoload_register('goodlayers_paymill_autoload');

Directory Contents

Dirs: 1 × Files: 2

Name Size Perms Modified Actions
lib DIR
- drwxr-xr-x 2024-05-28 15:48:42
Edit Download
702 B lrw-r--r-- 2024-05-28 15:48:43
Edit Download
10.80 KB lrw-r--r-- 2024-05-28 15:48:43
Edit Download

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