forked from Molajo/Molajo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
55 lines (49 loc) · 1.55 KB
/
Copy pathindex.php
File metadata and controls
55 lines (49 loc) · 1.55 KB
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
52
53
54
55
<?php
/**
* @package Molajo
* @subpackage Bootstrap
* @copyright Copyright (C) 2011 Amy Stephen. All rights reserved.
* @license GNU General Public License Version 2, or later http://www.gnu.org/licenses/gpl.html
*/
define('MOLAJO_APPLICATION', 'site');
define('MOLAJO_APPLICATION_PATH', '');
define('MOLAJO_APPLICATION_ID', 0);
/**
* BEGIN: Common code for all Applications
*
* MOLAJO_PATH_BASE
* Same as JPATH_ADMINISTRATOR, JPATH_INSTALLATION, JPATH_SITE
* MOLAJO_PATH_ROOT root path for the Molajo website regardless of BASE
*/
define('MOLAJO', 'molajo');
define('DS', DIRECTORY_SEPARATOR);
/** Override defines.php for Application in current folder */
if (file_exists(dirname(__FILE__).'/defines.php')) {
include_once dirname(__FILE__).'/defines.php';
}
/**
* MOLAJO_PATH_BASE - base for the Application, examples:
* 0 /Users/amystephen/Sites/molajo/
* 1 /Users/amystephen/Sites/molajo/administrator
* 2 /Users/amystephen/Sites/molajo/installation
*/
$temp = strtolower(dirname(__FILE__));
define('MOLAJO_PATH_BASE', $temp);
/**
* MOLAJO_PATH_ROOT - base for the website, example:
* ex /Users/amystephen/Sites/molajo
*/
if (MOLAJO_APPLICATION == 'site') {
define('MOLAJO_PATH_ROOT', MOLAJO_PATH_BASE);
} else {
$parts = explode(DS, MOLAJO_PATH_BASE);
array_pop($parts);
define('MOLAJO_PATH_ROOT', implode(DS, $parts));
}
/** Libraries */
define('LIBRARIES', MOLAJO_PATH_ROOT.'/libraries/');
/** index.php - shared between Applications */
include_once LIBRARIES.'/index.php';
/**
* END: Common code for all Applications
*/