17 lines
237 B
PHP
Executable file
17 lines
237 B
PHP
Executable file
<?php
|
|
|
|
spl_autoload_register(function($class){
|
|
$path = __DIR__;
|
|
|
|
$l = explode("\\", $class);
|
|
|
|
foreach($l as $part){
|
|
|
|
$path .= DIRECTORY_SEPARATOR . $part;
|
|
}
|
|
|
|
if(file_exists($path . ".php")){
|
|
include_once($path . ".php");
|
|
}
|
|
});
|