view index.php @ 88:7a9c45b53866

Add possibility to validate using validator.w3.org
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Wed, 17 Oct 2012 20:43:07 +0200
parents 4acaab0b02e2
children 6766250a0baa
line wrap: on
line source

<?php
/**
 * @file
 * Main access point for webpages
 */
include_once 'constants.inc';

include_once 'CacheTimeCheck.inc';

/// @cond
$baseDir = dirname(__FILE__);
$scriptCache = ScriptIncludeCache::instance(__FILE__);

$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);
}

try {
  $input = new InputParser(basePath() . "/master.xml", $cache);
  $input->display();
}
catch (Exception $e) {
  errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR);
}
/// @endcond

?>