@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | $autoloader = __DIR__.'/vendor/autoload.php'; |
| 49 | 49 | if (file_exists($autoloader) && is_readable($autoloader)) { |
| 50 | - include_once($autoloader); |
|
| 50 | + include_once($autoloader); |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | if(!isset($_SERVER['REQUEST_TIME_FLOAT'])) $_SERVER['REQUEST_TIME_FLOAT'] = microtime(true); |
@@ -56,11 +56,11 @@ discard block |
||
| 56 | 56 | if(is_file($base_path . 'assets/cache/siteManager.php')) |
| 57 | 57 | include_once($base_path . 'assets/cache/siteManager.php'); |
| 58 | 58 | if(!defined('MGR_DIR') && is_dir("{$base_path}manager")) |
| 59 | - define('MGR_DIR', 'manager'); |
|
| 59 | + define('MGR_DIR', 'manager'); |
|
| 60 | 60 | if(is_file($base_path . 'assets/cache/siteHostnames.php')) |
| 61 | 61 | include_once($base_path . 'assets/cache/siteHostnames.php'); |
| 62 | 62 | if(!defined('MODX_SITE_HOSTNAMES')) |
| 63 | - define('MODX_SITE_HOSTNAMES', ''); |
|
| 63 | + define('MODX_SITE_HOSTNAMES', ''); |
|
| 64 | 64 | |
| 65 | 65 | // get start time |
| 66 | 66 | $mstart = memory_get_usage(); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | define('IN_PARSER_MODE', true); |
| 86 | 86 | if ( ! defined('IN_MANAGER_MODE')) { |
| 87 | - define('IN_MANAGER_MODE', false); |
|
| 87 | + define('IN_MANAGER_MODE', false); |
|
| 88 | 88 | } |
| 89 | 89 | if (!defined('MODX_API_MODE')) { |
| 90 | 90 | define('MODX_API_MODE', false); |
@@ -92,12 +92,12 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | // get the required includes |
| 94 | 94 | if(!isset($database_user) || $database_user=="") { |
| 95 | - $rt = @include_once(dirname(__FILE__).'/'.MGR_DIR.'/includes/config.inc.php'); |
|
| 96 | - // Be sure config.inc.php is there and that it contains some important values |
|
| 97 | - if(!$rt || !$database_type || !$database_server || !$database_user || !$dbase) { |
|
| 98 | - readfile('install/not_installed.tpl'); |
|
| 99 | - exit; |
|
| 100 | - } |
|
| 95 | + $rt = @include_once(dirname(__FILE__).'/'.MGR_DIR.'/includes/config.inc.php'); |
|
| 96 | + // Be sure config.inc.php is there and that it contains some important values |
|
| 97 | + if(!$rt || !$database_type || !$database_server || !$database_user || !$dbase) { |
|
| 98 | + readfile('install/not_installed.tpl'); |
|
| 99 | + exit; |
|
| 100 | + } |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | // start session |
@@ -105,11 +105,11 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | // initiate a new document parser |
| 107 | 107 | if (isset($coreClass) && class_exists($coreClass)) { |
| 108 | - $modx = new $coreClass; |
|
| 108 | + $modx = new $coreClass; |
|
| 109 | 109 | } |
| 110 | 110 | if (!isset($modx) || !($modx instanceof \DocumentParser)) { |
| 111 | - include_once(MODX_MANAGER_PATH.'includes/document.parser.class.inc.php'); |
|
| 112 | - $modx = DocumentParser::getInstance(); |
|
| 111 | + include_once(MODX_MANAGER_PATH.'includes/document.parser.class.inc.php'); |
|
| 112 | + $modx = DocumentParser::getInstance(); |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | // set some parser options |