diff 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
line wrap: on
line diff
--- a/index.php	Thu Oct 11 23:32:14 2012 +0200
+++ b/index.php	Thu Oct 11 23:46:32 2012 +0200
@@ -5,27 +5,26 @@
  */
 include_once 'constants.inc';
 
-$cacheable = true;
-
 include_once 'CacheTimeCheck.inc';
 
+/// @cond
 $baseDir = dirname(__FILE__);
+$scriptCache = ScriptIncludeCache::instance(__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);
+$scriptCache->includeOnce('Language.inc', $baseDir);
+$scriptCache->includeOnce('Options.inc', $baseDir);
+$scriptCache->includeOnce('common-functions.inc', $baseDir);
+$scriptCache->includeOnce('filters.inc', $baseDir);
+$scriptCache->includeOnce('InputParser.inc', $baseDir);
+$scriptCache->includeOnce('Logger.inc', $baseDir);
 
 if (DEBUG_LEVEL >= VERBOSITY_DEBUG) {
   var_dump($_SERVER);
 }
 
-$masterName = basePath() . "/master.xml";
-
-$input = new InputParser($masterName, $cache);
+$input = new InputParser(basePath() . "/master.xml", $cache);
 
 $input->genPage();
+/// @endcond
+
 ?>
\ No newline at end of file