"; print "load full\n"; print "load updates\n"; /* if ($_GET["type"] == "updates") { $full_query = implode('', file("../sites/".$source."_full.txt")); $full_query = explode("\r\n","\r\n".$full_query); $full_query = array_flip($full_query); $fullURLs = array( "/gamebasecpc/index.php?page=majlast", "/gamebasecpc/index.php?page=full", ); foreach ($fullURLs as $fullURL) { $new = 0; $old = 0; print "load :".$fullURL."\n"; $query = get_data("http://www.cpc-power.com".$fullURL); $query = explode('   ".$row[0]."\n"; $new++; } else { $old++; } } } print "found new ".$new.", old ".$old."\n"; } sleep(1); } */ if ($_GET["type"] == "updates") { $u_query = get_data("http://www.cpc-power.com/index.php?page=accueil"); $u_query = explode('&num=', $u_query); array_splice($u_query, 0, 1); } elseif ($_GET["type"] == "full") { $u_query = array(); if ($_GET["start"]) { $start = $_GET["start"]; } else { $start = 1; } $max = get_data("http://www.cpc-power.com/index.php?page=detail&num=1"); $max = explode('index.php?page=detail&num=', $max); $max = explode("'", $max[3]); $max = $max[0]; for ($x = $start; $x <= $max && $x < $start + 1000; $x++) { $u_query[] = $x; } } if ($u_query) { foreach ($u_query as $u_page) { //sleep(1); $u_page = explode('"', $u_page); $u_page = $u_page[0]; $dir = "http://www.cpc-power.com/index.php?page=detail&onglet=dumps&num=".$u_page; $query = get_data($dir); $query = explode('images/elementpart.gif', $query); array_splice($query, 0, 1); $new = 0; $old = 0; $error = 0; print "load ".$u_page."\n"; foreach ($query as $row) { $url = explode('HexaDump.php?', $row); $url = explode('"', $url[1]); $url = $url[0]; $crc = explode('CRC:', $row); $crc = explode(']', $crc[1]); $crc = $crc[0]; $name = explode(';return false;">', $row); $name = explode('<', $name[1]); $name = $name[0]; if (!$r_query[$crc]) { if (!$url) { $error++; } else { print "found ".$crc." # ".$name." # ".$url."\n"; $found[] = array($url, $name, $crc); $r_query[$crc] = true; $new++; } } else { $old++; } } print "result old:".$old." new:".$new." error:".$error."\n"; } } print "
";

foreach ($found as $row)
{
	print $row[2]."\n";
}

print "
";

foreach ($found as $row)
{
	print "".$row[1]."\n";
}

print "
"; if ($_GET["type"] == "full" && $max > $start+1000) { print"\nnext ".($start+1000)."\n "; } ?>