forked from iiitncommunity/hostel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
status.php
47 lines (43 loc) · 1.38 KB
/
status.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
<?php
require 'header.php'
?>
<br>
<main class="jumbotron text-success" style="text-align:center">
<?php
if(isset($_SESSION['type'])){
if($_SESSION['type']=='student'){
echo ' <p>You are logged in as student</p>';
echo ' <p>Hello '.$_SESSION['user']['fname'].', welcome to the site of iiitn Hostel</p>';
$t1=$_SESSION['status'];
echo "<p>".$t1."</p>";
}
else if($_SESSION['type']=='warden'){
echo ' <p>You are logged in as warden</p>';
echo ' <p>Hello '.$_SESSION['user']['fname'].', welcome to the site of iiitn Hostel</p>';
$t1=$_SESSION['status'];
echo "<p>".$t1."</p>";
}
else if($_SESSION['type']=='hmc'){
echo ' <p>You are logged in as hmc</p>';
echo ' <p>Hello '.$_SESSION['user']['fname'].', welcome to the site of iiitn Hostel</p>';
$t1=$_SESSION['status'];
echo "<p>".$t1."</p>";
}
else if($_SESSION['type']=='staff'){
echo ' <p>You are logged in as staff</p>';
echo ' <p>Hello '.$_SESSION['user']['fname'].', welcome to the site of iiitn Hostel</p>';
$t1=$_SESSION['status'];
echo "<p>".$t1."</p>";
}
}
else{
echo ' <p>You are logged out</p>';
}
?>
</main>
<?php
require 'home.php'
?>
<?php
require 'footer.php'
?>