📄 datamb.php
字号:
<?
$id=trim($_GET[id]);
if(!$id){
$qr=mysql_query("select * from zhai where ispub='1' order by id desc limit 1");
}
else
{
$qr=mysql_query("select * from zhai where ispub='1' order by id desc limit ".trim(($id-1)*1).",1");
}
if($rs=mysql_fetch_array($qr)){
$title=$rs[title];
$fromurl=$rs[fromurl];
$tagarray = explode(" ",$rs[tags]);
$tags=$tagarray[0];
$htmlid=$rs[id];
?>
<html>
<head>
<title><? echo $title;?></title>
<meta http-equiv=Content-Type content=text/html; charset=gb2312>
<meta name=keywords content=<? echo $title;?>>
<meta name=description content=<? echo $title;?>>
</HEAD>
<frameset name=fset cols=180,9,* border=0 >
<frame name=left width=180 src=../../left.php scrolling=no noresize>
<frame scrolling=no noresize=true name=toogle marginwidth=0 marginheight=0 name=toogle src=../../but.htm >
<frame name=main src='<? echo $fromurl;?>' >
<noframes>
<body>
<p><? echo $title;?></p>
<p><? echo $fromurl;?></p>
</body>
</noframes>
</HTML>
<?
$content=ob_get_contents();
if(!is_dir('html/'.$htmlid)){
@mkdir('html/'.$htmlid,0777);
}
writeover("html/$htmlid/index.htm",$content,"rb+",0);
ob_end_clean();
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -