If you read the target site once every 20 hours, you can modify it by yourself. You can see how to get it from other sites. It's very easy.
Chuanqi. php // thief
Copy codeThe Code is as follows:
<?
Extract ($ _ GET); extract ($ _ POST );
$ Clinchurl = "http://www.haosf.com"; // target site
$ Url = $ clinchurl. $ domain;
$ Fp = @ fopen ($ url, "r") or die ("timeout"); // determine whether a webpage can be opened
$ Fcontents = file_get_contents ($ url );
// Echo $ fcontents;
If (eregi ('legend server name </font> </B> </div> </td> (. *)> next page </a> </div> </td> ', $ fcontents, $ regs ))
{
// The above (. *) is the content you want-the location of the List
$ 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 \"> legend server name </font> </B> </div> </td> ". $ regs [1]. "</a> </div> </td> ";
// Complete the html of the obtained content and use it 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 ads', $ clinch );
// A series of str_replace commands to replace unwanted items, such as advertisements or images
?>
<?
Include "lanmu. php"; // column list
?>
<Iframe width = 0 height = 0 frameborder = 0 scrolling = no src = http: // your website. com/make. php? File1_index.html> </iframe>
// Use this judgment to update the html page
<? = $ Clinch?>
<?
Include "foot. php ";
?>
Make. php // generate html. Cache
Copy codeThe Code is as follows:
<?
Extract ($ _ GET); extract ($ _ POST );
$ Url = "http://xxxxxxx.com/chuanqi.php ";
If (! $ File) {$ file = "index.html"; $ url = "http://xxxxxxxxxxxx.com/chuanqi.php ";}
/* Add the $ url statement to give $ file different names ----------- to generate different html names.
For example:
If ($ file = "wow.html "){
// $ File is transmitted by iframe when people access html pages.
$ Url = "http: // xxxxxx/wow. php" // corresponding dynamic page
}
*/
$ Path = $ file;
$ Cache_filetime = filemtime ($ path );
When (time ()-$ cache_filetime <= 72000 ){
// ** The cache is not expire
Echo "no updates required ";
} Else {
$ Fp = @ fopen ($ url, "r") or die ("timeout"); // determine whether a webpage can be opened
$ Fcontents = file_get_contents ($ url );
$ Handle = fopen ($ path, 'w'); // write mode open path
Fwrite ($ handle, $ fcontents); // write the replaced content into the generated HTML file.
Fclose ($ handle );
Echo "done ";
}
?>