mirror of
https://github.com/SabreTools/wizzardRedux.git
synced 2026-07-15 05:14:39 +00:00
time marches on...
This commit is contained in:
@@ -15,6 +15,7 @@ TODO: Remember to replace GLOBALS GET and POST with the proper $_GET, $_POST
|
||||
TODO: Document all required GET and POST vars for each page
|
||||
TODO: Direct connect to EAB with FTP (ftp:any@ftp.grandis.nu)
|
||||
TODO: Comment all of the code...
|
||||
TODO: Remove external and import only
|
||||
*/
|
||||
|
||||
// Site whose checkers have been once-overed (not all checked for dead)
|
||||
@@ -61,13 +62,19 @@ $checked = array (
|
||||
"Demotopia",
|
||||
"DigitalDream",
|
||||
"DigitalDungeon",
|
||||
"DuncanTwain", // Empy checker page?
|
||||
"DuncanTwain", // Import only
|
||||
"EAB",
|
||||
"Edicolac64",
|
||||
"EludeVisibility",
|
||||
"ep128hu",
|
||||
"Fandal",
|
||||
"Gamebase64",
|
||||
"good", // Import only
|
||||
"GratisSaugen",
|
||||
"hackedroms",
|
||||
"heranbago",
|
||||
"HHUG",
|
||||
"i-mockery",
|
||||
);
|
||||
|
||||
if (!isset($_GET["source"]))
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
<?php
|
||||
|
||||
// Original code: The Wizard of DATz
|
||||
|
||||
print "<pre>";
|
||||
|
||||
$r_query=implode ('', file ($_GET["source"]."/ids.txt"));
|
||||
$r_query=explode ("\r\n","\r\n".$r_query);
|
||||
$r_query=array_flip($r_query);
|
||||
|
||||
$pages=Array(
|
||||
$pages = array(
|
||||
"http://www.gratissaugen.de/erbsen/c64dash.html",
|
||||
"http://www.gratissaugen.de/erbsen/liste.html",
|
||||
"http://www.gratissaugen.de/erbsen/plans.html",
|
||||
@@ -17,38 +16,41 @@ foreach ($pages as $page)
|
||||
{
|
||||
print "load ".$page."\n";
|
||||
|
||||
$content=implode ('', file ($page));
|
||||
$content=str_replace("\r\n",'',$content);
|
||||
$content=explode ('<a href="',$content);
|
||||
$content[0]=null;
|
||||
$content = implode('', file($page));
|
||||
$content = str_replace("\r\n", '', $content);
|
||||
$content = explode('<a href="', $content);
|
||||
$content[0] = null;
|
||||
|
||||
$URLs=Array();
|
||||
$new = 0;
|
||||
$old = 0;
|
||||
|
||||
$new=0;
|
||||
$old=0;
|
||||
$page = explode('/', $page);
|
||||
$page[count($page) - 1] = null;
|
||||
$page = implode('/', $page);
|
||||
|
||||
$page=explode ('/',$page);
|
||||
$page[count($page)-1]=null;
|
||||
$page=implode ('/',$page);
|
||||
|
||||
foreach($content as $row){
|
||||
if($row){
|
||||
$url=explode ('"',$row);
|
||||
$url=$url[0];
|
||||
$ext=explode('.',$url);
|
||||
foreach ($content as $row)
|
||||
{
|
||||
if ($row)
|
||||
{
|
||||
$url = explode('"', $row);
|
||||
$url = $url[0];
|
||||
$ext = explode('.', $url);
|
||||
|
||||
$url=$page.$url;
|
||||
$url = $page.$url;
|
||||
|
||||
if(count($ext)>1)
|
||||
if (count($ext) > 1)
|
||||
{
|
||||
$name=explode ('</a>',$row);
|
||||
$name=strip_tags('<a href="'.$name[0]);
|
||||
$name = explode('</a>', $row);
|
||||
$name = strip_tags('<a href="'.$name[0]);
|
||||
|
||||
if(!$r_query[$url]) {
|
||||
$URLs[]=Array($url,$name.".".$ext[count($ext)-1]);
|
||||
if (!$r_query[$url])
|
||||
{
|
||||
$found[] = array($url, $name.".".$ext[count($ext) - 1]);
|
||||
$new++;
|
||||
$r_query[$url]=true;
|
||||
} else {
|
||||
$r_query[$url] = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$old++;
|
||||
}
|
||||
}
|
||||
@@ -59,14 +61,14 @@ foreach ($pages as $page)
|
||||
|
||||
print "<table><tr><td><pre>";
|
||||
|
||||
foreach($URLs as $row)
|
||||
foreach($found as $row)
|
||||
{
|
||||
print $row[0]."\n";
|
||||
}
|
||||
|
||||
print "</td><td><pre>";
|
||||
|
||||
foreach($URLs as $row)
|
||||
foreach($found as $row)
|
||||
{
|
||||
print "<a href=\"".$row[0]."\" target=_blank>".$row[1]."</a>\n";
|
||||
}
|
||||
|
||||
@@ -1,46 +1,49 @@
|
||||
<?php
|
||||
|
||||
// Original code: The Wizard of DATz
|
||||
|
||||
print "<pre>";
|
||||
|
||||
$r_query=implode ('', file ($_GET["source"]."/ids.txt"));
|
||||
$r_query=explode ("\r\n","\r\n".$r_query);
|
||||
$r_query=array_flip($r_query);
|
||||
for ($x = 1; $x <= 10; $x++)
|
||||
{
|
||||
$new = 0;
|
||||
$old = 0;
|
||||
|
||||
$url = "http://hhug.me/?tags=dumps&page=".$x;
|
||||
|
||||
$URL_Array=array();
|
||||
print "load: ".$url."\n";
|
||||
|
||||
for($x=1;$x<=10;$x++)
|
||||
$query = implode('', file($url));
|
||||
$query = explode("<a href=\"uploads/dumps/", str_replace("\r\n", '', $query));
|
||||
$query[0] = null;
|
||||
foreach ($query as $row)
|
||||
{
|
||||
$new=0;
|
||||
$old=0;
|
||||
|
||||
$url= "http://hhug.me/?tags=dumps&page=".$x;
|
||||
|
||||
print "load: ".$url."\n";
|
||||
|
||||
$query=implode ('', file ($url));
|
||||
$query=explode("<a href=\"uploads/dumps/",str_replace("\r\n",'',$query));
|
||||
$query[0]=null;
|
||||
foreach($query as $row){
|
||||
if($row){
|
||||
$url=explode('"',$row);
|
||||
$url=$url[0];
|
||||
if(!$r_query[$url])
|
||||
{
|
||||
$URL_Array[]=$url;
|
||||
$new++;
|
||||
} else {
|
||||
$old++;
|
||||
}
|
||||
if ($row)
|
||||
{
|
||||
$url = explode('"', $row);
|
||||
$url = $url[0];
|
||||
if (!$r_query[$url])
|
||||
{
|
||||
$found[] = $url;
|
||||
$new++;
|
||||
}
|
||||
else
|
||||
{
|
||||
$old++;
|
||||
}
|
||||
}
|
||||
print "found new ".$new.", old ".$old."\n";
|
||||
|
||||
if(!$new&&!$old) break;
|
||||
}
|
||||
print "found new ".$new.", old ".$old."\n";
|
||||
|
||||
foreach($URL_Array as $row)
|
||||
if (!$new && !$old)
|
||||
{
|
||||
print "<a href=\"http://hhug.me/uploads/dumps/".$row."\" target=_blank>".$row."</a>\n";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($found as $row)
|
||||
{
|
||||
print "<a href=\"http://hhug.me/uploads/dumps/".$row."\" target=_blank>".$row."</a>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
// Original code: The Wizard of DATz
|
||||
|
||||
?>
|
||||
@@ -1,36 +1,53 @@
|
||||
<?php
|
||||
|
||||
$dirs=Array(
|
||||
// Original code: The Wizard of DATz
|
||||
|
||||
$dirs = array(
|
||||
'http://my.hacked.roms.free.fr/',
|
||||
);
|
||||
|
||||
$r_query=implode ('', file ($_GET["source"]."/ids.txt"));
|
||||
$r_query=explode ("\r\n","\r\n".$r_query);
|
||||
$r_query=array_flip($r_query);
|
||||
print "<pre>check folders:\n\n";
|
||||
|
||||
$newURLs=Array();
|
||||
foreach ($dirs as $dir)
|
||||
{
|
||||
listDir($dir);
|
||||
}
|
||||
|
||||
function listDir($dir){
|
||||
GLOBAL $newURLs, $r_query;
|
||||
print "\nnew urls:\n\n";
|
||||
|
||||
print "<table><tr><td><pre>";
|
||||
|
||||
foreach ($found as $url)
|
||||
{
|
||||
print "<a href=\"".$url."\">".$url."</a>\n";
|
||||
}
|
||||
|
||||
print "</td></tr></table>";
|
||||
|
||||
function listDir($dir)
|
||||
{
|
||||
GLOBAL $found, $r_query;
|
||||
|
||||
print "load: ".$dir."\n";
|
||||
|
||||
$query=implode ('', file ($dir));
|
||||
$query=explode('<a class="rom_lien" href="',$query);
|
||||
$query[0]=null;
|
||||
$query = implode('', file($dir));
|
||||
$query = explode('<a class="rom_lien" href="', $query);
|
||||
$query[0] = null;
|
||||
|
||||
$new=0;
|
||||
$old=0;
|
||||
$new = 0;
|
||||
$old = 0;
|
||||
|
||||
foreach($query as $row){
|
||||
if($row){
|
||||
$url=explode('"',$row);
|
||||
$url=$url[0];
|
||||
foreach ($query as $row)
|
||||
{
|
||||
if ($row)
|
||||
{
|
||||
$url = explode('"', $row);
|
||||
$url = $url[0];
|
||||
|
||||
|
||||
if(!$r_query[$url])
|
||||
if (!$r_query[$url])
|
||||
{
|
||||
$newURLs[]=$url;
|
||||
$found[] = $url;
|
||||
$new++;
|
||||
}
|
||||
else
|
||||
@@ -44,22 +61,5 @@ function listDir($dir){
|
||||
print "new: ".$new.", old: ".$old."\n";
|
||||
}
|
||||
|
||||
print "<pre>check folders:\n\n";
|
||||
|
||||
foreach($dirs as $dir)
|
||||
{
|
||||
listDir($dir);
|
||||
}
|
||||
|
||||
print "\nnew urls:\n\n";
|
||||
|
||||
print "<table><tr><td><pre>";
|
||||
|
||||
foreach($newURLs as $url)
|
||||
{
|
||||
print "<a href=\"".$url."\">".$url."</a>\n";
|
||||
}
|
||||
|
||||
print "</td></tr></table>";
|
||||
|
||||
?>
|
||||
@@ -1,42 +1,47 @@
|
||||
<?php
|
||||
|
||||
// Original code: The Wizard of DATz
|
||||
|
||||
print "<pre>";
|
||||
|
||||
$r_query=implode ('', file ($_GET["source"]."/ids.txt"));
|
||||
$r_query=explode ("\r\n","\r\n".$r_query);
|
||||
$r_query=array_flip($r_query);
|
||||
|
||||
$newfiles=Array(
|
||||
$newfiles = array(
|
||||
'http://heranbago.com/hax/hax/hack.htm',
|
||||
'http://sonar.heranbago.com/top.html',
|
||||
);
|
||||
|
||||
$found = Array();
|
||||
|
||||
foreach($newfiles as $newfile){
|
||||
foreach ($newfiles as $newfile)
|
||||
{
|
||||
print "load ".$newfile."\n";
|
||||
$query=implode ('', file ($newfile));
|
||||
$query=explode ('<a href="', str_replace('&','&',$query));
|
||||
$query[0]=null;
|
||||
$query = implode('', file($newfile));
|
||||
$query = explode('<a href="', str_replace('&', '&', $query));
|
||||
$query[0] = null;
|
||||
|
||||
$old=0;
|
||||
$new=0;
|
||||
$old = 0;
|
||||
$new = 0;
|
||||
|
||||
$dir=explode ('/', $newfile);
|
||||
$dir[count($dir)-1]=null;
|
||||
$dir=implode ('/', $dir);
|
||||
$dir = explode('/', $newfile);
|
||||
$dir[count($dir) - 1] = null;
|
||||
$dir = implode('/', $dir);
|
||||
|
||||
foreach($query as $row){
|
||||
if($row){
|
||||
$row=explode ('"', $row);
|
||||
$row=trim($row[0]);
|
||||
foreach ($query as $row)
|
||||
{
|
||||
if ($row)
|
||||
{
|
||||
$row = explode('"', $row);
|
||||
$row = trim($row[0]);
|
||||
|
||||
if(substr($row, 0, 4)!='http') $row=$dir.$row;
|
||||
if (substr($row, 0, 4) != 'http')
|
||||
{
|
||||
$row = $dir.$row;
|
||||
}
|
||||
|
||||
if($r_query[$row])
|
||||
if ($r_query[$row])
|
||||
{
|
||||
$old++;
|
||||
}else{
|
||||
$found[]=$row;
|
||||
}
|
||||
else
|
||||
{
|
||||
$found[] = $row;
|
||||
$new++;
|
||||
}
|
||||
}
|
||||
@@ -46,8 +51,9 @@ foreach($newfiles as $newfile){
|
||||
print "found new:".$new.", old:".$old."\n\n";
|
||||
}
|
||||
|
||||
foreach($found as $row){
|
||||
print "<a href=\"".$row."\">".$row."</a>\n";
|
||||
}
|
||||
foreach ($found as $row)
|
||||
{
|
||||
print "<a href=\"".$row."\">".$row."</a>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -1,36 +1,52 @@
|
||||
<?php
|
||||
|
||||
$dirs=Array(
|
||||
// Original code: The Wizard of DATz
|
||||
|
||||
$dirs = array(
|
||||
'http://www.i-mockery.com/romhacks/',
|
||||
);
|
||||
|
||||
$r_query=implode ('', file ($_GET["source"]."/ids.txt"));
|
||||
$r_query=explode ("\r\n","\r\n".$r_query);
|
||||
$r_query=array_flip($r_query);
|
||||
print "<pre>check folders:\n\n";
|
||||
|
||||
$newURLs=Array();
|
||||
foreach ($dirs as $dir)
|
||||
{
|
||||
listDir($dir);
|
||||
}
|
||||
|
||||
function listDir($dir){
|
||||
GLOBAL $newURLs, $r_query;
|
||||
print "\nnew urls:\n\n";
|
||||
|
||||
print "<table><tr><td><pre>";
|
||||
|
||||
foreach ($found as $url)
|
||||
{
|
||||
print "<a href=\"".$url."\">".$url."</a>\n";
|
||||
}
|
||||
|
||||
print "</td></tr></table>";
|
||||
|
||||
function listDir($dir)
|
||||
{
|
||||
GLOBAL $found, $r_query;
|
||||
|
||||
print "load: ".$dir."\n";
|
||||
|
||||
$query=implode ('', file ($dir));
|
||||
$query=explode('<td valign="top"><a href="',$query);
|
||||
$query[0]=null;
|
||||
$query = implode('', file($dir));
|
||||
$query = explode('<td valign="top"><a href="', $query);
|
||||
$query[0] = null;
|
||||
|
||||
$new=0;
|
||||
$old=0;
|
||||
$new = 0;
|
||||
$old = 0;
|
||||
|
||||
foreach($query as $row){
|
||||
if($row){
|
||||
$url=explode('"',$row);
|
||||
$url=$url[0];
|
||||
foreach ($query as $row)
|
||||
{
|
||||
if ($row)
|
||||
{
|
||||
$url = explode('"', $row);
|
||||
$url = $url[0];
|
||||
|
||||
|
||||
if(!$r_query[$url])
|
||||
if (!$r_query[$url])
|
||||
{
|
||||
$newURLs[]=$url;
|
||||
$found[] = $url;
|
||||
$new++;
|
||||
}
|
||||
else
|
||||
@@ -44,22 +60,4 @@ function listDir($dir){
|
||||
print "new: ".$new.", old: ".$old."\n";
|
||||
}
|
||||
|
||||
print "<pre>check folders:\n\n";
|
||||
|
||||
foreach($dirs as $dir)
|
||||
{
|
||||
listDir($dir);
|
||||
}
|
||||
|
||||
print "\nnew urls:\n\n";
|
||||
|
||||
print "<table><tr><td><pre>";
|
||||
|
||||
foreach($newURLs as $url)
|
||||
{
|
||||
print "<a href=\"".$url."\">".$url."</a>\n";
|
||||
}
|
||||
|
||||
print "</td></tr></table>";
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user