Mercurial > SimpleWebPresenter
comparison index.php @ 44:79f708a48a7c
Added a constants include.
Refactored out functions from sitemap.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Mon, 08 Oct 2012 02:01:04 +0200 |
| parents | 2a3ff56697db |
| children | 66382989353f |
comparison
equal
deleted
inserted
replaced
| 43:f42dbf44b661 | 44:79f708a48a7c |
|---|---|
| 1 <?php | 1 <?php |
| 2 define(VERBOSITY_NONE, 0); | 2 include_once 'constants.inc'; |
| 3 define(VERBOSITY_ERROR, 1); | |
| 4 define(VERBOSITY_WARNING, 10); | |
| 5 define(VERBOSITY_DEBUG, 100); | |
| 6 | |
| 7 define(DEBUG_LEVEL, VERBOSITY_WARNING); | |
| 8 | |
| 9 define(DUMP, 0); | |
| 10 define(MAX_RECURSE, 50); | |
| 11 define(CACHING, 1); | |
| 12 | |
| 13 | |
| 14 if (DEBUG_LEVEL >= VERBOSITY_DEBUG) { | |
| 15 var_dump($_SERVER); | |
| 16 } | |
| 17 | |
| 18 if (DEBUG_LEVEL >= VERBOSITY_WARNING) { | |
| 19 error_reporting(E_ALL); | |
| 20 ini_set("display_errors", 1); | |
| 21 } | |
| 22 | 3 |
| 23 $cacheable = true; | 4 $cacheable = true; |
| 24 | 5 |
| 25 include_once 'CacheTimeCheck.inc'; | 6 include_once 'CacheTimeCheck.inc'; |
| 26 | 7 |
| 28 $cache->includeOnce('Options.inc', dirname(__FILE__)); | 9 $cache->includeOnce('Options.inc', dirname(__FILE__)); |
| 29 $cache->includeOnce('accept-language.inc', dirname(__FILE__)); | 10 $cache->includeOnce('accept-language.inc', dirname(__FILE__)); |
| 30 $cache->includeOnce('common-functions.inc', dirname(__FILE__)); | 11 $cache->includeOnce('common-functions.inc', dirname(__FILE__)); |
| 31 $cache->includeOnce('filters.inc', dirname(__FILE__)); | 12 $cache->includeOnce('filters.inc', dirname(__FILE__)); |
| 32 $cache->includeOnce('inputParser.inc', dirname(__FILE__)); | 13 $cache->includeOnce('inputParser.inc', dirname(__FILE__)); |
| 14 | |
| 15 if (DEBUG_LEVEL >= VERBOSITY_DEBUG) { | |
| 16 var_dump($_SERVER); | |
| 17 } | |
| 33 | 18 |
| 34 $master = new DOMDocument(); | 19 $master = new DOMDocument(); |
| 35 $masterName = basePath() . "/master.xml"; | 20 $masterName = basePath() . "/master.xml"; |
| 36 $master->load($masterName); | 21 $master->load($masterName); |
| 37 | 22 |
