-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
55 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
<?php | ||
|
||
if ( !$wgCommandLineMode ) { | ||
http_response_code( 410 ); | ||
|
||
$requestWikiUrl = 'https://meta.wikiforge.net/wiki/Special:RequestPremiumWiki?wpsubdomain=' . substr( $wgDBname, 0, -4 ); | ||
|
||
$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="Wiki deleted" /> | ||
<title>Wiki deleted</title> | ||
<link rel="icon" type="image/x-icon" href="https://hub.wikiforge.net/favicon.ico" /> | ||
<link rel="apple-touch-icon" href="https://hub.wikiforge.net/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="/ErrorPages/assets/main.css" rel="stylesheet"> | ||
</head> | ||
<div class="container" style="padding: 70px 0; text-align: center;"> | ||
<!-- Jumbotron --> | ||
<div class="jumbotron"> | ||
<img src="https://static.wikiforge.net/metawiki/8/88/WikiForge_Logo.svg" width="130" height="130" alt="WikiForge" /> | ||
<h1><b>Wiki deleted</b></h1> | ||
<p class="lead">This wiki was deleted either by request, for non-payment, or due to Terms of Use violations.</p> | ||
<p> | ||
<a href="{$requestWikiUrl}" class="btn btn-lg btn-outline-primary" role="button">Start this wiki</a> | ||
</p> | ||
</div> | ||
</div> | ||
<div class="bottom-links"> | ||
<a href="#" onClick="history.go(-1); return false;">← Go back</a> | ||
<a href="https://wikiforge.net">WikiForge</a> | ||
<a href="https://hub.wikiforge.net/wiki/Special:WikiDiscover">Directory →</a> | ||
</div> | ||
</html> | ||
EOF; | ||
header( 'Content-length: ' . strlen( $output ) ); | ||
echo $output; | ||
die( 1 ); | ||
} else { | ||
// $wgDBname will always be set to a string, even if the --wiki parameter was not passed to a script. | ||
echo "The wiki database '{$wgDBname}' was not found." . PHP_EOL; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,24 +4,7 @@ | |
if ( !$wgCommandLineMode ) { | ||
http_response_code( 404 ); | ||
|
||
$centralServer = $wi->wikifarm === 'wikitide' ? | ||
'meta.wikitide.org' : | ||
'meta.wikiforge.net'; | ||
|
||
$logoUrl = $wi->wikifarm === 'wikitide' ? | ||
'https://static.wikiforge.net/commonswikitide/2/22/WikiTide_icon.svg' : | ||
'https://static.wikiforge.net/metawiki/8/88/WikiForge_Logo.svg'; | ||
$logoAltText = $wi->wikifarm === 'wikitide' ? | ||
'WikiTide' : | ||
'WikiForge'; | ||
|
||
$requestWikiUrl = $wi->wikifarm === 'wikitide' ? | ||
'https://meta.wikitide.org/wiki/Special:RequestWiki?wpsubdomain=' . substr( $wgDBname, 0, -8 ) : | ||
'https://meta.wikiforge.net/wiki/Special:RequestPremiumWiki?wpsubdomain=' . substr( $wgDBname, 0, -4 ); | ||
|
||
$serviceMainPage = $wi->wikifarm === 'wikitide' ? | ||
'https://wikitide.org' : | ||
'https://wikiforge.net'; | ||
$requestWikiUrl = 'https://meta.wikiforge.net/wiki/Special:RequestPremiumWiki?wpsubdomain=' . substr( $wgDBname, 0, -4 ); | ||
|
||
$output = <<<EOF | ||
<!DOCTYPE html> | ||
|
@@ -31,8 +14,8 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta name="description" content="Wiki not found" /> | ||
<title>Wiki not found</title> | ||
<link rel="icon" type="image/x-icon" href="https://{$centralServer}/favicon.ico" /> | ||
<link rel="apple-touch-icon" href="https://{$centralServer}/apple-touch-icon.png" /> | ||
<link rel="icon" type="image/x-icon" href="https://hub.wikiforge.net/favicon.ico" /> | ||
<link rel="apple-touch-icon" href="https://hub.wikiforge.net/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 --> | ||
|
@@ -42,7 +25,7 @@ | |
<div class="container" style="padding: 70px 0; text-align: center;"> | ||
<!-- Jumbotron --> | ||
<div class="jumbotron"> | ||
<img src="{$logoUrl}" width="130" height="130" alt="{$logoAltText}" /> | ||
<img src="https://static.wikiforge.net/metawiki/8/88/WikiForge_Logo.svg" width="130" height="130" alt="WikiForge" /> | ||
<h1><b>Wiki not found</b></h1> | ||
<p class="lead">Check your spelling and try again.</p> | ||
<p> | ||
|
@@ -52,8 +35,8 @@ | |
</div> | ||
<div class="bottom-links"> | ||
<a href="#" onClick="history.go(-1); return false;">← Go back</a> | ||
<a href="{$serviceMainPage}">{$logoAltText}</a> | ||
<a href="https://{$centralServer}/wiki/Special:WikiDiscover">Directory</a> | ||
<a href="https://wikiforge.net">WikiForge</a> | ||
<a href="https://hub.wikiforge.net/wiki/Special:WikiDiscover">Directory →</a> | ||
</div> | ||
</html> | ||
EOF; | ||
|