|
@@ -5,18 +5,17 @@ date_default_timezone_set('Europe/Moscow');
|
|
|
@ini_set('html_errors', TRUE);
|
|
|
@ini_set('error_reporting', E_ALL);
|
|
|
|
|
|
-DEFINE('EGP', TRUE);
|
|
|
-DEFINE('DIR', __DIR__);
|
|
|
-DEFINE('ROOT', DIR . '/');
|
|
|
-DEFINE('SYS', ROOT . 'system/');
|
|
|
-DEFINE('TPL', ROOT . 'template/');
|
|
|
-DEFINE('TEMP', ROOT . 'temp/');
|
|
|
-DEFINE('FILES', ROOT . 'files/');
|
|
|
-DEFINE('DATA', SYS . 'data/');
|
|
|
-DEFINE('LIB', SYS . 'library/');
|
|
|
-DEFINE('ENG', SYS . 'engine/');
|
|
|
-DEFINE('SEC', SYS . 'sections/');
|
|
|
-DEFINE('CRON', LIB . 'cron/');
|
|
|
+define('EGP', TRUE);
|
|
|
+define('DIR', __DIR__ . '/');
|
|
|
+define('SYS', DIR . 'system/');
|
|
|
+define('TPL', DIR . 'template/');
|
|
|
+define('TEMP', DIR . 'temp/');
|
|
|
+define('FILES', DIR . 'files/');
|
|
|
+define('DATA', SYS . 'data/');
|
|
|
+define('LIB', SYS . 'library/');
|
|
|
+define('ENG', SYS . 'engine/');
|
|
|
+define('SEC', SYS . 'sections/');
|
|
|
+define('CRON', LIB . 'cron/');
|
|
|
|
|
|
$start_point = $_SERVER['REQUEST_TIME'];
|
|
|
|
|
@@ -24,10 +23,10 @@ $mcache = new Memcache;
|
|
|
$mcache->connect('127.0.0.1', 11211) or exit('Ошибка: не удалось создать связь с Memcache.' . PHP_EOL);
|
|
|
|
|
|
// Composer
|
|
|
-if (!file_exists(ROOT . 'vendor/autoload.php')) {
|
|
|
+if (!file_exists(DIR . 'vendor/autoload.php')) {
|
|
|
die('Please <a href="https://getcomposer.org/download/" target="_blank" rel="noreferrer" style="color:#0a25bb;">install composer</a> and run <code style="background:#222;color:#00e01f;padding:2px 6px;border-radius:3px;">composer install</code>');
|
|
|
}
|
|
|
-require(ROOT . 'vendor/autoload.php');
|
|
|
+require(DIR . 'vendor/autoload.php');
|
|
|
|
|
|
// Настройки
|
|
|
include(DATA . 'config.php');
|