forked from traprajith/open-school-CE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
51 lines (41 loc) · 1.65 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
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
-------------------------
GNU GPL COPYRIGHT NOTICES
-------------------------
This file is part of Open-School.
Open-School is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Open-School is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Open-School. If not, see <http://www.gnu.org/licenses/>.*/
/**
* $Id$
*
* @author Open-School team <[email protected]>
* @link http://www.Open-School.org/
* @copyright Copyright © 2009-2013 wiwo inc.
* @Matthew George,@Rajith Ramachandran,@Arun Kumar,
* @Anupama,@Laijesh V Kumar,@Tanuja.
* @license http://www.Open-School.org/
*/
// If no environment info or no system settings, go install
if (file_exists(dirname(__FILE__).'/protected/config/environment.php') === false
) {
header('location:install.php');exit;
}
// change the following paths if necessary
$yii=dirname(__FILE__).'/core/yii.php';
$config=dirname(__FILE__).'/protected/config/common.php';
//echo $config;exit;
// 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();