/[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.8 by sysadm, Sat Mar 1 09:08:07 2025 UTC Revision 1.11 by sysadm, Wed Mar 12 13:28:32 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 "../lib/lml.inc.php";
4  ?>  ?>
5  <?  <?
6  header ("Content-Type: text/xml; charset=UTF-8");  header ("Content-Type: text/xml; charset=UTF-8");
# Line 112  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, 'UTF-8').(ord(substr($row["title"],strlen($row["title"])-1,1))>127?" ":""); ?></title>                  <title><? echo htmlspecialchars($row["title"], ENT_HTML401, 'UTF-8'); ?></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)),
119                                                                                  ENT_COMPAT | ENT_HTML401, 'UTF-8'); ?></description>                                  false))), ENT_HTML401, 'UTF-8'); ?></description>
120                  <author><? echo $row["username"]." (".htmlspecialchars($row["nickname"], ENT_COMPAT | ENT_HTML401, 'UTF-8').")"; ?></author>                  <author><? echo htmlspecialchars($row["username"], ENT_HTML401, 'UTF-8') ; ?> (<? echo htmlspecialchars($row["nickname"], 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>
124  <?  <?
125  }  }
126  mysql_free_result($rs);  mysql_free_result($rs);
127    
128  mysql_close($db_conn);  mysql_close($db_conn);


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

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