?? list.php
字號:
<?require './file/commom.php';if($id){#111111 $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='image/bg.gif' width=10>",$file); $file=str_replace("<FONT color='#000000'>","",$file); $file=str_replace("<TD bgColor=#FFCC00 height=1>","<td><hr SIZE=1>",$file); $file=str_replace("<td colSpan=2 width='100%' align='center'>","<td colSpan=2 bgColor=#e8f2fa width='100%' align='center'>",$file); $file=str_replace("#DFE6EE","#b2e0ff",$file); $file=str_replace("#CCCCCC","#e8f2fa",$file); $file=str_replace("</font></td></tr>","</font></td></tr><TR><TD bgColor=#111111 height=1> </TD></tr> ",$file); $file=str_replace("../soft/","download.php?soft=",$file); $file=str_replace(".html","",$file); $file=str_replace("<font color=#0000ff>","",$file); $softtitle= $db -> cut($file,"<title>天空軟件站","</title>"); $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); $leftlist=str_replace("<A","<li><a",$leftlist); $leftlist=str_replace("</font><br>","</li>",$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=str_replace("<br>","</li>",$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' align='left'>","<center><table width=\"760\">"); $soft=str_replace("width=355>","width=355 class='listtd'><ul class=\"u1\"><li class=\"s1\"><h4>",$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("href=r","href=list.php?id=r",$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); $soft=str_replace("<b>","<span>",$soft); $soft=str_replace("</b>","</span>",$soft); $soft=str_replace("</A><br>","</A><br></h4></li></ul>",$soft); $soft=str_replace("<td align='left' height='20' width=355 bgcolor='#e8f2fa'>","<div class=\"soft_sort\"><ul><li class=\"s1\">",$soft); $soft=str_replace("</font></td>","</a></li>",$soft); $soft=str_replace("<td align='center' height='20' width=70 bgcolor='#e8f2fa'>","<li class=\"s2\">",$soft); $soft=str_replace("<td align='center' height='20' width=55 bgcolor='#e8f2fa'>","<li class=\"s3\">",$soft); $soft=str_replace("<td align='left' height='20' width=415 bgcolor='#e8f2fa'>","<div class=\"soft_sort\"><ul><li class=\"s1\">",$soft); $soft=str_replace("</li> </tr>","</li></ul></div> </tr>",$soft); $soft=str_replace("<td><hr SIZE=1>","<td background=image/line.gif height=1 colspan=4> ",$soft); $soft=str_replace("軟件分類 - ","",$soft); $nowdo1=$db -> add_str($nowdo); $soft1=$db -> add_str($soft); $data="<?\n\n \$nowdo=\"$nowdo1\";\n\n \$softtitle=\"$softtitle\";\n\n \$soft=\"$soft1\";\n\n ?>"; $db -> writetofile("cache/${id}.php",$data); }else{ include $leftcache; include "cache/${id}.php"; } $soft=$db->un_str($soft); $softtitle=$db->un_str($softtitle); $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 + -