mirror of
https://github.com/SabreTools/wizzardRedux.git
synced 2026-02-04 05:36:18 +00:00
53 lines
869 B
PHP
53 lines
869 B
PHP
<?php
|
|
|
|
// Original code: The Wizard of DATz
|
|
|
|
print "<pre>";
|
|
|
|
$newfiles = array(
|
|
'http://pokemon-gba.wen.ru/original-version.html',
|
|
'http://pokemon-gba.wen.ru/hacked-version.html',
|
|
);
|
|
|
|
foreach ($newfiles as $newfile)
|
|
{
|
|
print "load ".$newfile."\n";
|
|
$query = get_data($newfile);
|
|
$query = explode('<a href="/gba/', $query);
|
|
$query[0] = null;
|
|
|
|
$old = 0;
|
|
$new = 0;
|
|
|
|
foreach ($query as $row)
|
|
{
|
|
if ($row)
|
|
{
|
|
$dl = explode('"', $row);
|
|
$dl = $dl[0];
|
|
$title = explode('</a', $row);
|
|
$title = explode('>', $title[0]);
|
|
$title = trim($title[count($title) - 1]);
|
|
|
|
if ($r_query[$title])
|
|
{
|
|
$old++;
|
|
}
|
|
else
|
|
{
|
|
$found[] = array($dl, $title);
|
|
$new++;
|
|
}
|
|
}
|
|
}
|
|
|
|
foreach ($found as $row)
|
|
{
|
|
print "<a href=\"http://pokemon-gba.wen.ru/gba/".$row[0]."\">".$row[1]."</a>\n";
|
|
}
|
|
|
|
print "found new:".$new.", old:".$old."\n\n";
|
|
}
|
|
|
|
|
|
?>
|