Files
wizzardRedux/sites/smartlip.php

50 lines
813 B
PHP
Raw Permalink Normal View History

<?php
2016-02-26 10:29:11 -08:00
// Original code: The Wizard of DATz
2016-02-26 10:29:11 -08:00
print "<pre>";
2016-02-26 10:29:11 -08:00
for ($x = 1; $x < 100; $x++)
{
2016-02-26 10:29:11 -08:00
$new = 0;
$old = 0;
2016-02-26 10:29:11 -08:00
$page = "http://smartlip.com/symbian/flist.php?cat=roms/&sort=date&red=&b=".$x;
print "load ".$page."\n";
2016-03-01 15:51:36 -08:00
$query = get_data($page);
2016-02-26 10:29:11 -08:00
$query = explode('download.php?file=', str_replace('&amp;', '&', $query));
array_splice($query, 0, 1);
2016-02-26 10:29:11 -08:00
foreach ($query as $row)
{
2016-02-26 10:29:11 -08:00
$DL = explode("'", $row);
$DL = $DL[0];
2016-02-26 10:29:11 -08:00
if (!$r_query[$DL])
{
2016-02-26 10:29:11 -08:00
$found[] = $DL;
$new++;
2016-02-26 10:29:11 -08:00
$r_query[$DL] = true;
}
else
{
$old++;
2016-02-26 10:29:11 -08:00
$x = 100;
}
}
print "new: ".$new.", old: ".$old."\n";
}
print "\nnew urls:\n\n";
print "<table><tr><td><pre>";
2016-02-26 10:29:11 -08:00
foreach ($found as $url)
{
print "<a href=\"http://smartlip.com/symbian/download.php?file=".$url."\">".$url."</a>\n";
}
print "</td></tr></table>";
?>