PHP 8.1.33
Preview: autoload.php Size: 672 B
/home/jambtst2015/public_html/cccng.org/wp-content/plugins/gdpr-framework/autoload.php

<?php

spl_autoload_register(function ($class) {
    // namespace prefix
    $prefix = 'Codelight\\GDPR\\';

    // check if this is a class from our project
    $len = strlen($prefix);
    if (strncmp($prefix, $class, $len) !== 0) {
        return; // nope, it isn't
    }

    // get the relative class name
    // remove the namespace name
    $className = substr($class, $len);

    // base directory of classes
    $baseDir = __DIR__ . '/src/';
    // relative including
    $file = $baseDir . str_replace('\\', DIRECTORY_SEPARATOR, $className) . '.php';

    // if the file exists, require it
    
    if (file_exists($file)) {
        require_once($file);
    }
});

Directory Contents

Dirs: 5 × Files: 6

Name Size Perms Modified Actions
assets DIR
- drwxr-xr-x 2024-12-30 07:14:41
Edit Download
images DIR
- drwxr-xr-x 2024-12-30 07:14:41
Edit Download
languages DIR
- drwxr-xr-x 2024-12-30 07:14:41
Edit Download
src DIR
- drwxr-xr-x 2024-12-30 07:14:41
Edit Download
views DIR
- drwxr-xr-x 2024-12-30 07:14:41
Edit Download
672 B lrw-r--r-- 2024-02-28 13:55:36
Edit Download
1.14 KB lrw-r--r-- 2024-02-28 13:55:36
Edit Download
8.03 KB lrw-r--r-- 2024-02-28 13:55:36
Edit Download
11.33 KB lrw-r--r-- 2024-02-28 13:55:36
Edit Download
31.79 KB lrw-r--r-- 2024-02-28 13:55:36
Edit Download
20.95 KB lrw-r--r-- 2024-02-28 13:55:36
Edit Download

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