update index.php.
This commit is contained in:
parent
bfe5663e2e
commit
69388d27a8
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
ini_set('user_agent', 'GeMCAPI/4.1.0 (GeMC API Sync 1.1.0;Release)');
|
||||
$active=array('mojang/launchermeta/mc/game/version_manifest.json');
|
||||
$active=array('mojang/launchermeta/mc/game/version_manifest.json','forge/last');
|
||||
$type=array('.com');
|
||||
//[0]:mojang
|
||||
function url_exists($url){
|
||||
@ -101,6 +101,10 @@ if($_GET['error']!=""){
|
||||
$dir='mojang/launchermeta/';
|
||||
check_file_update('mojang/launchermeta/mc/game/version_manifest.json',$dir,'http://launchermeta.mojang.com');
|
||||
}
|
||||
}elseif(strstr($_GET['path'],'forge/')!=False){//目录分组
|
||||
if(strstr($_GET['path'],'forge/last')!=False){
|
||||
check_file_update_adv('forge/last','https://download.mcbbs.net/forge/last','https://download.mcbbs.net/maven/net/minecraftforge/forge/1.7.10-10.13.0.1151/forge-1.7.10-10.13.0.1151-installer.jar');
|
||||
}
|
||||
}
|
||||
}else{//无需更新的文件,直接重定向
|
||||
if(strstr($_GET['path'],'forge/minecraft')!=False){//特殊返回目录
|
||||
|
Reference in New Issue
Block a user