-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·23 lines (20 loc) · 870 Bytes
/
index.php
File metadata and controls
executable file
·23 lines (20 loc) · 870 Bytes
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__).'/framework/yii.php';
if($_SERVER['DOCUMENT_ROOT']=='/home/mavpay/public_html/prod'){
$config=dirname(__FILE__).'/protected/config/production.php';
} elseif($_SERVER['DOCUMENT_ROOT']=='/home/mavpay/public_html/dev'){
error_reporting(E_ALL);
ini_set('display_errors', 'On');
$config=dirname(__FILE__).'/protected/config/development.php';
}else {
error_reporting(E_ALL);
ini_set('display_errors', 'On');
$config=dirname(__FILE__).'/protected/config/local.php';
}
// 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);
require_once($yii);
Yii::createWebApplication($config)->run();