mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 13:12:41 +00:00
db0bd18663
Language file format will almost certainly change
17 lines
No EOL
411 B
PHP
17 lines
No EOL
411 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace JKingWeb\NewsSync;
|
|
|
|
const BASE = __DIR__.DIRECTORY_SEPARATOR;
|
|
const NS_BASE = __NAMESPACE__."\\";
|
|
|
|
spl_autoload_register(function ($class) {
|
|
if($class=="SimplePie") return;
|
|
$file = str_replace("\\", DIRECTORY_SEPARATOR, $class);
|
|
$file = BASE."vendor".DIRECTORY_SEPARATOR.$file.".php";
|
|
if (file_exists($file)) {
|
|
require_once $file;
|
|
}
|
|
});
|
|
|
|
$conf = new Conf(); |