| 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 "./lml.inc.php"; |
require_once "../lib/lml.inc.php"; |
| 5 |
include "./log.inc.php"; |
require_once "../bbs/session_init.inc.php"; |
| 6 |
?> |
?> |
| 7 |
<? |
<? |
| 8 |
header ("Content-Type: text/xml; charset=gb2312"); |
header ("Content-Type: text/xml; charset=UTF-8"); |
| 9 |
echo ("<?xml version=\"1.0\" encoding=\"gb2312\" ?>\n"); |
echo ("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"); |
| 10 |
echo ("<?xml-stylesheet type='text/xsl' href='xml/rss.xsl' version='1.0'?>"); |
echo ("<?xml-stylesheet type='text/xsl' href='xml/rss.xsl' version='1.0'?>"); |
| 11 |
?> |
?> |
| 12 |
<? |
<? |
| 13 |
$page_max_record=100; |
$page_max_record=100; |
| 14 |
|
|
|
/* |
|
|
$base_url = ((empty($_SERVER['HTTPS']) || $_SERVER['HTTPS']=='off') ? 'http' : 'https') . '://' |
|
|
. $_SERVER['SERVER_NAME'] |
|
|
. (!empty($_SERVER['SERVER_PORT']) ? ':' . $_SERVER['SERVER_PORT'] : ''); |
|
|
*/ |
|
|
|
|
| 15 |
$base_url = "http://" . $BBS_host_name; |
$base_url = "http://" . $BBS_host_name; |
| 16 |
|
|
| 17 |
if (isset($_GET["sid"])) |
if (isset($_GET["sid"])) |
| 44 |
if ($page<1) |
if ($page<1) |
| 45 |
$page=1; |
$page=1; |
| 46 |
|
|
|
$db_conn=include "./db_open.inc.php"; |
|
|
|
|
| 47 |
$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". |
| 48 |
" on section_config.CID=section_class.CID where SID=$sid and". |
" on section_config.CID=section_class.CID where SID=$sid and". |
| 49 |
" section_config.enable and section_class.enable and". |
" section_config.enable and section_class.enable and". |
| 83 |
<channel> |
<channel> |
| 84 |
<title><? echo $stitle; ?></title> |
<title><? echo $stitle; ?></title> |
| 85 |
<description><? echo $stitle; ?></description> |
<description><? echo $stitle; ?></description> |
| 86 |
<link><? echo $base_url."/bbs/bbs.php?sid=".$sid; ?></link> |
<link><? echo $base_url."/bbs/list.php?sid=".$sid; ?></link> |
| 87 |
<language>zh-cn</language> |
<language>zh-cn</language> |
| 88 |
<docs></docs> |
<docs></docs> |
| 89 |
<generator>Rss Generator By FengLin</generator> |
<generator>Rss Generator By <? echo $BBS_name; ?></generator> |
| 90 |
<copyright>Copyright (C) 2003-2008 www.FengLin.info, All rights reserved</copyright> |
<copyright>Copyright (C)<? echo $BBS_copyright_duration; ?> <? echo $BBS_host_name; ?>, All rights reserved</copyright> |
| 91 |
<? |
<? |
| 92 |
$rs=mysql_query("SELECT * from bbs ". |
$rs=mysql_query("SELECT * from bbs ". |
| 93 |
"where SID=$sid and visible and ". |
"where SID=$sid and visible and ". |
| 106 |
mysql_free_result($rs_content); |
mysql_free_result($rs_content); |
| 107 |
?> |
?> |
| 108 |
<item> |
<item> |
| 109 |
<title><? echo htmlspecialchars($row["title"]).(ord(substr($row["title"],strlen($row["title"])-1,1))>127?" ":""); ?></title> |
<title><? echo htmlspecialchars($row["title"], ENT_HTML401, 'UTF-8'); ?></title> |
| 110 |
<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> |
| 111 |
<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> |
| 112 |
<description><? echo htmlspecialchars(str_replace("\n","<br/>",str_replace("\r\n","\n",LML(str_replace("\x14"," ",str_replace("\x1B"," ",$content)),false)))); ?></description> |
<description><![CDATA[<? echo LML($content, true, false, 1024); ?>]]></description> |
| 113 |
<author><? echo $row["username"]." (".htmlspecialchars($row["nickname"]).")"; ?></author> |
<author><? echo htmlspecialchars($row["username"], ENT_HTML401, 'UTF-8') ; ?> (<? echo htmlspecialchars($row["nickname"], ENT_HTML401, 'UTF-8'); ?>)</author> |
| 114 |
<pubDate><? echo gmstrftime("%a, %d %b %Y %H:%M:%S GMT",strtotime($row["sub_dt"])); ?></pubDate> |
<pubDate><? echo gmdate("D, d M Y H:i:s T",strtotime($row["sub_dt"])); ?></pubDate> |
| 115 |
<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> |
| 116 |
</item> |
</item> |
| 117 |
<? |
<? |
| 118 |
} |
} |
| 119 |
mysql_free_result($rs); |
mysql_free_result($rs); |
| 120 |
|
|
| 121 |
mysql_close($db_conn); |
mysql_close($db_conn); |