view sitemap.php @ 73:947d53f95ccd

Refactor Sitemap into a separate class. Catch all exceptions in index.php and send a 500 error if nothing else catches it. Check response status before submitting to sitemap.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Fri, 12 Oct 2012 01:06:32 +0200
parents dd4ddedca4c5
children 1d5166aba2c5
line wrap: on
line source

<?
/**
 * @file
 * Generates a sitemap
 */

include_once 'ScriptIncludeCache.inc';

/// @cond
$baseDir = dirname(__FILE__);
$cache = ScriptIncludeCache::instance(__FILE__);
$cache->includeOnce('Sitemap.inc', dirname(__FILE__));
/// @endcond

$sitemap = new Sitemap("master.xml");
$sitemap->genPage();
?>