diff --git a/wizzardRedux/admin/onlinecheck.php b/wizzardRedux/admin/onlinecheck.php
index 81499d2..15e5da9 100644
--- a/wizzardRedux/admin/onlinecheck.php
+++ b/wizzardRedux/admin/onlinecheck.php
@@ -22,9 +22,7 @@ Notes:
- Vizzed Possible cookie usage
TODO: Retool existing onlinecheck.php files to follow the new format. 3) check code flow to try to optimize
-TODO: Most explode/implode can probably be changed to preg_match, just need to decipher them
TODO: Document all required GET and POST vars for each page
-TODO: Comment all of the code...
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)?
------------------------------------------------------------------------------------ */
@@ -45,6 +43,7 @@ foreach ($result as $item)
$dead = array(
"8BitChip",
"8BitCommodoreItalia",
+ "AcornPreservation",
"Atarimania",
"Cas2Rom",
"Import64",
@@ -55,10 +54,13 @@ $dead = array(
"smartlip",
);
+// If we don't have a source set, show the generic page
if (!isset($_GET["source"]))
{
echo "
Please Choose a Site
\n";
+ echo "Note: got to Apple2Online
\n";
+
// List all files, auto-generate links to proper pages
$files = scandir("../sites/", SCANDIR_SORT_NONE);
foreach ($files as $file)
@@ -71,7 +73,7 @@ if (!isset($_GET["source"]))
}
}
- // List all sites that don't have checkers
+ // List all sources that don't have checkers
echo "
Sites With No Checker
\n";
// Normalize the arrays because some names don't match 1:1
@@ -86,6 +88,8 @@ if (!isset($_GET["source"]))
$newfiles[] = strtolower($file);
}
$newfiles = str_replace(".php", "", $newfiles);
+
+ // Print out the source names with proper capitalization
foreach (array_diff($newsites, $newfiles) as $key => $site)
{
echo $sites[$key]." \n";
@@ -95,6 +99,7 @@ if (!isset($_GET["source"]))
die();
}
+/// If the checker requested doesn't exist, tell the user
elseif (!file_exists("../sites/".$_GET["source"].".php"))
{
echo "The file you supply must be in /sites/ ";
@@ -103,6 +108,7 @@ elseif (!file_exists("../sites/".$_GET["source"].".php"))
die();
}
+// Otherwise, we assume the soruce is good, and we attempt to load it
$source = $_GET["source"];
echo "
";
$query = get_data($newfile); // Read the whole page into one string
- $query = preg_replace('/(\s+)/',' ', $query); // Remove all whitespace
+ $query = preg_replace('/(\s+)/',' ', $query); // Replace all whitespace with a single space
$query = preg_replace('/(href=)("?)(\S+?)("?)(>)/','\1"\3"\5', $query); // Make sure all hrefs are quoted properly
+
$query = explode ('
";
+ echo "
Found new: ".$new.", old: ".$old."\n";
}
-echo "\n";
+echo "
";
-
-foreach($found as $row)
+foreach ($found as $row)
{
- print "".$row[1]."\n";
+ echo "".$row[1]." \n";
}
-print "
";
+echo " \n";
?>
\ No newline at end of file
diff --git a/wizzardRedux/sites/Apple2Online.php b/wizzardRedux/sites/Apple2Online.php
index f26d6d4..c944870 100644
--- a/wizzardRedux/sites/Apple2Online.php
+++ b/wizzardRedux/sites/Apple2Online.php
@@ -2,8 +2,6 @@
// Original code: The Wizard of DATz
-print "