Mercurial > SimpleWebPresenter
view sitemap.php @ 117:e01ce5722f2b
New change to how we save (X)HTML files. This time we simplify things
by using DocumentFragments to load stuff, and preserve CDATA content.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Sun, 27 Mar 2016 21:33:08 +0200 |
| 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 ?>
