Mercurial > SimpleWebPresenter
comparison index.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 | ee5f98a0bc93 |
| children |
comparison
equal
deleted
inserted
replaced
| 133:00255ca89459 | 134:b6b4a58c7625 |
|---|---|
| 1 <?php | 1 <?php |
| 2 /** | 2 /** |
| 3 * @file | 3 * @file |
| 4 * Main access point for webpages | 4 * Main access point for webpages |
| 5 */ | 5 */ |
| 6 include_once 'constants.inc'; | 6 include_once 'constants.inc.php'; |
| 7 | 7 |
| 8 include_once 'CacheTimeCheck.inc'; | 8 include_once 'CacheTimeCheck.inc.php'; |
| 9 | 9 |
| 10 /// @cond | 10 /// @cond |
| 11 $baseDir = dirname(__FILE__); | 11 $baseDir = dirname(__FILE__); |
| 12 $scriptCache = ScriptIncludeCache::instance(__FILE__); | 12 $scriptCache = ScriptIncludeCache::instance(__FILE__); |
| 13 | 13 |
| 14 $scriptCache->includeOnce('Language.inc', $baseDir); | 14 $scriptCache->includeOnce('Language.inc.php', $baseDir); |
| 15 $scriptCache->includeOnce('Options.inc', $baseDir); | 15 $scriptCache->includeOnce('Options.inc.php', $baseDir); |
| 16 $scriptCache->includeOnce('common-functions.inc', $baseDir); | 16 $scriptCache->includeOnce('common-functions.inc.php', $baseDir); |
| 17 $scriptCache->includeOnce('filters.inc', $baseDir); | 17 $scriptCache->includeOnce('filters.inc.php', $baseDir); |
| 18 $scriptCache->includeOnce('InputParser.inc', $baseDir); | 18 $scriptCache->includeOnce('InputParser.inc.php', $baseDir); |
| 19 $scriptCache->includeOnce('Logger.inc', $baseDir); | 19 $scriptCache->includeOnce('Logger.inc.php', $baseDir); |
| 20 | 20 |
| 21 if (DEBUG_LEVEL >= VERBOSITY_DEBUG) { | 21 if (DEBUG_LEVEL >= VERBOSITY_DEBUG) { |
| 22 var_dump($_SERVER); | 22 var_dump($_SERVER); |
| 23 } | 23 } |
| 24 | 24 |
