-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.php
More file actions
51 lines (41 loc) · 1.18 KB
/
Copy pathsettings.php
File metadata and controls
51 lines (41 loc) · 1.18 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
<?php
/**
* This is where the settings of the whole app will go
*/
// load all class
session_start();
spl_autoload_register(function ($class) {
require_once "class/".$class.".php";
});
// Company information
define('COMPANY_NAME', 'ELearning System', true);
define('COMPANY_DESC', 'This is an E-Learning System', true);
//Database Configuration
define('DATABASE_NAME', 'elearning', true);
define('DATABASE_USERNAME', 'root', true);
define('DATABASE_PASSWORD', '', true);
//Build Mode
define('PRODUCTION_MODE', false);
//Database setup
Dbcon::$dbname = DATABASE_NAME;
Dbcon::$username = DATABASE_USERNAME;
Dbcon::$password = DATABASE_PASSWORD;
//initialize classes
$css = [
'assets/lib/bootstrap-4.0.0/dist/css/bootstrap.min.css',
'assets/lib/fontawesome-free-5.10.1-web/css/font-awesome.min.css'
];
// js library to be included
$js = [
'assets/js/jquery-3.2.1.slim.js',
'assets/lib/bootstrap-4.0.0/dist/js/bootstrap.min.js'
];
$Outline = new Layout(COMPANY_NAME, COMPANY_DESC);
$Outline->addCSS($css);
$Outline->addJS($js);
$Outline->setFavIcon('assets/images/logo.png');
if (isset($_SESSION['user'])) {
$user = unserialize($_SESSION['user']);
} else {
$user = false;
}