Mercurial > SimpleWebPresenter
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 133:00255ca89459 | 134:b6b4a58c7625 |
|---|---|
| 1 <?php | 1 <?php |
| 2 /** | 2 /** |
| 3 * @file | 3 * @file |
| 4 * Generates a sitemap | 4 * Generates a sitemap |
| 5 */ | 5 */ |
| 6 include_once 'constants.inc'; | 6 include_once 'constants.inc.php'; |
| 7 | 7 |
| 8 include_once 'ScriptIncludeCache.inc'; | 8 include_once 'ScriptIncludeCache.inc.php'; |
| 9 | 9 |
| 10 /// @cond | 10 /// @cond |
| 11 $baseDir = dirname(__FILE__); | 11 $baseDir = dirname(__FILE__); |
| 12 $cache = ScriptIncludeCache::instance(__FILE__); | 12 $cache = ScriptIncludeCache::instance(__FILE__); |
| 13 $cache->includeOnce('Sitemap.inc', dirname(__FILE__)); | 13 $cache->includeOnce('Sitemap.inc.php', dirname(__FILE__)); |
| 14 | 14 |
| 15 try { | 15 try { |
| 16 $base=basePath(); | 16 $base=basePath(); |
| 17 $base=$_SERVER['DOCUMENT_ROOT']; | 17 $base=$_SERVER['DOCUMENT_ROOT']; |
| 18 $sitemap = new Sitemap($base . "/master.xml"); | 18 $sitemap = new Sitemap($base . "/master.xml"); |
