天空下载小偷PHP版,更新了CACHE程式段
源代码在线查看: top.php
require './commom.php';
if($id){
$topfile="${id}.html";
$cache="cache/top_${id}.php";
}else{
$topfile="top_000000_a.html";
$cache="cache/top_000000_a.php";
}
$file= $db -> open($topfile,$cache,'top');
if(isset($file)){
$file=str_replace("★","",$file);
$file=str_replace("../soft/","download.php?soft=",$file);
$file=str_replace("../article/","article.php?soft=",$file);
$file=str_replace("../flash/","flash.php?soft=",$file);
$file=str_replace("value='top","value='top.php?id=top",$file);
$file=str_replace("../sort/","list.php?id=",$file);
$file=str_replace(".html","",$file);
$file= $db -> cut($file,"您的位置:","");
$file= $db -> cut($file,"","")."";
$file=$db -> add_str($file);
$db -> writetofile($cache,"");
}else{
include $cache;
}
$file=$db -> un_str($file);
include $db -> template('top');
?>