2928116517
Ебать мем) у нас дебаг отключен.
43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<?php
|
||
date_default_timezone_set('Europe/Moscow');
|
||
|
||
@ini_set('display_errors', TRUE);
|
||
@ini_set('html_errors', TRUE);
|
||
@ini_set('error_reporting', E_ALL);
|
||
|
||
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/');
|
||
DEFINE('CRON', LIB.'cron/');
|
||
|
||
$start_point = $_SERVER['REQUEST_TIME'];
|
||
|
||
$mcache = new Memcache;
|
||
$mcache->connect('127.0.0.1', 11211) OR exit('Ошибка: не удалось создать связь с Memcache.'.PHP_EOL);
|
||
|
||
// Настройки
|
||
include(DATA.'config.php');
|
||
|
||
/*if($argv[1] != $cfg['cron_key'])
|
||
exit('error key.'.PHP_EOL);
|
||
*/
|
||
$task = $argv[2];
|
||
|
||
include(DATA.'engine.php');
|
||
include(DATA.'mysql.php');
|
||
include(DATA.'params.php');
|
||
|
||
// Библиотеки
|
||
include(LIB.'sql.php');
|
||
include(LIB.'html.php');
|
||
include(LIB.'system.php');
|
||
include(LIB.'cron.php');
|
||
?>
|