Commit f528c238 authored by Robert Ricci's avatar Robert Ricci

Add global pubDate and lastBuildDate tags in the hopes that they will

help readers identifiy new items.

Also, fix the webMaster and managingEditor elements - I was using the
name of the defs variable, not the name of the PHP variable...
parent bd20dd17
......@@ -23,9 +23,12 @@ $query_result=
<link><? echo $TBBASE?>/news.php3</link>
<description>News items for <? echo $THISHOMEBASE ?></description>
<managingEditor><? echo $TBOPSEMAIL ?></managingEditor>
<webMaster><? echo $TBOPSEMAIL ?></webMaster>
<managingEditor><? echo $TBMAILADDR_OPS ?></managingEditor>
<webMaster><? echo $TBMAILADDR_OPS ?></webMaster>
<pubDate><? echo date("r"); ?></pubDate>
$first = 1;
while ($row = mysql_fetch_array($query_result)) {
$subject = $row[subject];
$timestamp = $row['date'];
......@@ -54,6 +57,13 @@ while ($row = mysql_fetch_array($query_result)) {
list($hour,$min,$sec) = split(':',$hours);
$rfc822date = date(r,mktime($hour, $min, $sec, $month, $day, $year));
if ($first) {
# If this is the 'first' article (the most recent), include it as
# the date the channel was last updated
echo " <lastBuildDate>" . $rfc822date . "</lastBuildDate>\n";
$first = 0;
echo " <item>\n";
echo " <title>$subject</title>\n";
echo " <link>$TBBASE/news.php3?single=$msgid</link>\n";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment