__DIR__ . '/core', 'manager' => __DIR__ . '/manager', 'root' => __DIR__ ]; if (file_exists(__DIR__ . '/config.php')) { $config = array_merge($config, require __DIR__ . '/config.php'); } if (!defined('IN_INSTALL_MODE') && !file_exists($config['core'] . '/.install')) { header('HTTP/1.1 503 Service Temporarily Unavailable'); header('Status: 503 Service Temporarily Unavailable'); header('Retry-After: 3600'); $path = __DIR__ . '/install/src/template/not_installed.tpl'; if (file_exists($path)) { readfile($path); } else { echo '

Unable to load configuration settings

'; echo 'Please run the Evolution CMS install utility'; } exit; } if (!defined('IN_INSTALL_MODE')) { define('IN_INSTALL_MODE', false); } if (IN_INSTALL_MODE) { // set some settings, and address some IE issues @ini_set('url_rewriter.tags', ''); @ini_set('session.use_trans_sid', 0); @ini_set('session.use_only_cookies', 1); } require $config['core'] . '/bootstrap.php'; if (IN_INSTALL_MODE == false) { header('P3P: CP="NOI NID ADMa OUR IND UNI COM NAV"'); // header for weird cookie stuff. Blame IE. header('Cache-Control: private, must-revalidate'); } ob_start(); /** * Filename: index.php * Function: This file loads and executes the parser. * */ define('IN_PARSER_MODE', true); if (!defined('IN_MANAGER_MODE')) { define('IN_MANAGER_MODE', false); } if (!defined('MODX_API_MODE')) { define('MODX_API_MODE', false); } if (!defined('MODX_CLI')) { define('MODX_CLI', false); } // initiate a new document parser $modx = evolutionCMS(); // set some parser options $modx->minParserPasses = 1; // min number of parser recursive loops or passes $modx->maxParserPasses = 10; // max number of parser recursive loops or passes $modx->dumpSQL = false; $modx->dumpSnippets = false; // feed the parser the execution start time $modx->dumpPlugins = false; $modx->mstart = $mstart; // Debugging mode: $modx->stopOnNotice = false; // Don't show PHP errors to the public if (!isset($_SESSION['mgrValidated']) || !$_SESSION['mgrValidated']) { @ini_set("display_errors", "0"); } if (is_cli()) { @set_time_limit(0); @ini_set('max_execution_time', 0); } // execute the parser if index.php was not included if (!MODX_API_MODE && !MODX_CLI) { $modx->processRoutes(); }