-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
23 lines (18 loc) · 693 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
<?php
// change the following paths if necessary
$yii=dirname(__FILE__).'/protected/framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
if( isset( $_SERVER['CRASHFIX_WEBAPP_DEBUG'] ) )
{
// remove the following lines when in production mode
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);
}
// respect X-Real-IP header from reverse proxy
if(isset($_SERVER['HTTP_X_REAL_IP']))
{
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_REAL_IP'];
}
require_once($yii);
Yii::createWebApplication($config)->run();