-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathblocked_page.php
41 lines (33 loc) · 1.07 KB
/
blocked_page.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
<?php
session_start();
include 'config.php';
$query = new Database();
if (!isset($_SESSION['loggedin']) or $_SESSION['loggedin'] !== true) {
header("Location: ./login/");
exit;
} else {
if ($query->select('accounts', 'status', 'WHERE id = "' . $_SESSION['id'] . '"')[0]['status'] !== 'blocked') {
header("Location: ./login/");
exit;
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Blocked Page</title>
<link rel="icon" href="./favicon.ico">
<link rel="stylesheet" href="./src/css/blocked_page.css">
</head>
<body>
<div class="container">
<h1>Access Denied</h1>
<p>Sorry, <span><?= $_SESSION['username'] ?></span>, your access to this page has been blocked.</p>
<p>If you believe this is an error, please contact the site administrator.</p>
<a href="https://t.me/+998997799333" class="contact-link">Contact Administrator</a>
<a class="logout" href="./logout/">Logout</a>
</div>
</body>
</html>