2016-09-27 13:00:02 +00:00
|
|
|
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace JKingWeb\NewsSync;
|
|
|
|
|
|
|
|
const BASE = __DIR__.DIRECTORY_SEPARATOR;
|
2016-09-30 01:58:09 +00:00
|
|
|
const NS_BASE = __NAMESPACE__."\\";
|
2016-09-27 13:00:02 +00:00
|
|
|
|
2016-10-02 21:07:17 +00:00
|
|
|
if(!defined(NS_BASE."INSTALL")) define(NS_BASE."INSTALL", false);
|
|
|
|
|
2016-09-27 13:00:02 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2016-10-02 21:07:17 +00:00
|
|
|
$data = new RuntimeData(new Conf());
|