mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-12-25 07:19:31 -05:00
14 lines
350 B
PHP
14 lines
350 B
PHP
<?php
|
|
|
|
spl_autoload_register(
|
|
function ($class) {
|
|
if (strpos($class, 'IPLib\\') !== 0) {
|
|
return;
|
|
}
|
|
$file = __DIR__ . DIRECTORY_SEPARATOR . 'src' . str_replace('\\', DIRECTORY_SEPARATOR, substr($class, strlen('IPLib'))) . '.php';
|
|
if (is_file($file)) {
|
|
require_once $file;
|
|
}
|
|
}
|
|
);
|