-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
41 lines (38 loc) · 941 Bytes
/
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
<?php
/**
* Instantiates all core functionality
*
*
* @package Kibu
* @author Vyn Raskopf
* @copyright Kibu 2010
* @version 1.0.0
*
*
*/
// require/include all core classes
require_once 'kibu/core/class/Database.php';
require_once 'kibu/core/class/Url.php';
require_once 'kibu/core/class/Kibu.php';
try {
$db = new Database();
$url = new URL(); // instantiate URL class
$kibu = new Kibu($db, $url);
if($kibu->testConfig()) {
$kibu->setCore();
require_once './kibu/core/includes/loadcustom.php'; // include any custom modules
$kibu->outputPage();
$db->disconnect();
}
else {
include_once 'kibu/core/class/Install.php';
$install = new Install($db, $url);
}
}
catch(RuntimeException $e) {
echo 'Runtime Exception encountered: ' . $e->getMessage();
}
catch(Exception $e) {
echo 'Exception encountered: ' . $e->getMessage();
}
?>