20 hours to read the goal of the station, you can modify their own, see how to get other stations, very simple.
chuanqi.php//Thieves
Copy Code code as follows:
?
Extract ($_get); extract ($_post);
$clinchurl = "http://www.haosf.com"; Target Station
$url = $clinchurl. $domain;
$fp = @fopen ($url, "R") or Die ("timeout");//To determine whether a Web page can be opened
$fcontents = file_get_contents ($url);
Echo $fcontents;
if (eregi (' Legendary server name </font></b></div></td> (. *) > Next </a></div></td> ', $ Fcontents, $regs))
{
The above (. *) is the content you want to get--a list of places
$clinch = "<table width=\" 1004\ "border=\" 0\ "align=\" Center\ "cellpadding=\" 5\ "cellspacing=\" 1\ "bgcolor=\" # Cccccc\ ">
<tr bgcolor=\ "#990000 \" >
<TD width=\ "96\" ><div align=\ "left\" ><b><font color=\ "#FFFFFF \" > Legendary server name </font></b ></div></td> ". $regs [1]." </a></div></td> ";
To get the content of the HTML padded and play by yourself
}//end IF
$clinch =str_replace ("<td width=" 1002 "valign=" Middle "align=" center "><p><a href=" http:// Www.4fid.com "></a></p>
<p><a href= "http://www.agdsf.com" target= "_blank" ></a></p></td> ', ' Your own ad ', $clinch);
A chain of str_replace that replaces unwanted items, such as advertisements or pictures.
?>
?
Include "lanmu.php"; Column list
?>
<iframe width=0 height=0 frameborder=0 scrolling=no src=http://your station. com/make.php?file=index.html ></iframe >
Update HTML pages with this judgment
<?= $clinch?>
?
Include "foot.php";
?>
make.php//Generate HTML. Cache
Copy Code code as follows:
?
Extract ($_get); extract ($_post);
$url = "http://xxxxxxx.com/chuanqi.php";
if (! $file) {$file = "index.html"; $url = "http://xxxxxxxxxxxx.com/chuanqi.php";}
* * To judge this $url statement to give $file different names-----------"generate different HTML names
Like what:
if ($file = "wow.html") {
$file is passed through the IFRAME when people visit HTML pages.
$url = "http://xxxxxx/wow.php"//corresponding dynamic page
}
*/
$path = $file;
$cache _filetime = Filemtime ($path);
if (Time ()-$cache _filetime <= 72000) {
* * The cache is not expire
echo "is not yet necessary to update";
}else{
$fp = @fopen ($url, "R") or Die ("timeout");//To determine whether a Web page can be opened
$fcontents = file_get_contents ($url);
$handle =fopen ($path, ' w '); Write Way Open Path
Fwrite ($handle, $fcontents); Write what you just replaced into the generated HTML file
Fclose ($handle);
echo "Done";
}
?>