新增IYUU入口文件

This commit is contained in:
iyuu.cn
2020-01-18 20:13:06 +08:00
parent fd695e4209
commit f9592c6b0d
3 changed files with 18 additions and 12 deletions

View File

@ -3,8 +3,6 @@
// 公共入口文件
//----------------------------------
// 定义目录
use IYUU\AutoReseed;
defined('ROOT_PATH') or define("ROOT_PATH", __DIR__);
define('DS', DIRECTORY_SEPARATOR);
define('TORRENT_PATH', ROOT_PATH.DS.'torrent'.DS);
@ -37,14 +35,10 @@ if (file_exists(ROOT_PATH."/config/config.php")) {
// 示例配置
$configALL = require_once ROOT_PATH . '/config/config.sample.php';
}
require_once ROOT_PATH . '/vendor/autoload.php';
AutoReseed::init();
$hashArray = AutoReseed::get();
if (AutoReseed::$move != null) {
echo "种子移动完毕,请重新编辑配置,再尝试辅种! \n\n";
exit;
global $argv;
$start_file = str_replace("\\","/",trim($argv[0]));
if( substr($start_file,-8)==="init.php" ){
require_once __DIR__ . '/iyuu.php';
}
AutoReseed::call($hashArray);
AutoReseed::wechatMessage();