-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
49 lines (28 loc) · 772 Bytes
/
index.php
File metadata and controls
49 lines (28 loc) · 772 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
ob_start();
session_start();
include 'admin/connect.php';
include 'init.php';
$go = isset($_GET['go']) ? $_GET['go'] : 'home';
$seo = isset($_GET['search']) ? $_GET['search']: 0 ;
if ($go === 'home'){
include $home;
} elseif ($go === 'dept'){
include $departments;
} elseif ($go === 'join'){
include $form;
} elseif ($go === 'profile'){
include $profile;
} elseif ($go === 'item'){
include $item;
} elseif ($go == 'buy'){
include $buy;
} elseif ($go === 'logout'){
include $logout;
} elseif ($go === 'search'){
include $search;
} else {
header('location: index.php');
}
include $footer;
ob_end_flush();