| 1 |
<? |
<? |
| 2 |
require_once "../lib/common.inc.php"; |
require_once "../lib/common.inc.php"; |
| 3 |
require_once "./lml.inc.php"; |
require_once "./lml.inc.php"; |
|
include "./log.inc.php"; |
|
| 4 |
?> |
?> |
| 5 |
<? |
<? |
| 6 |
header ("Content-Type: text/xml; charset=gb2312"); |
header ("Content-Type: text/xml; charset=UTF-8"); |
| 7 |
echo ("<?xml version=\"1.0\" encoding=\"gb2312\" ?>\n"); |
echo ("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n"); |
| 8 |
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'?>"); |
| 9 |
?> |
?> |
| 10 |
<? |
<? |
| 93 |
<language>zh-cn</language> |
<language>zh-cn</language> |
| 94 |
<docs></docs> |
<docs></docs> |
| 95 |
<generator>Rss Generator By FengLin</generator> |
<generator>Rss Generator By FengLin</generator> |
| 96 |
<copyright>Copyright (C) 2003-2012 www.FengLin.info, All rights reserved</copyright> |
<copyright>Copyright (C) 2003-2025 www.FengLin.info, All rights reserved</copyright> |
| 97 |
<? |
<? |
| 98 |
$rs=mysql_query("SELECT * from bbs ". |
$rs=mysql_query("SELECT * from bbs ". |
| 99 |
"where SID=$sid and visible and ". |
"where SID=$sid and visible and ". |
| 112 |
mysql_free_result($rs_content); |
mysql_free_result($rs_content); |
| 113 |
?> |
?> |
| 114 |
<item> |
<item> |
| 115 |
<title><? echo htmlspecialchars($row["title"]).(ord(substr($row["title"],strlen($row["title"])-1,1))>127?" ":""); ?></title> |
<title><? echo htmlspecialchars($row["title"], ENT_COMPAT | ENT_HTML401, 'UTF-8').(ord(substr($row["title"],strlen($row["title"])-1,1))>127?" ":""); ?></title> |
| 116 |
<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> |
| 117 |
<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> |
| 118 |
<description><? echo htmlspecialchars(str_replace("\n","<br/>",str_replace("\r\n","\n",LML(str_replace("\x14"," ",str_replace("\x1B"," ",$content)),false)))); ?></description> |
<description><? echo htmlspecialchars(str_replace("\n","<br/>",str_replace("\r\n","\n",LML(str_replace("\x14"," ",str_replace("\x1B"," ",$content)),false))), |
| 119 |
<author><? echo $row["username"]." (".htmlspecialchars($row["nickname"]).")"; ?></author> |
ENT_COMPAT | ENT_HTML401, 'UTF-8'); ?></description> |
| 120 |
<pubDate><? echo gmstrftime("%a, %d %b %Y %H:%M:%S GMT",strtotime($row["sub_dt"])); ?></pubDate> |
<author><? echo $row["username"]." (".htmlspecialchars($row["nickname"], ENT_COMPAT | ENT_HTML401, 'UTF-8').")"; ?></author> |
| 121 |
|
<pubDate><? echo gmdate("D, d M Y H:i:s T",strtotime($row["sub_dt"])); ?></pubDate> |
| 122 |
<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> |
| 123 |
</item> |
</item> |
| 124 |
<? |
<? |