EngineGP/index.php

62 lines
1.6 KiB
PHP
Raw Normal View History

2023-03-04 23:45:46 +00:00
<?php
2023-11-11 20:56:12 +00:00
header('Content-Type: text/html; charset=utf-8');
header('X-Powered-By: EGP');
date_default_timezone_set('Europe/Moscow');
@ini_set('display_errors', TRUE);
@ini_set('html_errors', TRUE);
@ini_set('error_reporting', E_ALL ^ E_WARNING ^ E_NOTICE ^ E_STRICT);
DEFINE('EGP', TRUE);
DEFINE('DIR', dirname('index.php'));
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/');
$device = isset($_COOKIE['egp_device']) ? $_COOKIE['egp_device'] : '!mobile';
$start_point = $_SERVER['REQUEST_TIME'];
$mcache = new Memcache;
$mcache->connect('127.0.0.1', 11211) or exit('Ошибка: #mc0, обновите страницу позже, если ошибка повторяется, обратитесь в тех.поддержку: <a href="https://enginegp.ru">EGPv3</a>');
// Настройки
include(DATA.'config.php');
include(DATA.'engine.php');
include(DATA.'mysql.php');
include(DATA.'params.php');
// Библиотеки
include(LIB.'sql.php');
include(LIB.'html.php');
include(LIB.'system.php');
$uip = sys::ip();
/* if(!isset($_COOKIE['egp_device']))
{
include(LIB.'megp.php');
$device = $megp->isMobile() ? 'mobile' : '!mobile';
sys::cookie('egp_device', $device, 14);
if($device == 'mobile')
sys::back();
} */
// Распределитель
if($device == '!mobile')
include(SYS.'distributor.php');
/* else
include(SYS.'mdistributor.php'); */
// Выхлоп
echo $html->arr['all'];
2023-03-04 23:45:46 +00:00
?>