mirror of
https://github.com/SabreTools/wizzardRedux.git
synced 2026-09-22 14:54:15 +00:00
Moving all files out of unnecessary subfolder
This commit is contained in:
101
sites/SatellaBlog.php
Normal file
101
sites/SatellaBlog.php
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
|
||||
// Original code: The Wizard of DATz
|
||||
|
||||
print "<pre>";
|
||||
|
||||
$murl = "http://superfamicom.org/blog/page/";
|
||||
|
||||
for ($x = 1; $x < 4; $x++)
|
||||
{
|
||||
$new = 0;
|
||||
$old = 0;
|
||||
|
||||
print "load: ".$murl.$x."\n";
|
||||
$query = get_data($murl.$x);
|
||||
$query = explode('<h2 class="posttitle"><a href="', $query);
|
||||
$query[0] = null;
|
||||
|
||||
foreach ($query as $row)
|
||||
{
|
||||
if ($row)
|
||||
{
|
||||
$url = explode('"', $row);
|
||||
$url = $url[0];
|
||||
$title = explode("</a>", $row);
|
||||
$title = explode(">", $title[0]);
|
||||
$title = $title[1];
|
||||
if (!$r_query[$url])
|
||||
{
|
||||
$found[] = array($url, $title);
|
||||
$new++;
|
||||
}
|
||||
else
|
||||
{
|
||||
$old++;
|
||||
}
|
||||
}
|
||||
}
|
||||
print "found new ".$new.", old ".$old."\n";
|
||||
}
|
||||
|
||||
print "<table><tr><td><pre>";
|
||||
|
||||
foreach($found as $row)
|
||||
{
|
||||
print $row[0]."\n";
|
||||
}
|
||||
|
||||
print "</td><td><pre>";
|
||||
|
||||
foreach ($found as $row)
|
||||
{
|
||||
print "<a href=\"".$row[0]."\" target=_blank>".$row[1]."</a>\n";
|
||||
}
|
||||
|
||||
print "</td></tr></table>";
|
||||
|
||||
$found = array();
|
||||
$murl = "http://superfamicom.org/blog/quick-rom-download-page/";
|
||||
$new = 0;
|
||||
$old = 0;
|
||||
|
||||
print "load: ".$murl."\n";
|
||||
$query = get_data($murl);
|
||||
$query = explode("<div class='wdgpo wdgpo_standard_count'>", $query);
|
||||
$query = explode('<div id="sidebar">', $query[1]);
|
||||
|
||||
$query = explode('<a href="', str_replace('>', '"', $query[0]));
|
||||
$query[0] = null;
|
||||
|
||||
foreach ($query as $row)
|
||||
{
|
||||
if ($row)
|
||||
{
|
||||
$url = explode('"', $row);
|
||||
$url = $url[0];
|
||||
if (!$r_query[$url])
|
||||
{
|
||||
$found[] = $url;
|
||||
$new++;
|
||||
}
|
||||
else
|
||||
{
|
||||
$old++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
print "found new ".$new.", old ".$old."\n";
|
||||
|
||||
print "<table><tr><td><pre>";
|
||||
|
||||
foreach ($found as $row)
|
||||
{
|
||||
print "<a href=\"".$row."\" target=_blank>".$row."</a>\n";
|
||||
}
|
||||
|
||||
print "</td></tr></table>";
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user