Mercurial > SimpleWebPresenter
comparison index.php @ 71:218a58bb2f34
Cleanup
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 11 Oct 2012 23:46:32 +0200 |
| parents | 4dfa3f6a2dc1 |
| children | 947d53f95ccd |
comparison
equal
deleted
inserted
replaced
| 69:dd4ddedca4c5 | 71:218a58bb2f34 |
|---|---|
| 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'; |
| 7 | 7 |
| 8 $cacheable = true; | |
| 9 | |
| 10 include_once 'CacheTimeCheck.inc'; | 8 include_once 'CacheTimeCheck.inc'; |
| 11 | 9 |
| 10 /// @cond | |
| 12 $baseDir = dirname(__FILE__); | 11 $baseDir = dirname(__FILE__); |
| 12 $scriptCache = ScriptIncludeCache::instance(__FILE__); | |
| 13 | 13 |
| 14 $cache = ScriptIncludeCache::instance(__FILE__); | 14 $scriptCache->includeOnce('Language.inc', $baseDir); |
| 15 $cache->includeOnce('Language.inc', $baseDir); | 15 $scriptCache->includeOnce('Options.inc', $baseDir); |
| 16 $cache->includeOnce('Options.inc', $baseDir); | 16 $scriptCache->includeOnce('common-functions.inc', $baseDir); |
| 17 $cache->includeOnce('common-functions.inc', $baseDir); | 17 $scriptCache->includeOnce('filters.inc', $baseDir); |
| 18 $cache->includeOnce('filters.inc', $baseDir); | 18 $scriptCache->includeOnce('InputParser.inc', $baseDir); |
| 19 $cache->includeOnce('InputParser.inc', $baseDir); | 19 $scriptCache->includeOnce('Logger.inc', $baseDir); |
| 20 $cache->includeOnce('Logger.inc', $baseDir); | |
| 21 | 20 |
| 22 if (DEBUG_LEVEL >= VERBOSITY_DEBUG) { | 21 if (DEBUG_LEVEL >= VERBOSITY_DEBUG) { |
| 23 var_dump($_SERVER); | 22 var_dump($_SERVER); |
| 24 } | 23 } |
| 25 | 24 |
| 26 $masterName = basePath() . "/master.xml"; | 25 $input = new InputParser(basePath() . "/master.xml", $cache); |
| 27 | |
| 28 $input = new InputParser($masterName, $cache); | |
| 29 | 26 |
| 30 $input->genPage(); | 27 $input->genPage(); |
| 28 /// @endcond | |
| 29 | |
| 31 ?> | 30 ?> |
