$minID = 533; $maxID = 1020; for ($i=$minID;$i<=$maxID;$i++) { $file = 'page'.$i.'.htm'; if (file_exists($file)) { $input = implode('',file($file)); if (strpos($input,'automated requests from a computer')) { unlink($file); } } } if ($_GET['fetch']) { $count = 0; $timeout = 20000; $i = 0; while (file_exists('page'.$i.'.htm') || !$i) { $i = rand($minID,$maxID); $file = 'page'.$i.'.htm'; } echo $i.'-'; if (!file_exists($file)) { $input = implode('',file('http://216.239.59.104/search?q=cache:carl.pappenheim.net/d/'.$i)); if (strpos($input,'automated requests from a computer')) { echo 'busted-'.rand(3600,7200).'000'; } else { $time = rand(1,3).'000'; $fp = fopen($file,'w'); fwrite($fp,$input); fclose($fp); if (strpos($input,'did not match any documents')) { echo 'ff0000-'.$time; } else { echo '00ff00-'.$time; } } } exit; } ?>
> echo ''.$i.''; ?>
} ?>