view index.php @ 136:60bc8f62384d default tip

Use internal URL if available to generate Sitemap.
author Tom Fredrik Blenning <bfg@bfgconsult.no>
date Mon, 23 Jan 2023 00:17:36 +0100
parents b6b4a58c7625
children
line wrap: on
line source

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

include_once 'CacheTimeCheck.inc.php';

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

$scriptCache->includeOnce('Language.inc.php', $baseDir);
$scriptCache->includeOnce('Options.inc.php', $baseDir);
$scriptCache->includeOnce('common-functions.inc.php', $baseDir);
$scriptCache->includeOnce('filters.inc.php', $baseDir);
$scriptCache->includeOnce('InputParser.inc.php', $baseDir);
$scriptCache->includeOnce('Logger.inc.php', $baseDir);

if (DEBUG_LEVEL >= VERBOSITY_DEBUG) {
  var_dump($_SERVER);
}

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

?>