mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 17:28:55 +00:00
23 lines
367 B
PHP
23 lines
367 B
PHP
<?php
|
|
|
|
spl_autoload_register(
|
|
function ($className) {
|
|
$paths = [
|
|
NN_WWW . 'pages' . DS,
|
|
NN_WWW . 'pages' . DS . 'admin' . DS,
|
|
NN_WWW . 'pages' . DS . 'install' . DS,
|
|
];
|
|
|
|
foreach ($paths as $path) {
|
|
$spec = str_replace('\\', DS, $path . $className . '.php');
|
|
|
|
if (file_exists($spec)) {
|
|
require_once $spec;
|
|
break;
|
|
}
|
|
}
|
|
},
|
|
true
|
|
);
|
|
|
|
?>
|