Skip to content
Permalink
Browse files

Fix create_rss() so it actually outputs usable RSS feeds.

git-svn-id: https://svn.macports.org/repository/macports/trunk/www@4121 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Jim Mock
Jim Mock committed Dec 5, 2003
1 parent 784a50c commit f943fd81ab3f211bc2727ffac36e9377f6f2edf0
Showing with 3 additions and 3 deletions.
  1. +3 −3 includes/functions.inc
@@ -1,6 +1,6 @@
<?php

# $Id: functions.inc,v 1.1 2003/11/19 01:59:08 mij Exp $
# $Id: functions.inc,v 1.2 2003/12/05 23:47:52 mij Exp $
# Copyright (c) 2003, OpenDarwin

######################################################################
@@ -25,7 +25,7 @@ function create_rss() {
}

$open = fopen("$DOCUMENT_ROOT/dp_news.xml", "w+");
$rssdate = substr_replace(date("Y-m-d\TH:i:s0", time()),':', -2, 0);
$rssdate = substr_replace(date("Y-m-d\TH:i:sO", time()),':', -2, 0);

$rss = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n";
$rss .= "<rss version=\"2.0\"\n";
@@ -43,7 +43,7 @@ function create_rss() {
$rss .= " <dc:creator>Jim Mock (mij@opendarwin.org)</dc:creator>\n";
$rss .= " <dc:rights>Copyright 2002-2003</dc:rights>\n";
$rss .= " <dc:date>$rssdate</dc:date>\n";
$rss .= " <admin:errorReportsTo rdf:resource\"mailto:mij@opendarwin.org\" />\n";
$rss .= " <admin:errorReportsTo rdf:resource=\"mailto:mij@opendarwin.org\" />\n";

if(mysql_num_rows($result) > 0) {
while($row = mysql_fetch_object($result)) {

0 comments on commit f943fd8

Please sign in to comment.
You can’t perform that action at this time.