forked from ukryama/UkrYama.Yii
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
30 lines (23 loc) · 1021 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
defined('C_DATEFORMAT') or define('C_DATEFORMAT', 'd.m.Y');
defined('C_DATEFORMAT_JS') or define('C_DATEFORMAT_JS', 'dd.mm.yy');
defined('C_TIMEFORMAT') or define('C_TIMEFORMAT', 'h:m');
setlocale(LC_TIME, array("ru_RU","rus_RUS"));
// change the following paths if necessary
$yii=dirname(__FILE__).'/../yii-last/framework/yii.php';
if($_SERVER['HTTP_HOST']!='xml.ukryama.com' and $_SERVER['HTTP_HOST']!='xml.dev.ukryama.com')
$config=dirname(__FILE__).'/protected/config/main.php';
else
$config=dirname(__FILE__).'/protected/config/xml.php';
// remove the following lines when in production mode
if (isset($_GET['testing']) && $_GET['testing']==1){
defined('YII_DEBUG') or define('YII_DEBUG',true);
}
else {
defined('YII_DEBUG') or define('YII_DEBUG',true);
}
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
define('SITE_TEMPLATE_PATH', '/');
require_once($yii);
Yii::createWebApplication($config)->run();