Mercurial > SimpleWebPresenter
view index.php @ 134:b6b4a58c7625
Using .inc.php rather than just .inc for include files.
| author | Tom Fredrik Blenning <bfg@bfgconsult.no> |
|---|---|
| date | Sun, 22 Jan 2023 19:22:00 +0100 |
| parents | ee5f98a0bc93 |
| 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 ?>
