-
Notifications
You must be signed in to change notification settings - Fork 1
/
account_restricted.html
74 lines (61 loc) · 1.99 KB
/
account_restricted.html
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
<!DOCTYPE html>
<?php
// we will only start the session with session_start() IF the session isn't started yet //
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
?>
<?php
// including the conn.php to establish connection with database //
include "conn.php";
?>
<?php
if (isset($_SESSION['suspended_reason'])) {
} else {
echo "<script>alert('You are not even got suspended, what are you doing here?');";
echo "window.location.href='homepage.html';</script>";
}
?>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<link rel="icon" href="image/logo_symbol.png" type="image/ico" />
<title> Account Restricted | Meal-Debit System </title>
<!-- Google font -->
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,900" rel="stylesheet">
<!-- Custom stlylesheet -->
<link type="text/css" rel="stylesheet" href="vendor/colorlib-error-404-10/colorlib-error-404-10/css/style.css" />
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="notfound">
<div class="notfound">
<div class="notfound-404">
<h1>Oops!</h1>
</div>
<h2>Account Restricted</h2>
<p>
<?php
if (isset($_SESSION['suspended_reason'])) {
echo $_SESSION['suspended_reason'];
} else {
echo " - ";
}
?>
</p>
<a href="homepage.html">Go To Homepage</a>
<?php
session_destroy();
?>
</div>
</div>
</body><!-- This templates was made by Colorlib (https://colorlib.com) -->
</html>