Mercurial > SimpleWebPresenter
view sitemap.php @ 134:b6b4a58c7625
Using .inc.php rather than just .inc for include files.
| author | Tom Fredrik Blenning <bfg@bfgconsult.no> |
|---|---|
| date | Sun, 22 Jan 2023 19:22:00 +0100 |
| parents | 6766250a0baa |
| children |
line wrap: on
line source
<?php /** * @file * Generates a sitemap */ include_once 'constants.inc.php'; include_once 'ScriptIncludeCache.inc.php'; /// @cond $baseDir = dirname(__FILE__); $cache = ScriptIncludeCache::instance(__FILE__); $cache->includeOnce('Sitemap.inc.php', 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 ?>
