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

📄 new.php

📁 天空下载小偷PHP版,更新了CACHE程式段
💻 PHP
字号:
<?
require './commom.php';
if($id){
	$file=$db ->open("${id}.html","cache/new_${id}.php","new");
	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);
		$nowdo=str_replace("href=\"00\"","href=\"new.php?id=00\"",$nowdo);
			
		


		$top10= $db -> cut($left,"<tr><td align='left'>","<br></td></tr>");
		$top10=str_replace("../soft/","index.php",$top10);
		$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("value='sort","value='list.php?id=sort",$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);
		$soft=str_replace("onChange='javascript:window.open(this.options[this.selectedIndex].value,\"_top\")'","onchange=\"if(this.options[this.selectedIndex].value != '') {window.location=('new.php?id='+this.options[this.selectedIndex].value+'') }\"",$soft);

	
		$gctop10= $db -> cut($file,"<font color=ffffff><b>国产软件本周下载TOP10</b></font>","<tr><td align='center' height='20' bgcolor='#000000'>");
		$gctop10= $db -> cut($gctop10,"<tr><td align='left'>","<tr><td align='center' height='20' bgcolor='#000000'>");
		$gwtop10= $db -> cut($file,"国外软件本周下载TOP10","<tr><td align='center' height='20' bgcolor='#000000'>");
		$gwtop10= $db -> cut($gwtop10,"<tr><td align='left'>","<tr><td align='center' height='20' bgcolor='#000000'>");	
		
		$hhbdtop10= $db -> cut($file,"汉化补丁本周下载TOP10","<tr><td align='center' height='20' bgcolor='#000000'>");
		$hhbdtop10= $db -> cut($hhbdtop10,"<tr><td align='left'>","<tr><td align='center' height='20' bgcolor='#000000'>");
		$top10= $db -> cut($file,"全部软件本周下载TOP10","</table>");
		$top10= $db -> cut($top10,"<tr><td align='left'>","</td>");
		$nowdo=$db -> add_str($nowdo);
		$gctop10=$db -> add_str($gctop10);
		$gwtop10=$db -> add_str($gwtop10);
		$hhbdtop10=$db -> add_str($hhbdtop10);
		$top10=$db -> add_str($top10);
		$soft=$db -> add_str($soft);		$data="<?\n\$nowdo=\"$nowdo\";\n\$gctop10=\"$gctop10\";\n\$gwtop10=\"$gwtop10\";\n\$hhbdtop10=\"$hhbdtop10\";\n\$top10=\"$top10\";\n\$soft=\"$soft\";\n?>";
		$db -> writetofile("cache/new_${id}.php",$data);
		
	}else{
		include "cache/new_${id}.php";
	}
		$nowdo=$db -> un_str($nowdo);
		$gctop10=$db -> un_str($gctop10);
		$gwtop10=$db -> un_str($gwtop10);
		$hhbdtop10=$db -> un_str($hhbdtop10);
		$top10=$db -> un_str($top10);
		$soft=$db -> un_str($soft);
}
include $db -> template('new');
?>

⌨️ 快捷键说明

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