All pastes #339461 Raw Edit

Untitled

public text v1 · immutable
·published 2007-02-04 02:25 UTC
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&#13;&#10;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;
==