= 5) OR time()-$lastVersions_e[0] >= 10) { debug('nextAPR check 1'); if (@fopen('http://assets.minecraft.net/'.$nextAPR.'/minecraft.jar', 'r')) { include_once('addrelease.php'); echo addRelease($nextAPR); exit(); } } // Check de la R if (true) { // if (time()-$lastVersions_e[0] >= 30){ if (@md5_file('http://s3.amazonaws.com/MinecraftDownload/minecraft.jar') != $lastVersions_e[2]) { debug('nextR check'); include_once('addrelease.php'); echo addRelease('r'); exit(); } } // Re-check de la derni�re APR 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.jar') != $lastVersions_e[4]) { include_once('addrelease.php'); echo addRelease($lastVersions_e[3]); exit(); } } $lastVersions_e[0] = time(); $lastVersions_f = fopen('lastVersions.txt', 'w'); fwrite($lastVersions_f, implode('|', $lastVersions_e)); fclose($lastVersions_f); echo implode('|', $lastVersions_e); ?>