mirror of
https://github.com/SabreTools/wizzardRedux.git
synced 2026-02-04 05:36:18 +00:00
50 lines
693 B
PHP
50 lines
693 B
PHP
<?php
|
|
|
|
// Original code: The Wizard of DATz
|
|
|
|
|
|
print "<pre>";
|
|
|
|
$newfiles = array(
|
|
'http://www.vdisk.cn/kamming07',
|
|
);
|
|
|
|
foreach ($newfiles as $newfile)
|
|
{
|
|
print "load ".$newfile."\n";
|
|
$query = get_data($newfile);
|
|
$query = explode("<div class='filename'><a href='/down/index/", $query);
|
|
$query[0] = null;
|
|
|
|
$old = 0;
|
|
$new = 0;
|
|
|
|
foreach ($query as $row)
|
|
{
|
|
if ($row)
|
|
{
|
|
$row = explode("'", $row);
|
|
$row = $row[0];
|
|
|
|
if ($r_query[$row])
|
|
{
|
|
$old++;
|
|
}
|
|
else
|
|
{
|
|
$found[] = $row;
|
|
$new++;
|
|
}
|
|
}
|
|
}
|
|
|
|
foreach ($found as $row)
|
|
{
|
|
print "<a href=http://www.vdisk.cn/down/index/".$row.">".$row."</a>\n";
|
|
}
|
|
|
|
print "found new:".$new.", old:".$old."\n\n";
|
|
}
|
|
|
|
|
|
?>
|