From 6b77e319a385c388b2755ae727b6d7fe3a337a62 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 3 Jul 2022 22:48:05 +0000 Subject: [PATCH] Mark mii subdomain explicitly deprecated. --- public/index.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/public/index.php b/public/index.php index 30ae2ad..26b2571 100644 --- a/public/index.php +++ b/public/index.php @@ -101,6 +101,20 @@ if($reqPath === '/metadata') { Stopwatch::start(); $resp = new stdClass; + if($_SERVER['HTTP_HOST'] === 'mii.flashii.net') { + $resp->type = 'object'; + $resp->content_type = new stdClass; + $resp->content_type->string = 'text/meow'; + $resp->content_type->type = 'text'; + $resp->content_type->subtype = 'meow'; + $resp->title = 'Update your URLs: mii.flashii.net -> uiharu.flashii.net'; + $resp->description = 'Update your URLs: mii.flashii.net -> uiharu.flashii.net'; + $resp->site_name = 'Deprecation notice'; + $resp->took = 35.1; + echo json_encode($resp); + return; + } + if($reqMethod === 'POST') { $targetUrl = substr((string)file_get_contents('php://input'), 0, 1000); } else {