Update of /cvsroot/openfirst/news/rss
In directory sc8-pr-cvs1:/tmp/cvs-serv30823/news/rss
Modified Files:
rss.php
Log Message:
Minor bug fixes in RSS code. Limit actually works, fixed link bug, provided default values for flags.
Index: rss.php
===================================================================
RCS file: /cvsroot/openfirst/news/rss/rss.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** rss.php 13 Oct 2003 17:59:51 -0000 1.3
--- rss.php 22 Oct 2003 01:00:36 -0000 1.4
***************
*** 27,30 ****
--- 27,36 ----
*/
+ if(isset($_GET['headlines'])){
+ $limit = $_GET['headlines'];
+ } else {
+ $limit = 5;
+ }
+
include_once("../../config/globals.php");
***************
*** 70,74 ****
// Data for a single RSS item
! $query = ofirst_dbquery("SELECT * FROM ofirst_news LIMIT 0,5");
while($news = ofirst_dbfetch_object($query)){
--- 76,80 ----
// Data for a single RSS item
! $query = ofirst_dbquery("SELECT * FROM ofirst_news LIMIT ".$limit);
while($news = ofirst_dbfetch_object($query)){
***************
*** 89,93 ****
// $rssfile->getRSSOutput($version);
! $version = $_GET['rss'];
$rssfile->outputRSS($version);
--- 95,103 ----
// $rssfile->getRSSOutput($version);
! if(isset($_GET['rss'])){
! $version = $_GET['rss'];
! } else {
! $version = "2.0";
! }
$rssfile->outputRSS($version);
|