-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathindex.php
More file actions
23 lines (16 loc) · 678 Bytes
/
Copy pathindex.php
File metadata and controls
23 lines (16 loc) · 678 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
define('VERSION', '{EXIMUS_VERSION}');
// change the following paths if necessary
$yii=dirname(__FILE__).'/framework/yii.php';
if($_SERVER['SERVER_NAME']==='cms-test.dev') // Remove in production mode
$config=dirname(__FILE__).'/protected/config/test.php';
else
$config=dirname(__FILE__).'/protected/config/main.php';
// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
require $yii;
require 'protected/components/SWebApplication.php';
error_reporting(E_ALL|E_STRICT);
// Create application
Yii::createApplication('SWebApplication', $config)->run();