php+txt淘宝客超精简版sina_SAE专版
v2最新版放出敬请下载: a target=_blank href=http://www.yimuhe.com/file-629333.html rel=nofollowhttp://www.yimuhe.com/file-629333.html/a br / br / php+txt淘宝客超精简版sina_SAE专版 br / 演示: a target=_blank href=http://bit
v2最新版放出敬请下载:
http://www.yimuhe.com/file-629333.html
php+txt淘宝客超精简版sina_SAE专版
演示: http://bitefu.sinaapp.com/
主要是修改了,file_put_contents,和cul函数为SAE提供的特定方法 以适应sina_SAE环境
还有就是替换了所有阿里妈妈api为字符串,然后在最后转向的时候再添加上!
由于写的仓促,如出现问题请及时反溃
完整代码下载 http://www.ctdisk.com/file/5496334
版本更新:
更新内容
1.主要针对女装页面 新增了部分替换链接
2.修改u目录转向规则
新浪免费php空间申请全功略
如果不用新浪sae空间的话,请下载 通用版
下载地址: http://xiaogg.ctdisk.com/u/349707/437278
提示:本人将会代码不定期进行更新。 更新地址 http://xiaogg.ctdisk.com/u/349707/437278
php+txt淘宝客超精简版sina_SAE专版
演示: http://bitefu.sinaapp.com/
主要是修改了,file_put_contents,和cul函数为SAE提供的特定方法 以适应sina_SAE环境
还有就是替换了所有阿里妈妈api为字符串,然后在最后转向的时候再添加上!
由于写的仓促,如出现问题请及时反溃
完整代码下载 http://www.ctdisk.com/file/5496334
版本更新:
更新内容
1.主要针对女装页面 新增了部分替换链接
2.修改u目录转向规则
新浪免费php空间申请全功略
如果不用新浪sae空间的话,请下载 通用版
下载地址: http://xiaogg.ctdisk.com/u/349707/437278
提示:本人将会代码不定期进行更新。 更新地址 http://xiaogg.ctdisk.com/u/349707/437278
<?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); $newheader=explode("|",trim($urlhead[$nowtype])); $mailurl=$newheader[0].str_replace("bitefu=net","&pid=mm_".ALIMAMA_KEY."_0_0",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); //规格替换 foreach($urlhead as $key =>$v) { $strarr=explode("|",trim($v)); $str_qian[]=$strarr[0]; if($strarr[1]){$str_hou[]=WEB_PATH."u/?bitefutype=".$key."&";}else{ $str_hou[]=WEB_PATH."index.php/html".$key."/"; } } $body=str_replace($str_qian,$str_hou,$index_content); $strqian=array('pid=mm_'.ALIMAMA_KEY.'_0_0','</title>','mm_0_','</body>','</html>'); $strqhou=array('bitefu=net',WEB_TITLE.'</title>','mm_'.ALIMAMA_KEY.'_','','<div style="display:none"><script language="javascript" type="text/javascript" src="http://js.users.51.la/3729735.js"></script></div></html>'); $body=str_replace($strqian,$strqhou,$body); //规格替换 file_put_contents("saemc://".$cacheurl,$body); } $html=file_get_contents("saemc://".$cacheurl); echo $html; ?>
- 上一篇:时间格式化
- 下一篇:SimpleXML和XMLReader 解析RSSFeed
精彩图集
精彩文章