📄 flash.php
字号:
<?
require './commom.php';
if($soft){
$file=$db -> open("${soft}.html","cache/flash_${soft}.php","flash");
if(isset($file)){
$nowdo=$db -> cut($file,"您的位置:","</TD>");
$nowdo=str_replace(".html","",$nowdo);
$nowdo=str_replace("../index","index.php",$nowdo);
$nowdo=str_replace("../sort/soft_sort","type.php",$nowdo);
$nowdo=str_replace("../sort/","list.php?id=",$nowdo);
$name=$db -> cut($file,"<tr><td align='center' height='20' bgcolor='#000000'>","</td>");
$left=$db -> cut($file,"<font color='#FFFFFF'><b>","<tr><td align='left'>");
$left=$db -> cut($left,"<tr><td align='center'>","</td></tr>");
$left=str_replace("../sort/","list.php?id=",$left);
$left=str_replace(".html","",$left);
$top10=$db -> cut($file,"本类下载TOP10","</td></tr></table>");
$top10=$db -> cut($file,"<tr><td align='left'>","</td></tr></table>");
$top10=str_replace("../flash/","flash.php?soft=",$top10);
$top10=str_replace(".html","",$top10);
$flash=$db -> cut($file,"<td vAlign=top width=540>","<center><table width=\"760\">");
$flashname=$db -> cut($flash,"<td bgcolor='#DFE6EE' align='center' height='25'>","</td>");
$flashfile=$db -> cut($flash,"<td width=280>","</td>");
$flashfile=str_replace("../images/","images/",$flashfile);
$flashimg=$db -> cut($flash,"<td width=260 align=center>","</td>");
$about=$db -> cut($flash,"</a></td></tr></table><table><tr><td>","<A href='http://member");
$flash_url1="http://flash". $db ->cut($flash,"http://flash",".swf").".swf";
$flash_url2="http://flash". $db ->cut($flash,"http://flash",".swf").".swf";
if(@fopen($flash_url1)==true){
$flashurl=$flash_url1;
}else{
$flashurl=$flash_url2;
}
$xiangguan=$db -> cut($file,"<tr><td><b><br>相关动画:</b></td></tr>","</td>");
$xiangguan=$db -> cut($xiangguan,"<tr><td>","</td>");
$xiangguan=str_replace("../flash/","flash.php?soft=",$xiangguan);
$xiangguan=str_replace(".html","",$xiangguan);
$nowdo=$db -> add_str($nowdo);
$names=$db -> add_str($names);
$left=$db -> add_str($left);
$top10=$db -> add_str($top10);
$flashname=$db -> add_str($flashname);
$flashfile=$db -> add_str($flashfile);
$flashimg=$db -> add_str($flashimg);
$about=$db -> add_str($about);
$flashurl=$db -> add_str($flashurl);
$xiangguan=$db -> add_str($xiangguan);
$data="<?\n\n\$nowdo=\"$nowdo\";\n\$names=\"$names\";\n\$left=\"$left\";\n\$top10=\"$top10\";\n\$flashname=\"$flashname\";\n\$flashfile=\"$flashfile\";\n\$flashimg=\"$flashimg\";\n\$about=\"$about\";\n\$flashurl=\"$flashurl\";\n\$xiangguan=\"$xiangguan\";\n\n?>";
$db -> writetofile("cache/flash_${soft}.php",$data);
}else{
include "cache/flash_${soft}.php";
}
$nowdo=$db -> un_str($nowdo);
$names=$db -> un_str($names);
$left=$db -> un_str($left);
$top10=$db -> un_str($top10);
$flashname=$db -> un_str($flashname);
$flashfile=$db -> un_str($flashfile);
$flashimg=$db -> un_str($flashimg);
$about=$db -> un_str($about);
$flashurl=$db -> un_str($flashurl);
$xiangguan=$db -> un_str($xiangguan);
include $db -> template('flash');
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -