include.php 404 B

1234567891011121314
  1. <?php
  2. spl_autoload_register(function ($classname) {
  3. $pathname = __DIR__ . DIRECTORY_SEPARATOR;
  4. $filename = str_replace('\\', DIRECTORY_SEPARATOR, $classname) . '.php';
  5. if (file_exists($pathname . $filename)) {
  6. $prefix = 'Fpdi';
  7. if (stripos($classname, $prefix) === 0) {
  8. include $pathname . $filename;
  9. return true;
  10. }
  11. }
  12. return false;
  13. });