mirror of
https://github.com/SabreTools/wizzardRedux.git
synced 2026-07-09 02:16:20 +00:00
Clean up c64rulez online checker
This commit is contained in:
@@ -29,7 +29,7 @@ TODO: Document all required GET and POST vars for each page
|
||||
TODO: VideopacNL uses a cookie to be able to access the board. This means you need to log in to the site and then copy the cookie as a param
|
||||
TODO: Can we run all online checks in a coherent way (in series, that is)?
|
||||
TODO: Once all checkers are certainly using the new table and found format, standardize $found and move to this file
|
||||
TODO: Last updated - C64intros
|
||||
TODO: Last updated - c64rulez
|
||||
------------------------------------------------------------------------------------ */
|
||||
|
||||
ini_set('max_execution_time', 0); // Set the execution time to infinite. This is a bad idea in production.
|
||||
@@ -50,8 +50,8 @@ $dead = array(
|
||||
"8BitCommodoreItalia",
|
||||
"AcornPreservation",
|
||||
"Atarimania",
|
||||
"Cas2Rom",
|
||||
"c64gamescom",
|
||||
"Cas2Rom",
|
||||
"Import64",
|
||||
"Konamito",
|
||||
"m3Zz",
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
// Original code: The Wizard of DATz
|
||||
|
||||
print "<pre>";
|
||||
|
||||
$newfiles = array (
|
||||
'http://c64.rulez.org/pub/c64.hu/NEWFILES.txt',
|
||||
'http://c64.rulez.org/pub/c64/NEWFILES.txt',
|
||||
@@ -12,14 +10,14 @@ $newfiles = array (
|
||||
'http://c64.rulez.org/pub/c128/NEWFILES.txt',
|
||||
);
|
||||
|
||||
echo "<table>\n";
|
||||
foreach ($newfiles as $newfile)
|
||||
{
|
||||
print "load ".$newfile."\n";
|
||||
echo "<tr><td>".$newfile."</td>";
|
||||
$query = get_data($newfile);
|
||||
$query = explode("\n", $query);
|
||||
$dir = explode("/", $newfile);
|
||||
$dir[count($dir) - 1] = null;
|
||||
$dir = implode("/", $dir);
|
||||
|
||||
preg_match_all("/^(\S.*\/.*\.\S+)$/m", $query, $query);
|
||||
$query = $query[1];
|
||||
|
||||
$old = 0;
|
||||
$new = 0;
|
||||
@@ -32,12 +30,25 @@ foreach ($newfiles as $newfile)
|
||||
}
|
||||
else
|
||||
{
|
||||
print "<a href=\"".$dir.$row."\">".$row."</a>\n";
|
||||
$found[] = array($row, $dir.$row);
|
||||
$new++;
|
||||
}
|
||||
}
|
||||
|
||||
print "found new:".$new.", old:".$old."\n\n";
|
||||
echo "<td>Found new: ".$new.", old: ".$old."</tr>\n";
|
||||
}
|
||||
echo "</table>\n";
|
||||
|
||||
if (sizeof($found) > 0)
|
||||
{
|
||||
echo "<h2>New files:</h2>";
|
||||
}
|
||||
|
||||
foreach ($found as $row)
|
||||
{
|
||||
echo "<a href='".$row[1]."'>".$row[0]."</a><br/>\n";
|
||||
}
|
||||
|
||||
echo "<br/>\n";
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user