forked from stephan123hol/communitypanel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbanned.php
150 lines (68 loc) · 1.75 KB
/
banned.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
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?php
session_start();
require_once $_SERVER["DOCUMENT_ROOT"] . "/config.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/_paneel/classes/user.class.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/_paneel/classes/bans.class.php";
$bans = new Bans(true);
if ($_SESSION["user"]["banned"] === true)
{
$data = $bans->getBan();
?>
<!DOCTYPE html>
<html>
<head>
<title>Je bent verbannen</title>
<style>
*, *::after, *::before {
box-sizing: border-box;
}
#container {
width: 300px;
perspective: 600px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-family: Verdana;
font-size: 11px;
}
#logo {
text-align: center;
margin-bottom: 15px;
}
#info {
background: #FFCCCB;
border: 3px solid #EA0909;
padding: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
</style>
</head>
<body>
<div id="container">
<div id="logo">
Logo hier
</div>
<div id="info">
<?php
echo "Je bent verbannen op het paneel van -. Hieronder volgt verdere data betreft je ban. Indien dit volgens jou verkeerd is, neem contact op met iemand van het beheer.<br /><br />";
echo "<strong>Type ban:</strong> " . $data["type"] . "<br />";
echo "<strong>Verbannen op:</strong> " . $data["added_on"] . "<br />";
echo "<strong>Door:</strong> " . $data["by"] . "<br />";
echo "<strong>Reden:</strong> " . $data["reason"] . "<br /><br />";
echo "Met vriendelijke groet, <br />Het Beheer";
?>
</div>
</div>
</body>
</html>
<?php
}
else
{
header("Location: /");
exit;
}
?>