forked from kabasakalis/angular-yii
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
36 lines (29 loc) · 1.37 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
<?php
defined('BACKEND') or define('BACKEND',false);
defined('LOCAL_DOMAIN') or define('LOCAL_DOMAIN','yii.gr');
define('CURRENT_ACTIVE_DOMAIN', $_SERVER['HTTP_HOST']);
defined('APP_DEPLOYED') or define('APP_DEPLOYED',!(CURRENT_ACTIVE_DOMAIN == LOCAL_DOMAIN));
defined('DS') or define('DS',DIRECTORY_SEPARATOR);
//Local Framework Path
$yii=(!APP_DEPLOYED)?dirname(__FILE__).DS.'..'.DS.'..'.DS.'frameworks'.DS .'yii_1.1.13'.DS .'framework'.DS .'yii.php':
//Server framework Path
dirname(__FILE__).DS.'..'.DS.'frameworks'.DS .'yii_1.1.13'.DS .'framework'.DS .'yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';
$shortcuts=dirname(__FILE__).DS.'protected'.DS .'helpers'.DS .'shortcuts.php';
$utils=dirname(__FILE__).DS.'protected'.DS .'helpers'.DS .'utils.php';
//echo function_exists('\php_error\reportErrors') ;exit;
/*if ( function_exists('\php_error\reportErrors') ) {
\php_error\reportErrors (array(
'application_folders' => 'framework',
// 'ignore_folders' => 'system'
)
);
}*/
// 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($shortcuts);
require($utils);
require_once($yii);
Yii::createWebApplication($config)->run();