forked from winardiaris/cws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·105 lines (88 loc) · 1.64 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
include ("form/header.php");
if(!empty($_GET['page'])){
$page = $_GET['page'];
switch($page){
//LOGIN --------
case "login":
$view = "form/login.php";
break;
//DASHBOARD --------
case "dashboard":
$view = "form/dashboard.php";
break;
//Person --------
case "person-form":
$view = "form/personal-form.php";
break;
case "person-data":
$view = "form/personal-data.php";
break;
// IA --------
case "ia-form":
$view = "form/ia-form.php";
break;
case "ia-data":
$view = "form/ia-data.php";
break;
// SE --------
case "se-form":
$view = "form/se-form.php";
break;
case "se-data":
$view = "form/se-data.php";
break;
// BIA --------
case "bia-form":
$view = "form/bia-form.php";
break;
case "bia-data":
$view = "form/bia-data.php";
break;
// HR --------
case "hr-form":
$view = "form/hr-form.php";
break;
case "hr-data":
$view = "form/hr-data.php";
break;
//USER --------
case "user":
$view = "form/user.php";
break;
case "user-form":
$view = "form/user-form.php";
break;
case "user-action":
$view = "form/user-action.php";
break;
case "user-group":
$view = "form/usergroup.php";
break;
//DELETED DATA
case "deleted":
$view = "form/deleted-data.php";
break;
//History
case "history":
$view = "form/history.php";
break;
//CHART --------
case "chart":
$view = "form/chart/chart.php";
break;
//test --------
case "test":
$view = "testaccess.php";
break;
default:
$view = "form/404.php";
break;
}
include $view;
}
else{
header("location:?page=login");
}
include ("form/footer.php");
?>