--- fenglin/www/rss.php 2006/09/23 16:56:54 1.2
+++ fenglin/www/rss.php 2025/03/18 07:11:18 1.12
@@ -1,22 +1,15 @@
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 ("");
?>
$page_max_record=100;
-/*
-$base_url = ((empty($_SERVER['HTTPS']) || $_SERVER['HTTPS']=='off') ? 'http' : 'https') . '://'
- . $_SERVER['SERVER_NAME']
- . (!empty($_SERVER['SERVER_PORT']) ? ':' . $_SERVER['SERVER_PORT'] : '');
-*/
-
$base_url = "http://" . $BBS_host_name;
if (isset($_GET["sid"]))
@@ -94,7 +87,7 @@ if ($page>$page_total)
zh-cn
Rss Generator By FengLin
- Copyright (C) 2003-2006 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 +106,16 @@ 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($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);