| 1 |
<? |
<? |
| 2 |
|
require_once "../lib/db_open.inc.php"; |
| 3 |
require_once "../lib/common.inc.php"; |
require_once "../lib/common.inc.php"; |
| 4 |
require_once "../lib/lml.inc.php"; |
require_once "../lib/lml.inc.php"; |
| 5 |
?> |
?> |
| 11 |
<? |
<? |
| 12 |
$page_max_record=100; |
$page_max_record=100; |
| 13 |
|
|
|
/* |
|
|
$base_url = ((empty($_SERVER['HTTPS']) || $_SERVER['HTTPS']=='off') ? 'http' : 'https') . '://' |
|
|
. $_SERVER['SERVER_NAME'] |
|
|
. (!empty($_SERVER['SERVER_PORT']) ? ':' . $_SERVER['SERVER_PORT'] : ''); |
|
|
*/ |
|
|
|
|
| 14 |
$base_url = "http://" . $BBS_host_name; |
$base_url = "http://" . $BBS_host_name; |
| 15 |
|
|
| 16 |
if (isset($_GET["sid"])) |
if (isset($_GET["sid"])) |
| 43 |
if ($page<1) |
if ($page<1) |
| 44 |
$page=1; |
$page=1; |
| 45 |
|
|
|
$db_conn=include "./db_open.inc.php"; |
|
|
|
|
| 46 |
$rs=mysql_query("select section_config.* from section_config left join section_class". |
$rs=mysql_query("select section_config.* from section_config left join section_class". |
| 47 |
" on section_config.CID=section_class.CID where SID=$sid and". |
" on section_config.CID=section_class.CID where SID=$sid and". |
| 48 |
" section_config.enable and section_class.enable and". |
" section_config.enable and section_class.enable and". |
| 108 |
<title><? echo htmlspecialchars($row["title"], ENT_HTML401, 'UTF-8'); ?></title> |
<title><? echo htmlspecialchars($row["title"], ENT_HTML401, 'UTF-8'); ?></title> |
| 109 |
<link><? echo $base_url."/bbs/view_article.php?id=".($row["TID"]==0?$row["AID"]:$row["TID"]."#".$row["AID"]); ?></link> |
<link><? echo $base_url."/bbs/view_article.php?id=".($row["TID"]==0?$row["AID"]:$row["TID"]."#".$row["AID"]); ?></link> |
| 110 |
<guid><? echo $base_url."/bbs/view_article.php?id=".($row["TID"]==0?$row["AID"]:$row["TID"]."#".$row["AID"]); ?></guid> |
<guid><? echo $base_url."/bbs/view_article.php?id=".($row["TID"]==0?$row["AID"]:$row["TID"]."#".$row["AID"]); ?></guid> |
| 111 |
<description><? echo htmlspecialchars(str_replace("\n","<br />",str_replace("\r\n","\n",LML(str_replace("\x14"," ",str_replace("\x1B"," ",$content)), |
<description><![CDATA[<? echo LML($content, true, false, 1024); ?>]]></description> |
|
false))), ENT_HTML401, 'UTF-8'); ?></description> |
|
| 112 |
<author><? echo htmlspecialchars($row["username"], ENT_HTML401, 'UTF-8') ; ?> (<? echo htmlspecialchars($row["nickname"], ENT_HTML401, 'UTF-8'); ?>)</author> |
<author><? echo htmlspecialchars($row["username"], ENT_HTML401, 'UTF-8') ; ?> (<? echo htmlspecialchars($row["nickname"], ENT_HTML401, 'UTF-8'); ?>)</author> |
| 113 |
<pubDate><? echo gmdate("D, d M Y H:i:s T",strtotime($row["sub_dt"])); ?></pubDate> |
<pubDate><? echo gmdate("D, d M Y H:i:s T",strtotime($row["sub_dt"])); ?></pubDate> |
| 114 |
<annotate:reference><? echo $base_url."/bbs/view_article.php?id=".($row["TID"]==0?$row["AID"]:$row["TID"]); ?></annotate:reference> |
<annotate:reference><? echo $base_url."/bbs/view_article.php?id=".($row["TID"]==0?$row["AID"]:$row["TID"]); ?></annotate:reference> |