-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·51 lines (42 loc) · 1.21 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
/**
* @file /var/www/jeff.git/index.php
* @ingroup entry_point
* @brief Front end entry point.
* @details Every request passes from here, except from the ajax requests which points tio single class methods.
*
* @author abidibo [email protected]
* @version 0.99
* @date 2011-2012
* @copyright Otto srl [MIT License](http://www.opensource.org/licenses/mit-license.php)
*/
/**
* @defgroup entry_point Entry points
*
* <p>Group of file which are entry points for the application.<br />
* There are two kinds of entry point, one used to render the whole document and the other used to render only the output of a controller method</p>
*/
/**
* @brief absolute path to the ROOT directory
*/
define('ABS_ROOT', realpath(dirname(__FILE__)));
/**
* @brief operating system directory separator
*/
define( 'DS', DIRECTORY_SEPARATOR );
// system paths
include(ABS_ROOT.DS.'paths.php');
// system configuration
include(ABS_ROOT.DS.'configuration.php');
// core class
include(ABS_CORE.DS.'core.class.php');
/**
* @brief base path definition from which generate links
*/
define('BASE_PATH', ROOT);
/**
* @brief core instance, renders the whole application
*/
$core = new core();
$core->renderApp();
?>