mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-05-23 18:15:22 +00:00
新增IYUU入口文件
This commit is contained in:
parent
fd695e4209
commit
f9592c6b0d
14
init.php
14
init.php
@ -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();
|
||||
|
12
iyuu.php
Normal file
12
iyuu.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/init.php';
|
||||
use IYUU\AutoReseed;
|
||||
|
||||
AutoReseed::init();
|
||||
$hashArray = AutoReseed::get();
|
||||
if (AutoReseed::$move != null) {
|
||||
echo "种子移动完毕,请重新编辑配置,再尝试辅种! \n\n";
|
||||
exit;
|
||||
}
|
||||
AutoReseed::call($hashArray);
|
||||
AutoReseed::wechatMessage();
|
@ -6,7 +6,7 @@
|
||||
|beitai-备胎 | | 已完成 |
|
||||
|brobits | | |
|
||||
|btschool-学校 | | 已完成 |
|
||||
|chdbits-彩虹岛 | | |
|
||||
|chdbits-彩虹岛 | | 进行中 |
|
||||
|cnscg-圣城 | | 已删除 |
|
||||
|discfan-港知堂 | | |
|
||||
|dmhy-幼儿园 | | |
|
||||
@ -14,7 +14,7 @@
|
||||
|hd4fans-兽 | | |
|
||||
|hdarea-HDA | | |
|
||||
|hdbd-伊甸园 | | |
|
||||
|hdbug(hddisk) | | |
|
||||
|hdbug(hddisk) | | 已删除 |
|
||||
|hdchina-瓷器 | | 已完成 |
|
||||
|hdcity-城市 | | 已完成 |
|
||||
|hddolby-杜比 | | 已完成 |
|
||||
|
Loading…
x
Reference in New Issue
Block a user