-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
29 lines (28 loc) · 698 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
<?php
session_start();
if (!isset($_SESSION['position'])) {
header('Location: ./Layout/login.php');
exit;
}
else{
if ($_SESSION['position']=='jo') {
header('Location: ./Layout/jo.php');
}
elseif ($_SESSION['position']=='cao') {
header('Location: ./Layout/cao.php');
}
elseif ($_SESSION['position']=='vpmo') {
header('Location: ./Layout/vpmo.php');
}
elseif(($_SESSION['position']=='admin')){
header('Location: ./Layout/administrator.php');
}
elseif(($_SESSION['position']=='requester')){
header('Location: ./Layout/requester.php');
}
else {
header('Location: ./Layout/404.php');
}
exit;
}
?>