/[LeafOK_CVS]/fenglin/www/rss.php
ViewVC logotype

Diff of /fenglin/www/rss.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 by sysadm, Fri Jul 28 11:45:21 2023 UTC Revision 1.9 by sysadm, Tue Mar 4 07:47:49 2025 UTC
# Line 1  Line 1 
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  <?  <?
# Line 94  if ($page>$page_total) Line 93  if ($page>$page_total)
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 ".
# Line 113  while($row=mysql_fetch_array($rs)) Line 112  while($row=mysql_fetch_array($rs))
112          mysql_free_result($rs_content);          mysql_free_result($rs_content);
113  ?>  ?>
114          <item>          <item>
115                  <title><? echo htmlspecialchars($row["title"], ENT_COMPAT | ENT_HTML401, 'GB2312').(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><? echo htmlspecialchars(str_replace("\n","<br />",str_replace("\r\n","\n",LML(str_replace("\x14"," ",str_replace("\x1B"," ",$content)),false))),
119                                                                                  ENT_COMPAT | ENT_HTML401, 'GB2312'); ?></description>                                                                                  ENT_COMPAT | ENT_HTML401, 'UTF-8'); ?></description>
120                  <author><? echo $row["username"]." (".htmlspecialchars($row["nickname"], ENT_COMPAT | ENT_HTML401, 'GB2312').")"; ?></author>                  <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>                  <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>


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1