-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.php
51 lines (43 loc) · 1.22 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
/**
* @brief Declare constants for generic use and for checking to avoid a direct call from the Web
**/
define('__CIG__', true);
/**
* CIG_VERSION is the version number of the "Can I Graduate?".
*/
define('CIG_VERSION', '0.2.0');
/**
* CIG_BASEDIR is the SERVER-SIDE absolute path of "Can I Graduate?" (with trailing slash).
*/
define('CIG_BASEDIR', str_replace('\\', '/', dirname(__FILE__)) . '/');
/**
* Define the list of class names for the autoloader.
*/
$GLOBALS['CIG_AUTOLOAD_FILE_MAP'] = array(
'Context' => 'classes/context/Context.class.php',
'Data' => 'classes/data/Data.class.php',
'DB' => 'classes/db/DB.class.php',
'File' => 'classes/file/File.class.php',
'User' => 'classes/user/User.class.php',
'View' => 'classes/view/View.class.php',
);
/**
* Include classes.
*/
foreach ($GLOBALS['CIG_AUTOLOAD_FILE_MAP'] as $className => $fileName)
require CIG_BASEDIR . $fileName;
/**
* @brief Initialize by creating Context object
* Set all Request Argument/Environment variables
**/
Context::init();
/**
* @brief Initialize View module and display contents
**/
View::init();
View::displayContent();
View::close();
Context::close();
/* End of file index.php */
/* Location: ./index.php */