-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
37 lines (34 loc) · 863 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<?
session_start();
require './admin/includes/functions.php';
require './admin/includes/dbconnect.php';
$page = $_GET['id'];
$logged = $_SESSION['logged'];
$username = $_SESSION['username'];
?>
<head>
<? require './include/html_header.php'; ?>
</head>
<body>
<?
#---------------------Site body begins here-------------------------------------
if(isset($_GET['id'])){
switch ($page) {
case 'home':
include './include/home.php';
break;
default:
include './include/site_page.php';
}
}
else{
include './include/home.php'; // landing page
}
#-----------Footer begins here--------------------------------------------------
require './include/footer.php';
?>
</body>
</html>