mirror of
https://github.com/SabreTools/wizzardRedux.git
synced 2026-02-04 05:36:18 +00:00
58 lines
836 B
PHP
58 lines
836 B
PHP
<?php
|
|
|
|
// Original code: The Wizard of DATz
|
|
|
|
print "<pre>";
|
|
|
|
$newfiles = array(
|
|
'http://www.rufnoiz.com/Net%20Cat/ajlist1.html',
|
|
);
|
|
|
|
foreach ($newfiles as $newfile)
|
|
{
|
|
print "load ".$newfile."\n";
|
|
$query = get_data($newfile);
|
|
$query = explode('<a href="', str_replace('&', '&', $query));
|
|
$query[0] = null;
|
|
|
|
$old = 0;
|
|
$new = 0;
|
|
|
|
$dir = explode('/', $newfile);
|
|
$dir[count($dir) - 1] = null;
|
|
$dir = implode('/', $dir);
|
|
|
|
foreach ($query as $row)
|
|
{
|
|
if ($row)
|
|
{
|
|
$row = explode('"', $row);
|
|
$row = trim($row[0]);
|
|
|
|
if (substr($row, 0, 4) != 'http')
|
|
{
|
|
$row=$dir.$row;
|
|
}
|
|
|
|
if ($r_query[$row])
|
|
{
|
|
$old++;
|
|
}
|
|
else
|
|
{
|
|
$found[] = $row;
|
|
$new++;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
print "found new:".$new.", old:".$old."\n\n";
|
|
}
|
|
|
|
foreach ($found as $row)
|
|
{
|
|
print "<a href=\"".$row."\">".$row."</a>\n";
|
|
}
|
|
|
|
?>
|