php+txt淘宝客超精简版
php+txt淘宝客超精简版 br / 压缩后文件大小为4.8 KB br / 下载后,简单配置common.php文件一下,就可以直接使用了 br / 超快速建站,建立无数的淘宝客站 br / 演示地址: a target=_blank href=http://tao.1
php+txt淘宝客超精简版
压缩后文件大小为4.8 KB
下载后,简单配置common.php文件一下,就可以直接使用了
超快速建站,建立无数的淘宝客站
演示地址:
http://www.ddung.org/tao/
完整代码下载地址: http://www.ctdisk.com/file/3633521
有问题请咨询Q:756663992
压缩后文件大小为4.8 KB
下载后,简单配置common.php文件一下,就可以直接使用了
超快速建站,建立无数的淘宝客站
演示地址:
http://www.ddung.org/tao/
完整代码下载地址: http://www.ctdisk.com/file/3633521
有问题请咨询Q:756663992
<?php
//部分代码如下
include('common.php');
include('function.php');
$urlhead=file("urlhead.txt");
if(URL_END){
$cacheurl='cache/'.md5(URL_END).".txt"; $nowtype=substr(URL_END,5,1);
$mailurl=trim($urlhead[$nowtype]).str_replace('/html'.$nowtype."/",'',URL_END);
}else{
$cacheurl='cache/'.md5("index").".txt";
$mailurl=INDEX_URL;
}
if(!file_exists($cacheurl) || (filemtime($cacheurl) + CACHE_DATA) < time() ){
$index_content=curl_file_get_contents($mailurl,1);
//规格替换
foreach($urlhead as $key =>$v)
{ $str_qian[]=trim($v);
$str_hou[]=WEB_PATH."index.php/html".$key."/";
}
$body=str_replace($str_qian,$str_hou,$index_content);
$strqian=array('</title>','mm_0_','</body>','</html>','http://s.click.taobao.com/');
$strqhou=array(WEB_TITLE.'</title>','mm_16329643_','','<div style="display:none"><script language="javascript" type="text/javascript" src="http://js.users.51.la/3729735.js"></script></div></html>',WEB_PATH."html/index.php/");
$body=str_replace($strqian,$strqhou,$body);
if(CACHE_YASUO){$body=gzcompress($body);}
//规格替换
file_put_contents($cacheurl,$body);
}
$html=file_get_contents($cacheurl);
if(CACHE_YASUO){echo gzuncompress($html);}else{echo $html;}
?>
- 上一篇:支持背景为调色板和图片文件的验证码类
- 下一篇:ddos PHP版
精彩图集
精彩文章






