-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
35 lines (29 loc) · 951 Bytes
/
index.php
File metadata and controls
35 lines (29 loc) · 951 Bytes
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
<?php
/**
* Hummingbird Lite
* Version: 3.0
* Author(s): biohzrdmx <github.com/biohzrdmx>
*/
# Define the absolute path
define( 'BASE_DIR', dirname(__FILE__) );
# Include required files
include BASE_DIR . '/framework/config.inc.php';
include BASE_DIR . '/framework/database.inc.php';
include BASE_DIR . '/framework/request.inc.php';
include BASE_DIR . '/framework/response.inc.php';
include BASE_DIR . '/framework/router.inc.php';
include BASE_DIR . '/framework/site.inc.php';
include BASE_DIR . '/framework/utilities.inc.php';
# Initialize environment
$site = Site::getInstance();
$site->initialize($settings);
# Initialize plugins
foreach ($site->getPlugins() as $plugin) {
$file = $site->baseDir("/plugins/{$plugin}/plugin.php");
include $file;
}
# External functions
include $site->baseDir('/external/functions.inc.php');
# Do routing
$site->getRouter()->routeRequest();
?>