Skip to content

Commit

Permalink
Entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentIsai authored Oct 17, 2024
1 parent e3a0e6d commit 2d6379d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions DeletedWiki.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@

<?php

if ( !$wgCommandLineMode ) {
http_response_code( 410 );
use MediaWiki\MediaWikiServices;

$requestWikiUrl = 'https://meta.wikiforge.net/wiki/Special:RequestPremiumWiki?wpsubdomain=' . substr( $wgDBname, 0, -4 );
if ( MW_ENTRY_POINT !== 'cli ) {
http_response_code( 410 );
$output = <<<EOF
<!DOCTYPE html>
Expand All @@ -29,7 +28,7 @@
<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>
<a href="https://wikiforge.xyz" class="btn btn-lg btn-outline-primary" role="button">Go home</a>
</p>
</div>
</div>
Expand Down

0 comments on commit 2d6379d

Please sign in to comment.