fpdi-cn/include.php

14 lines
404 B
PHP
Raw Permalink Normal View History

2025-06-03 01:21:14 +08:00
<?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;
});