--- fenglin/www/rss.php 2005/10/08 18:12:33 1.1
+++ fenglin/www/rss.php 2025/03/12 13:28:32 1.11
@@ -1,11 +1,10 @@
require_once "../lib/common.inc.php";
- require_once "./lml.inc.php";
- include "./log.inc.php";
+ require_once "../lib/lml.inc.php";
?>
-header ("Content-Type: text/xml; charset=gb2312");
-echo ("\n");
+header ("Content-Type: text/xml; charset=UTF-8");
+echo ("\n");
echo ("");
?>
@@ -94,7 +93,7 @@ if ($page>$page_total)
zh-cn
Rss Generator By FengLin
- Copyright (C) 2003-2005 www.FengLin.info, All rights reserved
+ Copyright (C) 2003-2025 www.FengLin.info, All rights reserved
$rs=mysql_query("SELECT * from bbs ".
"where SID=$sid and visible and ".
@@ -113,16 +112,17 @@ while($row=mysql_fetch_array($rs))
mysql_free_result($rs_content);
?>
-
- echo htmlspecialchars($row["title"]).(ord(substr($row["title"],strlen($row["title"])-1,1))>127?" ":""); ?>
+ echo htmlspecialchars($row["title"], ENT_HTML401, 'UTF-8'); ?>
echo $base_url."/bbs/view_article.php?id=".($row["TID"]==0?$row["AID"]:$row["TID"]."#".$row["AID"]); ?>
echo $base_url."/bbs/view_article.php?id=".($row["TID"]==0?$row["AID"]:$row["TID"]."#".$row["AID"]); ?>
- echo htmlspecialchars(str_replace("\n","
",str_replace("\r\n","\n",LML(str_replace("\x14"," ",str_replace("\x1B"," ",$content)),false)))); ?>
- echo $row["username"]." (".htmlspecialchars($row["nickname"]).")"; ?>
- echo gmstrftime("%a, %d %b %Y %H:%M:%S GMT",strtotime($row["sub_dt"])); ?>
+ echo htmlspecialchars(str_replace("\n","
",str_replace("\r\n","\n",LML(str_replace("\x14"," ",str_replace("\x1B"," ",$content)),
+ false))), ENT_HTML401, 'UTF-8'); ?>
+ echo htmlspecialchars($row["username"], ENT_HTML401, 'UTF-8') ; ?> ( echo htmlspecialchars($row["nickname"], ENT_HTML401, 'UTF-8'); ?>)
+ echo gmdate("D, d M Y H:i:s T",strtotime($row["sub_dt"])); ?>
echo $base_url."/bbs/view_article.php?id=".($row["TID"]==0?$row["AID"]:$row["TID"]); ?>
-
-}
+
+}
mysql_free_result($rs);
mysql_close($db_conn);