rendered paste body==
# Google Sitemap Generator for Wigwam
# (c) 2007 Adam Newbold | neatnik.net
header("Content-type: text/xml");
$files = glob(CONTENT_DIR.'/*');
echo '<?xml version="1.0" encoding="UTF-8"?>'."\\n".'<urlset xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">';
echo "\\n".'<url><loc>http://neatnik.net</loc></url>';
foreach($files as $file) {
echo "\\n".'<url><loc>http://neatnik.net/'.str_replace(PAGEDIR.'/','', $file).'</loc></url>';
}
echo '</urlset>';
exit;
==