update index.php.
This commit is contained in:
parent
75d0a579dc
commit
7a49fe0608
@ -150,8 +150,10 @@ if($_GET['error']!=""){
|
|||||||
if($_GET['path']=='forge/minecraft'){
|
if($_GET['path']=='forge/minecraft'){
|
||||||
check_file_update_adv('forge/minecraft/index.json','https://download.mcbbs.net/forge/minecraft','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');
|
check_file_update_adv('forge/minecraft/index.json','https://download.mcbbs.net/forge/minecraft','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{
|
}else{
|
||||||
check_file_update_adv($_GET['path'],'https://download.mcbbs.net/'.$_GET['path'],'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');
|
check_file_update_adv($_GET['path'].'/index.json','https://download.mcbbs.net/'.$_GET['path'],'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');
|
||||||
}
|
}
|
||||||
|
}elseif(strstr($_GET['path'],'forge/download')!=False){//forge/download目录特殊同步
|
||||||
|
check_file_update_adv($_GET['path'].'/index.jar','https://download.mcbbs.net/'.$_GET['path'],'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{
|
}else{
|
||||||
download_file('https://download.mcbbs.net/'.$_GET['path'],$_GET['path'],'');
|
download_file('https://download.mcbbs.net/'.$_GET['path'],$_GET['path'],'');
|
||||||
header('Content-Disposition: attachment; filename="'.basename($_GET['path']).'"');
|
header('Content-Disposition: attachment; filename="'.basename($_GET['path']).'"');
|
||||||
|
Reference in New Issue
Block a user