Version 2 trouvée

This commit is contained in:
Geoffrey Frogeye 2017-04-05 08:40:30 +02:00
parent 54c24457e9
commit bba4b09ee9
6 changed files with 425 additions and 440 deletions

View file

@ -50,7 +50,7 @@ if (substr($lastVersions_e[3], 0, 2) == substr(date('Y'), 2, 2) AND substr($last
if (true) {
// if (((date('D') == 'Thu') AND $nextAPR_firstOfWeek AND time()-$lastVersions_e[0] >= 5) OR time()-$lastVersions_e[0] >= 10) {
debug('nextAPR check 1');
if (@fopen('http://assets.minecraft.net/'.$nextAPR.'/minecraft.zip', 'r')) {
if (@fopen('http://assets.minecraft.net/'.$nextAPR.'/minecraft.jar', 'r')) {
include_once('addrelease.php');
echo addRelease($nextAPR);
exit();
@ -70,7 +70,7 @@ if (true) {
if (true) {
//if ((time()-$lastVersions_e[0] <= 20 AND !$nextAPR_firstOfWeek) OR (time()-$lastVersions_e[0] >= 60)) {
debug('lastAPR re-check');
if (@md5_file('http://assets.minecraft.net/'.$lastVersions_e[3].'/minecraft.zip') != $lastVersions_e[4]) {
if (@md5_file('http://assets.minecraft.net/'.$lastVersions_e[3].'/minecraft.jar') != $lastVersions_e[4]) {
include_once('addrelease.php');
echo addRelease($lastVersions_e[3]);
exit();