From ef00df953a3d43a80fb0ff62a1298481bb1de828 Mon Sep 17 00:00:00 2001
From: Agent Isai <43097272+AgentIsai@users.noreply.github.com>
Date: Thu, 8 Feb 2024 19:33:28 -0600
Subject: [PATCH] Add DeletedWiki page
---
DeletedWiki.php | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
MissingWiki.php | 29 ++++++-----------------------
2 files changed, 55 insertions(+), 23 deletions(-)
create mode 100644 DeletedWiki.php
diff --git a/DeletedWiki.php b/DeletedWiki.php
new file mode 100644
index 0000000..f8e434d
--- /dev/null
+++ b/DeletedWiki.php
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+ Wiki deleted
+
+
+
+
+
+
+
+
+
+
+
+
+
Wiki deleted
+
This wiki was deleted either by request, for non-payment, or due to Terms of Use violations.
+
+ Start this wiki
+
+
+
+
+
+ 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;
+}
diff --git a/MissingWiki.php b/MissingWiki.php
index 5980f75..8139f68 100644
--- a/MissingWiki.php
+++ b/MissingWiki.php
@@ -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 = <<
@@ -31,8 +14,8 @@
Wiki not found
-
-
+
+
@@ -42,7 +25,7 @@
-
+
Wiki not found
Check your spelling and try again.
@@ -52,8 +35,8 @@