-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathUnknownWiki.php
157 lines (150 loc) · 6.77 KB
/
UnknownWiki.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
151
152
153
154
155
156
157
<?php
require_once __DIR__ . '/getTranslations.php';
$getLanguageCode = 'getLanguageCode';
$getTranslation = 'getTranslation';
header( 'Cache-control: no-cache' );
http_response_code( 410 );
$output = <<<EOF
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="{$getTranslation( 'unknownwiki-body' )}" />
<title>{$getTranslation( 'unknownwiki' )}</title>
<link rel="icon" type="image/x-icon" href="https://meta.miraheze.org/favicon.ico" />
<link rel="apple-touch-icon" href="https://meta.miraheze.org/apple-touch-icon.png" />
<!-- Bootstrap core CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
<!-- Outfit font from Google Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Outfit">
<link href="assets/main.css" rel="stylesheet">
</head>
<div class="container" style="padding: 70px 0; text-align: center;">
<!-- Jumbotron -->
<div class="jumbotron">
<p style="text-align: center; animation: fadein 1s;">
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
id="svg4206"
version="1.1"
width="130.851"
height="134.98416"
viewBox="0 0 130.851 134.98416"
sodipodi:docname="mhquestion.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs4210" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1009"
id="namedview4208"
showgrid="true"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:zoom="4.0163665"
inkscape:cx="92.496539"
inkscape:cy="92.372048"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="svg4206"
showborder="false"
inkscape:showpageshadow="2"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1">
<inkscape:grid
type="xygrid"
id="grid4863"
originx="-29.149002"
originy="-23.271838" />
</sodipodi:namedview>
<path
style="fill:#8e7650;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 52.721681,48.525706 21.189606,0.06232 10.968739,18.946003 -10.84409,18.696711 H 52.659356 L 41.752943,67.471705 Z"
id="path4756"
inkscape:connector-curvature="0" />
<path
style="fill:#ffc200;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 52.7219,0 73.911507,0.06233 84.880246,19.008333 74.036156,37.705042 H 52.659576 L 41.753162,18.946004 Z"
id="path4756-4"
inkscape:connector-curvature="0" />
<path
style="fill:#ffc200;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 52.7219,97.279112 21.189607,0.06233 10.968739,18.946008 -10.84409,18.69671 H 52.659576 L 41.753162,116.22513 Z"
id="path4756-4-7"
inkscape:connector-curvature="0"
inkscape:transform-center-x="23.96383"
inkscape:transform-center-y="-86.164066" />
<path
style="fill:#ffc200;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 94.666356,24.313311 21.189604,0.06232 10.96874,18.946001 -10.84409,18.696715 H 94.604032 L 83.697618,43.259317 Z"
id="path4756-4-7-0-4"
inkscape:connector-curvature="0"
inkscape:transform-center-x="23.963831"
inkscape:transform-center-y="-86.164068" />
<path
style="fill:#ffc200;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 10.946578,24.313315 21.1464,0.06232 10.94636,18.945997 -10.821965,18.696715 H 10.884381 L 2.04e-4,43.259317 Z"
id="path4756-4-7-0-4-0"
inkscape:connector-curvature="0"
inkscape:transform-center-x="23.914978"
inkscape:transform-center-y="-86.164069" />
<path
style="fill:#ffc200;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 10.968739,72.678425 32.158346,72.740745 43.12708,91.686749 32.282994,110.38347 H 10.906415 L 0,91.624434 Z"
id="path4756-4-7-0-4-5"
inkscape:connector-curvature="0"
inkscape:transform-center-x="23.96383"
inkscape:transform-center-y="-86.16407" />
<g
id="g18128"
transform="matrix(0.62036692,0,0,0.62036692,52.684766,56.024679)">
<circle
cx="64"
cy="64"
r="62"
fill="#7788dd"
id="circle17626" />
<text
style="font-weight:bold;font-size:128px;font-family:'DejaVu Sans', 'Segoe UI';text-anchor:middle;fill:#ffffff"
y="111"
x="68"
id="text17628">?</text>
</g>
</svg>
</p>
<h1><b>{$getTranslation( 'unknownwiki' )}</b></h1>
<p class="lead">{$getTranslation( 'unknownwiki-body' )}</p>
<p>
<a href="https://meta.miraheze.org/wiki/Special:MyLanguage/Help_center" class="btn btn-lg btn-outline-primary" role="button">{$getTranslation( 'get-help' )}</a>
<a href="https://meta.miraheze.org/wiki/Special:MyLanguage/Custom_domains" class="btn btn-lg btn-outline-info" role="button">{$getTranslation( 'custom-domain-instructions' )}</a>
</p>
</div>
</div>
<div class="bottom-links">
<a href="#" onClick="history.go(-1); return false;">← {$getTranslation( 'wiki-not-found-goback' )}</a>
<a href="https://miraheze.org">Miraheze</a>
<a href="https://meta.miraheze.org/wiki/Special:WikiDiscover">{$getTranslation( 'wiki-directory' )} →</a>
</div>
</html>
EOF;
header( 'Content-length: ' . strlen( $output ) );
echo $output;
die( 1 );