You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
482 B
24 lines
482 B
<?php
|
|
|
|
spl_autoload_register(function($class) {
|
|
|
|
$classPath = str_replace('Lychee\\', '', $class);
|
|
$classPath = str_replace('\\', DIRECTORY_SEPARATOR, $classPath);
|
|
|
|
$file = LYCHEE . 'php/' . $classPath . '.php';
|
|
|
|
if (file_exists($file)===true) require $file;
|
|
|
|
});
|
|
|
|
spl_autoload_register(function($class) {
|
|
|
|
$classPath = str_replace('\\', DIRECTORY_SEPARATOR, $class);
|
|
|
|
$file = LYCHEE . 'plugins/' . $classPath . '.php';
|
|
|
|
if (file_exists($file)===true) require $file;
|
|
|
|
});
|
|
|
|
?>
|