Mercurial > SimpleWebPresenter
view sitemap.php @ 110:6f5939bf53c3
Set flag cache expiry time to today + 30 days
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Tue, 08 Mar 2016 00:43:48 +0100 |
| parents | 41c128ba0c2c |
| children | 6766250a0baa |
line wrap: on
line source
<?php /** * @file * Generates a sitemap */ include_once 'constants.inc'; include_once 'ScriptIncludeCache.inc'; /// @cond $baseDir = dirname(__FILE__); $cache = ScriptIncludeCache::instance(__FILE__); $cache->includeOnce('Sitemap.inc', dirname(__FILE__)); try { $sitemap = new Sitemap(basePath() . "/master.xml"); $sitemap->display(); } catch (Exception $e) { errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR); } /// @endcond ?>
