| 1 |
<? |
<? |
| 2 |
include "./log.inc.php"; |
require_once "../lib/db_open.inc.php"; |
| 3 |
?> |
require_once "../lib/lml.inc.php"; |
| 4 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
require_once "../lib/str_process.inc.php"; |
| 5 |
<? |
|
|
require_once "./lml.inc.php"; |
|
|
$db_conn=include "./db_open.inc.php"; |
|
| 6 |
if (isset($_GET["aid"])) |
if (isset($_GET["aid"])) |
| 7 |
$aid=intval($_GET["aid"]); |
$aid=intval($_GET["aid"]); |
| 8 |
else |
else |
| 25 |
} |
} |
| 26 |
else |
else |
| 27 |
{ |
{ |
| 28 |
echo ("文章不存在!"); |
echo ("鏂囩珷涓嶅瓨鍦紒"); |
| 29 |
exit(); |
exit(); |
| 30 |
} |
} |
| 31 |
mysql_free_result($rs); |
mysql_free_result($rs); |
| 32 |
?> |
?> |
| 33 |
<html> |
<html> |
| 34 |
<head> |
<head> |
| 35 |
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 36 |
<title>枫林在线 - <? echo $row["title"]; ?> </title> |
<title>鏋灄鍦ㄧ嚎 - <? echo htmlspecialchars($row["title"], ENT_HTML401, 'UTF-8'); ?> </title> |
| 37 |
<link rel="stylesheet" href="css/default.css" type="text/css"> |
<link rel="stylesheet" href="css/default.css" type="text/css"> |
| 38 |
<style type="text/css"> |
<style type="text/css"> |
| 39 |
|
|
| 45 |
|
|
| 46 |
</style> |
</style> |
| 47 |
|
|
| 48 |
<script language="JavaScript" src="/js/bbs_article.js"></script> |
<script language="JavaScript" src="/js/imageszoom.js"></script> |
| 49 |
</head> |
</head> |
| 50 |
|
|
| 51 |
<body> |
<body> |
| 56 |
<table width="760" border="0" cellpadding="0" cellspacing="0"> |
<table width="760" border="0" cellpadding="0" cellspacing="0"> |
| 57 |
<tr height=20 bgcolor=#F3F9FC> |
<tr height=20 bgcolor=#F3F9FC> |
| 58 |
<td width="20"> </td> |
<td width="20"> </td> |
| 59 |
<td>枫林在线 >> <? echo $row["title"]; ?> </td> |
<td>鏋灄鍦ㄧ嚎 >> <? echo split_line(htmlspecialchars($row["title"], ENT_HTML401, 'UTF-8'), "", 65, 2); ?></td> |
| 60 |
<td width="200" align="right">本文已被浏览<font color=red><? echo $row["view_count"]; ?></font>次</td> |
<td width="200" align="right">鏈枃宸茶娴忚<font color=red><? echo $row["view_count"]; ?></font>娆</td> |
| 61 |
<td width="20"> </td> |
<td width="20"> </td> |
| 62 |
</tr> |
</tr> |
| 63 |
<tr> |
<tr> |
| 75 |
</tr> |
</tr> |
| 76 |
<tr> |
<tr> |
| 77 |
<td></td> |
<td></td> |
| 78 |
<td> |
<td valign="top"> |
| 79 |
<table width="95%" border="0" cellpadding="0" cellspacing="0"> |
<table width="95%" border="0" cellpadding="0" cellspacing="0"> |
| 80 |
<tr height="30"> |
<tr height="30"> |
| 81 |
<td align="center"><font size=4><b><? echo $row["title"]; ?> </b></font><font color=gray>[<? echo ($row["transship"]?"转载":"原创"); ?>]</font></td> |
<td align="center"><font size=4><b><? echo split_line(htmlspecialchars($row["title"], ENT_HTML401, 'UTF-8'), "", 65, 2); ?></b></font> <font color=gray>[<? echo ($row["transship"]?"杞浇":"鍘熷垱"); ?>]</font></td> |
| 82 |
</tr> |
</tr> |
| 83 |
<tr height="20"> |
<tr height="20"> |
| 84 |
<td align="center">(<? echo $row["sub_dt"]; ?>) <? echo ($row["transship"]?"转载":"作者"); ?>:<? echo $row["nickname"]; ?></td> |
<td align="center">(<? echo $row["sub_dt"]; ?>) <? echo ($row["transship"]?"杞浇":"浣滆"); ?>锛<? echo htmlspecialchars($row["nickname"], ENT_HTML401, 'UTF-8'); ?></td> |
| 85 |
</tr> |
</tr> |
| 86 |
<tr height="10"> |
<tr height="10"> |
| 87 |
<td></td> |
<td></td> |
| 93 |
<td></td> |
<td></td> |
| 94 |
</tr> |
</tr> |
| 95 |
<tr> |
<tr> |
| 96 |
<td class="content"><? echo LML(str_replace("\n","<br>",htmlspecialchars($content)),true,true,70); ?></td> |
<td class="content"><? echo LML(htmlspecialchars($content, ENT_HTML401, 'UTF-8'), true); ?></td> |
| 97 |
</tr> |
</tr> |
| 98 |
<tr> |
<tr> |
| 99 |
<td> |
<td> |
| 100 |
========== * * * * * ========== |
========== * * * * * ========== |
| 101 |
<br> |
<br /> |
| 102 |
<? |
<? |
| 103 |
$rs_attachment=mysql_query("select * from upload_file where ref_AID=". |
$rs_attachment=mysql_query("select * from upload_file where ref_AID=". |
| 104 |
$row["AID"]." and deleted=0 and deny=0 order by AID") |
$row["AID"]." and deleted=0 and deny=0 order by AID") |
| 110 |
$check=$row_attachment["check"]; |
$check=$row_attachment["check"]; |
| 111 |
$ext=strtolower(substr($filename,(strrpos($filename,".") ? strrpos($filename,".")+1 : 0))); |
$ext=strtolower(substr($filename,(strrpos($filename,".") ? strrpos($filename,".")+1 : 0))); |
| 112 |
?> |
?> |
| 113 |
<img src="images/dl.gif"><a class="s2" href="/bbs/dl_file.php?aid=<? echo $row_attachment["AID"]; ?>" target="_target"><? echo $filename; ?></a> (<? echo $size; ?>字节) |
<img src="images/dl.gif"><a class="s2" href="/bbs/dl_file.php?aid=<? echo $row_attachment["AID"]; ?>" target="_target"><? echo $filename; ?></a> (<? echo $size; ?>瀛楄妭) |
| 114 |
<? if ($check==0){?><font color=red>未验证</font><? } else { ?> |
<? if ($check==0){?><font color=red>鏈獙璇</font><? } else { ?> |
| 115 |
<br> |
<br> |
| 116 |
<? |
<? |
| 117 |
switch ($ext) |
switch ($ext) |
| 121 |
case "jpg": |
case "jpg": |
| 122 |
case "jpeg": |
case "jpeg": |
| 123 |
?> |
?> |
| 124 |
<img onmousewheel="return bbs_img_zoom(event,this)" src="/bbs/dl_file.php?aid=<? echo $row_attachment["AID"]; ?>"> |
<img onmousewheel="return bbs_img_zoom(event, this)" src="/bbs/dl_file.php?aid=<? echo $row_attachment["AID"]; ?>"> |
|
<? |
|
|
break; |
|
|
case "swf": |
|
|
?> |
|
|
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"> |
|
|
<param name=movie value="/bbs/dl_file.php?aid=<? echo $row_attachment["AID"]; ?>"> |
|
|
<param name=quality value=high> |
|
|
<embed src="/bbs/dl_file.php?aid=<? echo $row_attachment["AID"]; ?>" quality=high type="application/x-shockwave-flash"> |
|
|
</embed> |
|
|
</object> |
|
| 125 |
<? |
<? |
| 126 |
break; |
break; |
| 127 |
} |
} |
| 140 |
</tr> |
</tr> |
| 141 |
<tr height="20"> |
<tr height="20"> |
| 142 |
<td align="right"> |
<td align="right"> |
| 143 |
已有<font color=red><? echo $row["reply_count"]; ?></font>人发表评论 |
宸叉湁<font color=red><? echo $row["reply_count"]; ?></font>浜哄彂琛ㄨ瘎璁 |
| 144 |
</td> |
</td> |
| 145 |
</tr> |
</tr> |
| 146 |
<tr height="10"> |
<tr height="10"> |
| 149 |
</tr> |
</tr> |
| 150 |
<tr> |
<tr> |
| 151 |
<td align="right"> |
<td align="right"> |
| 152 |
【<a href="/bbs/view_article.php?id=<? echo $aid; ?>" >相关评论</a>】 |
銆<a href="/bbs/view_article.php?id=<? echo $aid; ?>" >鐩稿叧璇勮</a>銆 |
| 153 |
【<a href="javascript:self.close();" >关闭窗口</a>】 |
銆<a href="javascript:self.close();" >鍏抽棴绐楀彛</a>銆 |
| 154 |
</td> |
</td> |
| 155 |
</tr> |
</tr> |
| 156 |
</table> |
</table> |
| 157 |
</td> |
</td> |
| 158 |
<td valign="top"> |
<td valign="top"> |
| 159 |
<!-- Ads of Google --> |
<script type="text/javascript"> |
| 160 |
<script type="text/javascript"><!-- |
google_ad_client = "ca-pub-3013347141025996"; |
| 161 |
google_ad_client = "pub-3013347141025996"; |
google_ad_slot = "1068955943"; |
| 162 |
google_alternate_color = "FFFFFF"; |
google_ad_width = 120; |
| 163 |
google_ad_width = 120; |
google_ad_height = 600; |
| 164 |
google_ad_height = 600; |
</script> |
| 165 |
google_ad_format = "120x600_as"; |
<!-- fenglin_content_right --> |
| 166 |
google_ad_type = "text"; |
<script type="text/javascript" |
| 167 |
//2007-05-07: fenglin_content_right |
src="//pagead2.googlesyndication.com/pagead/show_ads.js"> |
| 168 |
google_ad_channel = "2167149888"; |
</script> |
|
//--> |
|
|
</script> |
|
|
<script type="text/javascript" |
|
|
src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> |
|
|
</script> |
|
| 169 |
</td> |
</td> |
| 170 |
</tr> |
</tr> |
| 171 |
<tr height="20"> |
<tr height="20"> |