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
?
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
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";
}
?>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.