⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 list.php

📁 天空下载小偷PHP版,更新了CACHE程式段
💻 PHP
字号:
<?
require './commom.php';

if($id){
	$file= $db -> open("${id}.html","cache/${id}.php",'sort');
	$thisid=explode("_",$id);
	$leftcache='cache/'.$thisid[0]."_left.php";
	if(isset($file)){
	$file=str_replace("<font color=#000000>★</font>","<IMG border=0 height=12 src='images/page1.gif' width=10>",$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(".html","",$file);
	$nowdo= $db -> cut($file,"您的位置:","</TD></TR>");
	$nowdo=str_replace("soft_sort","type.php",$nowdo);
	$nowdo=str_replace("href='sort","href='list.php?id=sort",$nowdo);
	$nowdo=str_replace("../index","index.php",$nowdo);
	$nowdo=str_replace("../sort/sort","list.php?id=sort",$nowdo);

	if(!file_exists($leftcache) || @filemtime($leftcache) < $timestamp - ($flush * 60)){
		$left= $db -> cut($file,"<table border=0 width=200 cellspacing=0>","</table></td><td width=20></td>");
		$leftname =$db ->  cut($left,"<font color='#FFFFFF'><b>","</b></font>");
		
		$leftlist = $db -> cut($left,"<td align='center'>","<br></td></tr>");
		$leftlist=str_replace("href='sort","href='list.php?id=sort",$leftlist);
		

	
		$top10=$db ->  cut($left,"</font>","<br></td></tr>");
		$top10= $db -> cut($left,"<tr><td align='left'>","<br></td></tr>");
		$top10=str_replace("../soft/","index.php",$top10);
		$top10=$db -> add_str($top10);
		$leftname=$db -> add_str($leftname);
		$leftlist=$db -> add_str($leftlist);
		$leftdata="<?\n\n \$leftname=\"$leftname\";\n\n \$leftlist=\"$leftlist\";\n\n \$top10=\"$top10\";\n\n?>";
		$db -> writetofile($leftcache,$leftdata);
	}else{
		include $leftcache;
		
	}



	$soft=$db -> cut($file,"<td vAlign=top width=540>","<center><table width=\"760\">");
	$soft=str_replace("width=355","width=355 class='listtd'",$soft);
	$soft=str_replace("HREF='sort","HREF='list.php?id=sort",$soft);
	$soft=str_replace("href=sort","href=list.php?id=sort",$soft);
	$soft=str_replace("href='sort","href='list.php?id=sort",$soft);
	$soft=str_replace("value='sort","value='list.php?id=sort",$soft);
	$soft=str_replace("value='r","value='list.php?id=r",$soft);
	$soft=str_replace("../sort/s","list.php?id=s",$soft);
	$soft=str_replace("<td align=left width=415>","<td align=left width=415 class='listtd'>",$soft);
	$nowdo1=$db -> add_str($nowdo);
	$soft1=$db -> add_str($soft);
	$data="<?\n\n \$nowdo=\"$nowdo1\";\n\n \$soft=\"$soft1\";\n\n ?>";
	
	$db -> writetofile("cache/${id}.php",$data);
	
	}else{
		include $leftcache;
		include "cache/${id}.php";
		
	}
	
	$soft=$db->un_str($soft);
	$nowdo=$db->un_str($nowdo);
	$leftname=$db->un_str($leftname);
	$leftlist=$db->un_str($leftlist);
	$top10=$db->un_str($top10);
}
include $db -> template('list');
?>


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -