--- fenglin/www/rss.php 2023/07/28 11:45:21 1.7
+++ fenglin/www/rss.php 2025/03/29 07:06:57 1.14
@@ -1,22 +1,16 @@
+ require_once "../lib/db_open.inc.php";
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"]))
@@ -49,8 +43,6 @@ else
if ($page<1)
$page=1;
-$db_conn=include "./db_open.inc.php";
-
$rs=mysql_query("select section_config.* from section_config left join section_class".
" on section_config.CID=section_class.CID where SID=$sid and".
" section_config.enable and section_class.enable and".
@@ -93,8 +85,8 @@ if ($page>$page_total)
echo $base_url."/bbs/bbs.php?sid=".$sid; ?>
zh-cn
- Rss Generator By FengLin
- Copyright (C) 2003-2012 www.FengLin.info, All rights reserved
+ Rss Generator By echo $BBS_name; ?>
+ Copyright (C) echo $BBS_copyright_duration; ?> echo $BBS_host_name; ?>, All rights reserved
$rs=mysql_query("SELECT * from bbs ".
"where SID=$sid and visible and ".
@@ -113,17 +105,16 @@ while($row=mysql_fetch_array($rs))
mysql_free_result($rs_content);
?>
-
- echo htmlspecialchars($row["title"], ENT_COMPAT | ENT_HTML401, 'GB2312').(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))),
- ENT_COMPAT | ENT_HTML401, 'GB2312'); ?>
- echo $row["username"]." (".htmlspecialchars($row["nickname"], ENT_COMPAT | ENT_HTML401, 'GB2312').")"; ?>
+ ]]>
+ 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);