<?php 
include("/home/visitor/php/include/core.php");
$connection = new MySqlConnection($CalendarDatabaseSettings['Host'], $CalendarDatabaseSettings['Name'], $CalendarDatabaseSettings['User'], $CalendarDatabaseSettings['Pass']);
$sql = "SELECT * FROM `this_week` WHERE `id` = 1";
if($connection->runQuery($sql)) {
$Data = $connection->fetchArray();
}
$Date = new SqlDate($Data['date']);
echo '<?xml version="1.0" encoding="utf-8"?>' . "\n"; 
?>
<rss version="2.0"><channel>
<title>What's on this week for the Mornington Peninsula</title>
<link>http://www.visitor.com.au</link>
<description>Events this week on the Mornington Peninsula as broadcast on 3MP on Sunday and Thursday mornings</description>
<language>en</language>
<managingEditor>visitor@visitor.com.au</managingEditor>
<webMaster>cris@u-net.com.au</webMaster>
<pubDate><?=$Date->dateFormat('l, d F Y');?> 12:00:00 GMT</pubDate>
<ttl>2880</ttl>
<image>
<title>Visitor Publications and 3MP</title>
<url>http://www.visitor.com.au/images/Visitorlogoblue200.gif</url>
<link>What's on this week for the Mornington Peninsula</link>
</image>
<generator>FeedSpring - http://feedspring.com/</generator>
<lastBuildDate><?=$Date->dateFormat('D, d F Y');?> 12:00:00 GMT</lastBuildDate>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<item><title>This week's events on the Mornington Peninsula</title>
<link>http://visitor.com.au/thisweek.html</link>
<description>
<![CDATA[
<?php
echo $Data['copy'];
?>
]]>
</description>
<pubDate><?=$Date->dateFormat('D, d F Y');?> 12:00:00 GMT</pubDate>
</item>
</channel>
</rss>
