-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
33 lines (25 loc) · 721 Bytes
/
index.php
File metadata and controls
33 lines (25 loc) · 721 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
<?php
// Set up database
require('mb_incs/mb_dbcon.php');
$dbcon = new Database();
require('mb_incs/mb_lang.php');
require('mb_incs/mb_page.php');
// Set the language variable
if(isset($_GET['l'])) {
$lang = new Language($dbcon, $_GET['l']);
} else {
$lang = new Language($dbcon);
}
// Determine the page being requested
if(isset($_GET['p'])) {
$page = new Page($dbcon, $lang->get_language(), $_GET['p']);
} else {
$page = new Page($dbcon, $lang->get_language());
}
// Include the current page
include($page->get_current_page_path());
// Set the page variables
$page_language = $lang->get_language();
// Print the template
require_once('mb_tmps/tmp.php');
?>