|
65 | 65 | define('IN_INSTALL_MODE', false); |
66 | 66 | } |
67 | 67 |
|
68 | | -if (!defined('MODX_API_MODE')) { |
69 | | - define('MODX_API_MODE', false); |
| 68 | +if (!defined('EVO_API_MODE')) { |
| 69 | + define('EVO_API_MODE', false); |
70 | 70 | } |
71 | 71 |
|
72 | | -if (! defined('IN_PARSER_MODE')) { |
| 72 | +if (!defined('IN_PARSER_MODE')) { |
73 | 73 | define('IN_PARSER_MODE', false); |
74 | 74 | } |
75 | 75 |
|
|
110 | 110 | header('X-UA-Compatible: IE=edge;FF=3;OtherUA=4'); |
111 | 111 | header('X-XSS-Protection: 0'); |
112 | 112 |
|
113 | | -// check PHP version. EVO is compatible with php 5 (5.6.0+) |
114 | | -$php_ver_comp = version_compare(phpversion(), "7.1.3"); |
| 113 | +$php_ver_comp = version_compare(phpversion(), "8.3"); |
115 | 114 | // -1 if left is less, 0 if equal, +1 if left is higher |
116 | 115 | if ($php_ver_comp < 0) { |
117 | | - echo 'Evolution CMS is compatible with PHP version 7.1.3 and higher. This server is using version ' . phpversion() . '. Please upgrade your PHP installation!'; |
| 116 | + echo 'Evolution CMS is compatible with PHP version 8.3 and higher. This server is using version ' . phpversion() . '. Please upgrade your PHP installation!'; |
118 | 117 | exit; |
119 | 118 | } |
120 | 119 |
|
|
134 | 133 | } |
135 | 134 |
|
136 | 135 | // initiate the content manager class |
137 | | -$modx = evo(); |
138 | | -$modx->mstart = $mstart; |
| 136 | +$evo = evo(); |
| 137 | +$evo->mstart = $mstart; |
139 | 138 | $useLaravelSession = defined('EVO_SESSION') && EVO_SESSION; |
140 | 139 | if ($useLaravelSession) { |
141 | 140 | \EvoSessionProxy::init(); |
142 | 141 | } |
143 | | -$modx->sid = session_id(); |
| 142 | +$evo->sid = session_id(); |
144 | 143 |
|
145 | | -//$settings = $modx->allConfig(); |
| 144 | +//$settings = $evo->allConfig(); |
146 | 145 | //extract($settings, EXTR_OVERWRITE); |
147 | 146 |
|
148 | 147 |
|
|
161 | 160 | $action = 0; |
162 | 161 |
|
163 | 162 | // Update table active_user_sessions |
164 | | -$modx->updateValidatedUserSession(); |
| 163 | +$evo->updateValidatedUserSession(); |
165 | 164 |
|
166 | 165 | ManagerTheme::handleRoute(); |
0 commit comments