32,7 → 32,7 |
$query->fetchInto($log, DB_FETCHMODE_ASSOC); |
$lastbuilddate = date("r",strtotime($log["log_record"])); |
$result = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"; |
$result .= "<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n>\n"; |
$result .= "<rss version=\"2.0\"\n xmlns:content=\"http://purl.org/rss/1.0/modules/content/\"\n xmlns:dc=\"http://purl.org/dc/elements/1.1/\"\n xmlns:atom=\"http://www.w3.org/2005/Atom\"\n>\n"; |
$result .= "<channel>\n"; |
$result .= "<title>Ant: последние изменения</title>\n"; |
$result .= "<link>http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/</link>\n"; |
40,6 → 40,7 |
$result .= "<language>ru</language>\n"; |
$result .= "<docs>http://blogs.law.harvard.edu/tech/rss</docs>\n"; |
$result .= "<lastBuildDate>".$lastbuilddate."</lastBuildDate>\n"; |
$result .= "<atom:link href=\"http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])."/feed.php\" rel=\"self\" type=\"".$header."\" />\n"; |
$query =& $db->query("SELECT * FROM changelog ORDER BY log_id DESC LIMIT 10"); |
if ($query->numRows()>0) { |
while ($query->fetchInto($log, DB_FETCHMODE_ASSOC)) { |
58,7 → 59,7 |
break; |
} |
|
header("Content-type: ".$header); |
header("Content-type: ".$header."\n\n"); |
echo $result; |
|
?> |