Mark mii subdomain explicitly deprecated.
This commit is contained in:
parent
b1311e336c
commit
6b77e319a3
1 changed files with 14 additions and 0 deletions
|
@ -101,6 +101,20 @@ if($reqPath === '/metadata') {
|
||||||
Stopwatch::start();
|
Stopwatch::start();
|
||||||
$resp = new stdClass;
|
$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') {
|
if($reqMethod === 'POST') {
|
||||||
$targetUrl = substr((string)file_get_contents('php://input'), 0, 1000);
|
$targetUrl = substr((string)file_get_contents('php://input'), 0, 1000);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue