mirror of
https://github.com/SabreTools/wizzardRedux.git
synced 2026-07-08 18:06:15 +00:00
42 lines
894 B
PHP
42 lines
894 B
PHP
<?php
|
|
|
|
// Original code: The Wizard of DATz
|
|
|
|
// TODO: It's possible that this site needs credentials to sign in now
|
|
|
|
$r_query = array_flip($r_query);
|
|
$start = $r_query[0];
|
|
|
|
print "<pre>Search for new uploads\n\n";
|
|
|
|
for ($x = $start; $x < $start + 25; $x++)
|
|
{
|
|
print "<span style=\"display:none\" >";
|
|
$query = get_data("http://sonicresearch.org/forums/index.php?app=downloads&showfile=".$x);
|
|
print "</span>";
|
|
|
|
if ($query)
|
|
{
|
|
$gametitle = explode('<title>', $query);
|
|
$gametitle = explode(' - SSRG Forums</title>', $gametitle[1]);
|
|
var_dump($gametitle[0]);
|
|
die();
|
|
$gametitle = $gametitle[0];
|
|
print $x."\t<a href=http://sonicresearch.org/forums/index.php?app=downloads&module=display§ion=download&do=confirm_download&id=".$x.">".$gametitle."</a>\n";
|
|
|
|
$last = $x;
|
|
}
|
|
else
|
|
{
|
|
print $x."\terror\n";
|
|
}
|
|
}
|
|
|
|
if ($last)
|
|
{
|
|
$start = $last + 1;
|
|
}
|
|
|
|
print "\nnext startnr\t".$start;
|
|
|
|
?>
|