/[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.1 by sysadm, Sat Oct 8 18:12:33 2005 UTC Revision 1.6 by sysadm, Sat Jan 5 13:45:27 2013 UTC
# Line 94  if ($page>$page_total) Line 94  if ($page>$page_total)
94          <language>zh-cn</language>          <language>zh-cn</language>
95          <docs></docs>          <docs></docs>
96          <generator>Rss Generator By FengLin</generator>          <generator>Rss Generator By FengLin</generator>
97          <copyright>Copyright (C) 2003-2005 www.FengLin.info, All rights reserved</copyright>          <copyright>Copyright (C) 2003-2012 www.FengLin.info, All rights reserved</copyright>
98  <?  <?
99  $rs=mysql_query("SELECT * from bbs ".  $rs=mysql_query("SELECT * from bbs ".
100          "where SID=$sid and visible and ".          "where SID=$sid and visible and ".
# Line 113  while($row=mysql_fetch_array($rs)) Line 113  while($row=mysql_fetch_array($rs))
113          mysql_free_result($rs_content);          mysql_free_result($rs_content);
114  ?>  ?>
115          <item>          <item>
116                  <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, 'GB2312').(ord(substr($row["title"],strlen($row["title"])-1,1))>127?" ":""); ?></title>
117                  <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>
118                  <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>
119                  <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))),
120                  <author><? echo $row["username"]." (".htmlspecialchars($row["nickname"]).")"; ?></author>                                                                                  ENT_COMPAT | ENT_HTML401, 'GB2312'); ?></description>
121                    <author><? echo $row["username"]." (".htmlspecialchars($row["nickname"], ENT_COMPAT | ENT_HTML401, 'GB2312').")"; ?></author>
122                  <pubDate><? echo gmstrftime("%a, %d %b %Y %H:%M:%S GMT",strtotime($row["sub_dt"])); ?></pubDate>                  <pubDate><? echo gmstrftime("%a, %d %b %Y %H:%M:%S GMT",strtotime($row["sub_dt"])); ?></pubDate>
123                  <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>
124          </item>          </item>


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

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