Update index.php
This commit is contained in:
parent
6c7ed43d9f
commit
9b064ba060
68
index.php
68
index.php
|
@ -1,29 +1,29 @@
|
||||||
<?php
|
<?php
|
||||||
header('Content-Type: text/html; charset=utf-8');
|
header('Content-Type: text/html; charset=utf-8');
|
||||||
header('X-Powered-By: EGP');
|
header('X-Powered-By: EGP');
|
||||||
|
|
||||||
date_default_timezone_set('Europe/Moscow');
|
date_default_timezone_set('Europe/Moscow');
|
||||||
|
|
||||||
@ini_set('display_errors', TRUE);
|
@ini_set('display_errors', TRUE);
|
||||||
@ini_set('html_errors', TRUE);
|
@ini_set('html_errors', TRUE);
|
||||||
@ini_set('error_reporting', E_ALL ^ E_WARNING ^ E_NOTICE ^ E_STRICT);
|
@ini_set('error_reporting', E_ALL ^ E_WARNING ^ E_NOTICE ^ E_STRICT);
|
||||||
|
|
||||||
DEFINE('EGP', TRUE);
|
DEFINE('EGP', TRUE);
|
||||||
DEFINE('DIR', dirname('index.php'));
|
DEFINE('DIR', dirname('index.php'));
|
||||||
DEFINE('ROOT', DIR.'/');
|
DEFINE('ROOT', DIR.'/');
|
||||||
DEFINE('SYS', ROOT.'system/');
|
DEFINE('SYS', ROOT.'system/');
|
||||||
DEFINE('TPL', ROOT.'template/');
|
DEFINE('TPL', ROOT.'template/');
|
||||||
DEFINE('TEMP', ROOT.'temp/');
|
DEFINE('TEMP', ROOT.'temp/');
|
||||||
DEFINE('FILES', ROOT.'files/');
|
DEFINE('FILES', ROOT.'files/');
|
||||||
DEFINE('DATA', SYS.'data/');
|
DEFINE('DATA', SYS.'data/');
|
||||||
DEFINE('LIB', SYS.'library/');
|
DEFINE('LIB', SYS.'library/');
|
||||||
DEFINE('ENG', SYS.'engine/');
|
DEFINE('ENG', SYS.'engine/');
|
||||||
DEFINE('SEC', SYS.'sections/');
|
DEFINE('SEC', SYS.'sections/');
|
||||||
|
|
||||||
$start_point = $_SERVER['REQUEST_TIME'];
|
$start_point = $_SERVER['REQUEST_TIME'];
|
||||||
|
|
||||||
$mcache = new Memcache;
|
$mcache = new Memcache;
|
||||||
$mcache->connect('127.0.0.1', 11211) or exit('Ошибка подключения Memcache');
|
$mcache->connect('127.0.0.1', 11211) or exit('Ошибка подключения Memcache');
|
||||||
|
|
||||||
// Composer
|
// Composer
|
||||||
if (!file_exists(ROOT.'vendor/autoload.php')) {
|
if (!file_exists(ROOT.'vendor/autoload.php')) {
|
||||||
|
@ -31,22 +31,22 @@
|
||||||
}
|
}
|
||||||
require(ROOT.'vendor/autoload.php');
|
require(ROOT.'vendor/autoload.php');
|
||||||
|
|
||||||
// Настройки
|
// Настройки
|
||||||
include(DATA.'config.php');
|
include(DATA.'config.php');
|
||||||
include(DATA.'engine.php');
|
include(DATA.'engine.php');
|
||||||
include(DATA.'mysql.php');
|
include(DATA.'mysql.php');
|
||||||
include(DATA.'params.php');
|
include(DATA.'params.php');
|
||||||
|
|
||||||
// Библиотеки
|
// Библиотеки
|
||||||
include(LIB.'sql.php');
|
include(LIB.'sql.php');
|
||||||
include(LIB.'html.php');
|
include(LIB.'html.php');
|
||||||
include(LIB.'system.php');
|
include(LIB.'system.php');
|
||||||
|
|
||||||
$uip = sys::ip();
|
$uip = sys::ip();
|
||||||
|
|
||||||
// Распределитель
|
// Распределитель
|
||||||
include(SYS.'distributor.php');
|
include(SYS.'distributor.php');
|
||||||
|
|
||||||
// Выхлоп
|
// Выхлоп
|
||||||
echo $html->arr['all'];
|
echo $html->arr['all'];
|
||||||
?>
|
?>
|
Loading…
Reference in a new issue