top.php

来自「天空下载小偷PHP版,更新了CACHE程式段」· PHP 代码 · 共 35 行

PHP
35 行
字号
<?
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("<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("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,"您的位置:","<center><table width=\"760\">");
		$file= $db -> cut($file,"</TABLE><br>","</td></tr></table></td></tr></table>")."</td></tr></table></td></tr></table>";
		$file=$db -> add_str($file);
		$db -> writetofile($cache,"<?\n\$file=\"$file\";\n?>");
	}else{
		include $cache;
	}
	$file=$db -> un_str($file);
	include $db -> template('top');


?>


⌨️ 快捷键说明

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