forked from WikiOasis/mw-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDatabaseMaintenance.php
More file actions
executable file
·234 lines (202 loc) · 5.95 KB
/
Copy pathDatabaseMaintenance.php
File metadata and controls
executable file
·234 lines (202 loc) · 5.95 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<?php
header( 'Content-Type: text/html; charset=utf-8' );
header( 'Cache-Control: s-maxage=2678400, max-age=2678400' );
$path = $_SERVER['REQUEST_URI'];
$actual_link = 'https://' . $_SERVER['HTTP_HOST'] . $path;
$encUrl = htmlspecialchars( $path );
$encHost = htmlspecialchars( $_SERVER['HTTP_HOST'] );
http_response_code( 410 );
echo <<<EOF
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://api.dashboard.instatus.com/widget?host=status.wikioasis.org&code=3a58baa4&locale=en">
</script>
<link rel="icon" type="image/x-icon" href="https://cdn.wikioasis.org/images/metawiki/1/18/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Under Maintenance</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style type="text/css">
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', sans-serif;
}
body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: flex-start;
padding-left: 10%;
background: #1a1f2e;
color: white;
overflow: hidden;
position: relative;
}
.blob {
position: absolute;
border-radius: 50%;
filter: blur(120px);
opacity: 0.5;
pointer-events: none;
z-index: 0;
animation: fade 8s ease-in-out infinite, float 15s ease-in-out infinite;
will-change: transform, opacity;
}
@keyframes fade {
0%, 100% {
opacity: 0.4;
}
50% {
opacity: 0.6;
}
}
@keyframes float {
0%, 100% {
transform: translate(-50%, -50%) translate(0, 0);
}
25% {
transform: translate(-50%, -50%) translate(30px, -20px);
}
50% {
transform: translate(-50%, -50%) translate(-20px, 30px);
}
75% {
transform: translate(-50%, -50%) translate(20px, 20px);
}
}
.container {
display: flex;
align-items: center;
position: relative;
z-index: 1;
gap: 24px;
}
.logo {
width: 240px;
height: auto;
flex-shrink: 0;
}
.content {
display: flex;
flex-direction: column;
gap: 4px;
}
h1 {
font-size: 28px;
font-weight: 600;
color: white;
margin-bottom: 2px;
}
.url {
font-size: 13px;
color: #5ba4d4;
margin-bottom: 2px;
}
.description {
font-size: 14px;
color: rgba(255, 255, 255, 0.7);
margin-bottom: 16px;
}
.buttons {
display: flex;
gap: 12px;
}
.btn {
padding: 10px 24px;
border-radius: 20px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
cursor: pointer;
transition: all 0.2s ease;
border: 1px solid rgba(255, 255, 255, 0.2);
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
color: white;
}
.btn:hover {
background: rgba(255, 255, 255, 0.2);
border-color: rgba(255, 255, 255, 0.3);
}
.btn:active {
transform: scale(0.98);
}
@media (max-width: 600px) {
body {
padding: 20px;
justify-content: center;
}
.container {
flex-direction: column;
text-align: center;
}
.buttons {
justify-content: center;
}
}
</style>
<link rel="shortcut icon" href="https://cdn.wikioasis.org/metawiki/1/18/favicon.ico" />
</head>
<body>
<div class="container">
<img class="logo" src="https://cdn.wikioasis.org/metawiki/3/38/WikiOasis_Logo.png" alt="WikiOasis Logo" />
<div class="content">
<h1>Under Maintenance</h1>
<p class="url">{$encHost}{$encUrl}</p>
<p class="description">This wiki is currently undergoing<br>database maintenance.</p>
<div class="buttons">
<a href="https://status.wikioasis.org/" class="btn">Status page</a>
<a href="https://discord.gg/GrrTcsVC2x" class="btn">Discord</a>
</div>
</div>
</div>
<script>
(function() {
const colors = [
'rgba(64, 224, 208, 0.25)', // Turquoise
'rgba(46, 139, 87, 0.2)', // Green
'rgba(0, 150, 136, 0.25)', // Teal
'rgba(30, 144, 255, 0.3)', // Blue
'rgba(30, 80, 120, 0.35)', // Deep blue
'rgba(45, 120, 160, 0.3)', // Steel blue
'rgba(32, 110, 165, 0.3)', // Other blue
'rgba(30, 50, 160, 0.3)', // Other other blue
'rgba(10, 30, 105, 0.3)', // Random blue
'rgba(0, 206, 209, 0.25)', // Cyan
'rgba(65, 105, 225, 0.2)' // Royal blue
];
const numBlobs = 8 + Math.floor(Math.random() * 5); // 8-12 blobs
for (let i = 0; i < numBlobs; i++) {
const blob = document.createElement('div');
blob.className = 'blob';
// Random size between 300px and 600px (larger for more blur coverage)
const size = 300 + Math.random() * 300;
blob.style.width = size + 'px';
blob.style.height = size + 'px';
// Random position - bias towards right side of screen
const xBias = 0.3 + Math.random() * 0.7; // 30% to 100% of screen width
blob.style.left = (xBias * 100) + '%';
blob.style.top = (Math.random() * 100) + '%';
blob.style.transform = 'translate(-50%, -50%)';
// Random color from palette
blob.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
// Random animation durations and delays for independent movement
const fadeDuration = 6 + Math.random() * 8; // 6-14 seconds
const floatDuration = 12 + Math.random() * 16; // 12-28 seconds
const fadeDelay = Math.random() * 5; // 0-5 seconds delay
const floatDelay = Math.random() * 5; // 0-5 seconds delay
blob.style.animation =
'fade ' + fadeDuration + 's ease-in-out ' + fadeDelay + 's infinite, ' +
'float ' + floatDuration + 's ease-in-out ' + floatDelay + 's infinite';
document.body.appendChild(blob);
}
})();
</script>
</body>
</html>
EOF;
die( 1 );