-
Notifications
You must be signed in to change notification settings - Fork 0
/
disabled-users.php
43 lines (42 loc) · 1.55 KB
/
disabled-users.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
<!--
FILE: : <?php echo basename(__FILE__, $_SERVER['PHP_SELF'])."\n"; ?>
TITLE : AveNest Listings
AUTHORS : Smit Patel, Mike Cusson, Roshan Persaud
LAST MODIFIED : SEPT 15, 2019
DESCRIPTION : Disabled users
-->
<?php
$title = "Disabled Users";
$file = "disabled-users.php";
$date = "SEPT 15, 2019";
$banner = "Disabled Users";
$desc = "Disabled users use to greet admin.";
require("./header.php");
if(isset($_SESSION['user_type_s'])){
if ($_SESSION['user_type_s'] == AGENT){
header("LOCATION: ./dashboard.php");
ob_flush(); //Flushing output buffer after redirection
}else if ($_SESSION['user_type_s'] == DISABLED){
header("LOCATION: ./406.php");
ob_flush(); //Flushing output buffer after redirection
}else if ($_SESSION['user_type_s'] == CLIENT){
header("LOCATION: ./welcome.php");
ob_flush(); //Flushing output buffer after redirection
}else if ($_SESSION['user_type_s'] == INCOMPLETE){
header("LOCATION: ./406.php");
ob_flush(); //Flushing output buffer after redirection
}
} else {
header("LOCATION: ./login.php");
ob_flush(); //Flushing output buffer after redirection
}
?>
<div class="w-full flex flex-wrap justify-center content-center px-2 lg:px-10 py-4 lg:px-6">
<p class="text-lg text-primary-500 w-full py-2 font-headline font-semibold text-center underline">
Disabled Users
</p>
<disabled-manage></disabled-manage>
</div>
<?php
require("./footer.php");
?>