-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
40 lines (31 loc) · 1.02 KB
/
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
31
32
33
34
35
36
37
38
39
40
<?php
/**
* Entry point script:
*
* @category YupeScript
* @package YupeCMS
* @author Yupe Team <[email protected]>
* @license https://github.com/yupe/yupe/blob/master/LICENSE BSD
* @link http://yupe.ru
**/
/**
* @link http://www.yiiframework.ru/doc/guide/ru/basics.entry
*/
if (!ini_get('date.timezone')) {
date_default_timezone_set('Europe/Moscow');
}
// Setting internal encoding to UTF-8.
if (!ini_get('mbstring.internal_encoding')) {
@ini_set("mbstring.internal_encoding", 'UTF-8');
mb_internal_encoding('UTF-8');
}
// Comment next two lines on production
//define('YII_DEBUG', true);
//defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
require __DIR__ . '/vendor/yiisoft/yii/framework/yii.php';
set_time_limit(1000);
$base = require __DIR__ . '/protected/config/main.php';
$confManager = new yupe\components\ConfigManager();
$confManager->sentEnv(\yupe\components\ConfigManager::ENV_WEB);
require __DIR__ . '/vendor/autoload.php';
Yii::createWebApplication($confManager->merge($base))->run();