Mercurial > SimpleWebPresenter
diff index.php @ 44:79f708a48a7c
Added a constants include.
Refactored out functions from sitemap.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Mon, 08 Oct 2012 02:01:04 +0200 |
| parents | 2a3ff56697db |
| children | 66382989353f |
line wrap: on
line diff
--- a/index.php Fri Oct 05 03:16:23 2012 +0200 +++ b/index.php Mon Oct 08 02:01:04 2012 +0200 @@ -1,24 +1,5 @@ <?php -define(VERBOSITY_NONE, 0); -define(VERBOSITY_ERROR, 1); -define(VERBOSITY_WARNING, 10); -define(VERBOSITY_DEBUG, 100); - -define(DEBUG_LEVEL, VERBOSITY_WARNING); - -define(DUMP, 0); -define(MAX_RECURSE, 50); -define(CACHING, 1); - - -if (DEBUG_LEVEL >= VERBOSITY_DEBUG) { - var_dump($_SERVER); -} - -if (DEBUG_LEVEL >= VERBOSITY_WARNING) { - error_reporting(E_ALL); - ini_set("display_errors", 1); -} +include_once 'constants.inc'; $cacheable = true; @@ -31,6 +12,10 @@ $cache->includeOnce('filters.inc', dirname(__FILE__)); $cache->includeOnce('inputParser.inc', dirname(__FILE__)); +if (DEBUG_LEVEL >= VERBOSITY_DEBUG) { + var_dump($_SERVER); +} + $master = new DOMDocument(); $masterName = basePath() . "/master.xml"; $master->load($masterName);
