forked from SWU-Petranaki/SWUOnline
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBanned.php
More file actions
154 lines (144 loc) · 4.75 KB
/
Banned.php
File metadata and controls
154 lines (144 loc) · 4.75 KB
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
151
152
153
154
<?php
ob_start();
include "HostFiles/Redirector.php";
include "Libraries/HTTPLibraries.php";
include_once "./AccountFiles/AccountDatabaseAPI.php";
ob_end_clean();
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>You Have Been Banned</title>
<link rel="stylesheet" href="./css/petranaki250506.css">
<link href="https://fonts.googleapis.com/css2?family=Barlow:wght@400;700&display=swap" rel="stylesheet">
<style>
body {
background-size: cover;
background-position: center;
background-image: url('./Images/gamebg.jpg');
width: 100%;
min-height: 100vh;
margin: 0;
background-repeat: no-repeat;
background-attachment: fixed;
}
.ban-container {
text-align: center;
max-width: 800px;
margin: 0 auto;
padding: 20px;
p {
font-size: 1.25em;
}
h1 {
font-size: 2em;
}
}
.ban-image {
max-width: 400px;
margin: 24px auto;
}
.ban-text {
font-size: 1em;
line-height: 1.6;
margin: 20px 0;
p {
font-size: 1.25em;
}
}
.quote {
font-style: italic;
color: #666;
font-size: 1.25em;
margin: 30px 0;
}
.april-fools {
display: none;
text-align: center;
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
.april-fools h1 {
font-size: 3em;
color: #FFD700;
margin-bottom: 30px;
}
.april-fools p {
font-size: 1.25em;
max-width: 800px;
margin: 20px auto;
}
.april-fools img {
margin: 20px auto;
}
.button {
padding: 10px 20px;
margin-top: 20px;
font-size: 1.2em;
background-color: #ff3333;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
.button:hover {
background-color: #cc0000;
}
.return-button {
background-color: #FFD700;
color: black;
}
.return-button:hover {
background-color: #ccac00;
}
</style>
</head>
<body>
<div class="ban-container" id="ban-message">
<h1 style="margin-top: 80px; margin-bottom: 20px; color: #ff3333; font-size: 2.5em;">You Have Been Banned</h1>
<img src="./Images/banned-vader.webp" alt="Darth Vader" height="200px" width="300px" class="ban-image" style="border-radius: 50%; box-shadow: 0 0 20px 5px rgba(255, 0, 0, 0.3); filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5)); object-fit: cover;">
<div class="ban-text">
<p>"I find your lack of fair play disturbing."</p>
<p>You have been banned from the game for violating our community guidelines.</p>
<p>Like the Rebel Alliance against the Empire, we stand firm against those who would disrupt the peace and harmony of our gaming community.</p>
</div>
<div class="quote">
"If you strike me down in anger, I shall become more powerful than you can possibly imagine."<br>
- Unfortunately, this doesn't apply to banned accounts
</div>
<p>If you believe this is an error, please contact our support team.</p>
<p style="margin-bottom: 10px;">May the Force be with you... but our servers won't.</p>
<button class="button" onclick="showAprilFools()">Appeal Ban</button>
</div>
<div class="april-fools" id="april-fools">
<h1 style="margin-top: 80px;">APRIL FOOLS!</h1>
<img src="./Images/banned-obi.webp" alt="Obi-Wan Kenobi" height="200px" width="300px" style="border-radius: 50%; box-shadow: 0 0 20px 5px rgba(0, 255, 0, 0.3); object-fit: cover;">
<div class="ban-text">
<p>"Hello there! This was just a little trick from the high ground!"</p>
<p>Your account is perfectly fine! We just couldn't resist playing a little Jedi mind trick on you.</p>
<p>You are a bold one for clicking that button. Now return to the game, and may the Force be with you, always!</p>
</div>
<div class="quote">
"These aren't the bans you're looking for. You can go about your business. Move along."<br>
- Obi-Wan Kenobi
</div>
<button class="button return-button" onclick="window.location.href='MainMenu.php'">Return to Game</button>
</div>
<script>
function showAprilFools() {
document.getElementById('ban-message').style.display = 'none';
document.getElementById('april-fools').style.display = 'block';
window.scrollTo(0, 0); // Scroll back to the top of the page
// Set cookie to expire at the end of the day
const expiry = new Date();
expiry.setHours(23, 59, 59, 999); // End of today
document.cookie = `april_fools_seen=${new Date().getFullYear()}; expires=${expiry.toUTCString()}; path=/`;
}
</script>
</body>
</html>