Mercurial > SimpleWebPresenter
view sitemap.php @ 124:6766250a0baa
Support for parameters as directory structure.
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Fri, 29 Dec 2017 19:59:22 +0100 |
| parents | 41c128ba0c2c |
| children | b6b4a58c7625 |
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 { $base=basePath(); $base=$_SERVER['DOCUMENT_ROOT']; $sitemap = new Sitemap($base . "/master.xml"); $sitemap->display(); } catch (Exception $e) { errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR); } /// @endcond ?>
