/[LeafOK_CVS]/fenglin/www/show_article.php
ViewVC logotype

Diff of /fenglin/www/show_article.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 by sysadm, Sat Jan 5 13:45:27 2013 UTC Revision 1.18 by sysadm, Tue Apr 1 04:07:08 2025 UTC
# Line 1  Line 1 
1  <?  <?
2          include "./log.inc.php";          require_once "../lib/common.inc.php";
3  ?>          require_once "../lib/db_open.inc.php";
4  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">          require_once "../lib/lml.inc.php";
5  <?          require_once "../lib/str_process.inc.php";
6          require_once "./lml.inc.php";  
         $db_conn=include "./db_open.inc.php";  
7          if (isset($_GET["aid"]))          if (isset($_GET["aid"]))
8                  $aid=intval($_GET["aid"]);                  $aid=intval($_GET["aid"]);
9          else          else
# Line 27  Line 26 
26          }          }
27          else          else
28          {          {
29                  echo ("文章不存在!");                  echo ("鏂囩珷涓嶅瓨鍦紒");
30                  exit();                  exit();
31          }          }
32          mysql_free_result($rs);          mysql_free_result($rs);
33  ?>  ?>
34  <html>  <html>
35  <head>  <head>
36  <meta http-equiv="Content-Type" content="text/html; charset=gb2312">  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
37  <title>枫林在线 - <? echo $row["title"]; ?> </title>  <title><? echo $BBS_name; ?> - <? echo htmlspecialchars($row["title"], ENT_HTML401, 'UTF-8'); ?> </title>
38  <link rel="stylesheet" href="css/default.css" type="text/css">  <link rel="stylesheet" href="css/default.css" type="text/css">
39  <style type="text/css">  <style type="text/css">
40    
# Line 47  TD.content Line 46  TD.content
46    
47  </style>  </style>
48    
49  <script language="JavaScript" src="/js/bbs_article.js"></script>  <script language="JavaScript" src="/js/imageszoom.js"></script>
50  </head>  </head>
51    
52  <body>  <body>
# Line 58  TD.content Line 57  TD.content
57  <table width="760" border="0" cellpadding="0" cellspacing="0">  <table width="760" border="0" cellpadding="0" cellspacing="0">
58          <tr height=20 bgcolor=#F3F9FC>          <tr height=20 bgcolor=#F3F9FC>
59                  <td width="20">&nbsp;</td>                  <td width="20">&nbsp;</td>
60                  <td>枫林在线 &gt;&gt; <? echo $row["title"]; ?> </td>                  <td><? echo $BBS_name; ?> &gt;&gt; <? echo split_line(htmlspecialchars($row["title"], ENT_HTML401, 'UTF-8'), "", 65, 2); ?></td>
61                  <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>
62                  <td width="20">&nbsp;</td>                  <td width="20">&nbsp;</td>
63          </tr>          </tr>
64          <tr>          <tr>
# Line 77  TD.content Line 76  TD.content
76          </tr>          </tr>
77          <tr>          <tr>
78                  <td></td>                  <td></td>
79                  <td>                  <td valign="top">
80                          <table width="95%" border="0" cellpadding="0" cellspacing="0">                          <table width="95%" border="0" cellpadding="0" cellspacing="0">
81                                  <tr height="30">                                  <tr height="30">
82                                          <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>
83                                  </tr>                                  </tr>
84                                  <tr height="20">                                  <tr height="20">
85                                          <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>
86                                  </tr>                                  </tr>
87                                  <tr height="10">                                  <tr height="10">
88                                          <td></td>                                          <td></td>
# Line 95  TD.content Line 94  TD.content
94                                          <td></td>                                          <td></td>
95                                  </tr>                                  </tr>
96                                  <tr>                                  <tr>
97                                          <td class="content"><? echo LML(str_replace("\n","<br>",htmlspecialchars($content, ENT_COMPAT | ENT_HTML401, 'GB2312')),true,true,70); ?></td>                                          <td class="content"><? echo LML(htmlspecialchars($content, ENT_HTML401, 'UTF-8'), true, true, 70); ?></td>
98                                  </tr>                                  </tr>
99                                  <tr>                                  <tr>
100                                          <td>                                          <td>
101                                                  ========== * * * * * ==========                                                  ========== * * * * * ==========
102                                                  <br>                                                  <br />
103  <?  <?
104          $rs_attachment=mysql_query("select * from upload_file where ref_AID=".          $rs_attachment=mysql_query("select * from upload_file where ref_AID=".
105                  $row["AID"]." and deleted=0 and deny=0 order by AID")                  $row["AID"]." and deleted=0 and deny=0 order by AID")
# Line 112  TD.content Line 111  TD.content
111                  $check=$row_attachment["check"];                  $check=$row_attachment["check"];
112                  $ext=strtolower(substr($filename,(strrpos($filename,".") ? strrpos($filename,".")+1 : 0)));                  $ext=strtolower(substr($filename,(strrpos($filename,".") ? strrpos($filename,".")+1 : 0)));
113  ?>  ?>
114                                                  <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; ?>瀛楄妭)
115                                                  <? if ($check==0){?><font color=red>未验证</font><? } else { ?>                                                  <? if ($check==0){?><font color=red>鏈獙璇</font><? } else { ?>
116                                                  <br>                                                  <br>
117  <?  <?
118                  switch ($ext)                  switch ($ext)
# Line 123  TD.content Line 122  TD.content
122                          case "jpg":                          case "jpg":
123                          case "jpeg":                          case "jpeg":
124  ?>  ?>
125                                                  <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>  
126  <?  <?
127                                  break;                                  break;
128                  }                  }
# Line 152  TD.content Line 141  TD.content
141                                  </tr>                                  </tr>
142                                  <tr height="20">                                  <tr height="20">
143                                          <td align="right">                                          <td align="right">
144                                                  已有<font color=red><? echo $row["reply_count"]; ?></font>人发表评论                                                  宸叉湁<font color=red><? echo $row["reply_count"]; ?></font>浜哄彂琛ㄨ瘎璁
145                                          </td>                                          </td>
146                                  </tr>                                  </tr>
147                                  <tr height="10">                                  <tr height="10">
# Line 161  TD.content Line 150  TD.content
150                                  </tr>                                  </tr>
151                                  <tr>                                  <tr>
152                                          <td align="right">                                          <td align="right">
153                                                  【<a href="/bbs/view_article.php?id=<? echo $aid; ?>" >相关评论</a>】                                                  銆<a href="/bbs/view_article.php?id=<? echo $aid; ?>" >鐩稿叧璇勮</a>銆
154                                                  【<a href="javascript:self.close();" >关闭窗口</a>】                                                  銆<a href="javascript:self.close();" >鍏抽棴绐楀彛</a>銆
155                                          </td>                                          </td>
156                                  </tr>                                  </tr>
157                          </table>                          </table>
158                  </td>                  </td>
159                  <td valign="top">                  <td valign="top">
160  <script type="text/javascript"><!--  <script type="text/javascript">
161  google_ad_client = "ca-pub-3013347141025996";      google_ad_client = "ca-pub-3013347141025996";
162  /* fenglin_content_right */      google_ad_slot = "1068955943";
163  google_ad_slot = "1068955943";      google_ad_width = 120;
164  google_ad_width = 120;      google_ad_height = 600;
 google_ad_height = 600;  
 //-->  
165  </script>  </script>
166    <!-- fenglin_content_right -->
167  <script type="text/javascript"  <script type="text/javascript"
168  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">  src="//pagead2.googlesyndication.com/pagead/show_ads.js">
169  </script>  </script>
170                  </td>                  </td>
171          </tr>          </tr>


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1