Minimal implementations of sitemap for make benefit glorious engines of
search.
--- /dev/null
+<?php
+ob_clean();
+header('Content-Type: application/atom+xml; charset=utf-8');
+print '<?xml version="1.0" encoding="utf-8"?>';
+$siteref = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . '://' . $_SERVER['HTTP_HOST'];
+?>
+
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+<?php
+$search = new PageSearch();
+foreach ($search->files() as $link) {
+ $article = new ArchiveArticle($link);
+ print '<url>';
+ print "<loc>$siteref/{$article->link}</loc>";
+ if ($article->last) {
+ print "<lastmod>{$article->lastiso}</lastmod>";
+ }
+ print "</url>\n";
+}
+?>
+</urlset>
+<?php
+exit;