Mercurial > SimpleWebPresenter
view index.php @ 68:4dfa3f6a2dc1
Modify CacheTimeCheck to have a common parent, and two different
implementations for script caches and file caches.
Support for linkedcaches.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 11 Oct 2012 23:16:53 +0200 |
| parents | 7b87ec8b0842 |
| children | 218a58bb2f34 |
line wrap: on
line source
<?php /** * @file * Main access point for webpages */ include_once 'constants.inc'; $cacheable = true; include_once 'CacheTimeCheck.inc'; $baseDir = dirname(__FILE__); $cache = ScriptIncludeCache::instance(__FILE__); $cache->includeOnce('Language.inc', $baseDir); $cache->includeOnce('Options.inc', $baseDir); $cache->includeOnce('common-functions.inc', $baseDir); $cache->includeOnce('filters.inc', $baseDir); $cache->includeOnce('InputParser.inc', $baseDir); $cache->includeOnce('Logger.inc', $baseDir); if (DEBUG_LEVEL >= VERBOSITY_DEBUG) { var_dump($_SERVER); } $masterName = basePath() . "/master.xml"; $input = new InputParser($masterName, $cache); $input->genPage(); ?>
