14 lines
404 B
PHP
14 lines
404 B
PHP
|
<?php
|
||
|
|
||
|
spl_autoload_register(function ($classname) {
|
||
|
$pathname = __DIR__ . DIRECTORY_SEPARATOR;
|
||
|
$filename = str_replace('\\', DIRECTORY_SEPARATOR, $classname) . '.php';
|
||
|
if (file_exists($pathname . $filename)) {
|
||
|
$prefix = 'Fpdi';
|
||
|
if (stripos($classname, $prefix) === 0) {
|
||
|
include $pathname . $filename;
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
});
|