<?
# Slashster: Open Source Friend of a Friend Software
# Copyright 2004 Mark El-Wakil
# Contact: hide@address.com
# http://seventhcycle.net
#
# This file is part of Slashster.
#
# Slashster is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Slashster is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Slashster; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import_request_variables("gPc");
require("PageClass.php");
$mpage = new PageClass("authonly");
$sql = "select UpdateTable.*, UNIX_TIMESTAMP(Date) as UT
from UpdateTable order by Id desc limit 10";
$r = $mpage->DoQuery($sql, 1);
echo "<" . "?xml version=\"1.0\"?" . ">";
?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://my.netscape.com/rdf/simple/0.9/">
<channel>
<title><?= $mpage->sys[sitename] ?> Updates</title>
<link><?= $mpage->stdurl ?></link>
<description>Meet people... live, flourish.</description>
<? foreach ($r as $s) { ?>
<item>
<title><?= htmlentities($s[Title]) ?> </title>
<link><?= $mpage->sys[normalurl] ?>news.php?id=<?= $s[Id] ?></link>
</item>
<? } ?>
</channel>
</rdf:RDF>