<?php

date_default_timezone_set('Europe/Minsk');
setlocale (LC_ALL, 'ru_RU');

define('YII_ROOT', dirname(__FILE__));
define('YII_DEV', file_exists(YII_ROOT."/dev.ls"));
define('CACHE_TIME', 24*60*60);


if(YII_DEV || isset($_GET['dbg'])){
    error_reporting(E_ALL);
    ini_set("display_errors", 1);
}

defined('YII_DEBUG') or define('YII_DEBUG', 1);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);

date_default_timezone_set("Europe/Minsk");

$yii = dirname(__FILE__).'/framework/yiilite.php';
$config = dirname(__FILE__).'/application/config/front.php';
require_once dirname(__FILE__).'/application/helpers/global.php';
require_once($yii);

Yii::createWebApplication($config)->runEnd('front');