From 8b2ddfb96dc968f2946e0df8698a414f84b7a8ae Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 28 Jan 2024 04:22:40 +0000 Subject: [PATCH] Updated landing page of futami subdomain. --- public/index.html | 29 +++++++++++++++++++++++++++++ public/index.php | 19 ++++++++----------- 2 files changed, 37 insertions(+), 11 deletions(-) create mode 100644 public/index.html diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..6b85b36 --- /dev/null +++ b/public/index.html @@ -0,0 +1,29 @@ + + +
+         }`Y{                /⌒ヽ
+     γ⌒ヽ| 《》  _         _《》《》 {
+     ⌒ア (マ^´     `丶  . ´     `}ヽ `ー- .
+      {〃ミ 、|   ,イ   ’./     , ト、  |"ミ     `ヽ
+       { 7 ヽ|イ//斗    1‘.   ,イ ト| ! 匕 }:}\__}    )
+         '.i   ∨  レ|   l } !  | V__ヽ{`´,__i′_,ノ  /
+        }x=ミ  x=ミ|//_  / |  {〃⌒  ´ {、 `フ /
+         j   '     j/ a)んゞミ`ヽ   r:==┐从 (/
+         八 マ三ヲ 〃⌒´V/  \}、 ` ¨´/ jノ
+         \ _,,. //⌒ヽ|/⌒ヽ \/二´_
+            / У/    /     `ー--マZ_
+        〈  /〃☆ /       ☆*`ー-|〈
+            〉/´   /`ヽ     /   ☆1!
+         / { ☆ /    >-‐ く|       | !
+          i |    \   く >     〉  ☆  ! ヽ
+          | | ☆  \  /     /     |  |
+          | |      У   /____|-‐┘
+          | |       /   / \     {
+
+

Data and settings shared between the chat clients is stored here.

+

ASCII Art source: http://anime.ja.utf8art.com/arc/the_idolmaster_127.html

diff --git a/public/index.php b/public/index.php index f552c5f..fca8342 100644 --- a/public/index.php +++ b/public/index.php @@ -26,8 +26,6 @@ define('FTM_FILE_HASH_MAP', [ ]); header('X-Powered-By: Futami'); -header('Cache-Control: max-age=86400, must-revalidate'); -header('Access-Control-Allow-Origin: *'); $reqMethod = (string)filter_input(INPUT_SERVER, 'REQUEST_METHOD'); if($reqMethod === 'OPTIONS') { @@ -91,6 +89,14 @@ function etag_file(string $user, string $path): void { $reqPath = '/' . trim(parse_url((string)filter_input(INPUT_SERVER, 'REQUEST_URI'), PHP_URL_PATH), '/'); +if($reqPath === '/' || $reqPath === '/index.html' || $reqPath === '/index.php') { + header('X-Accel-Redirect: /index.html'); + return; +} + +header('Cache-Control: max-age=86400, must-revalidate'); +header('Access-Control-Allow-Origin: *'); + if($reqPath === '/common.json') { etag_file('common', FTM_COMMON_CONFIG); @@ -302,13 +308,4 @@ if(preg_match('#^/soundtriggers(\.[a-f0-9]{8})?.json$#', $reqPath)) { ]); } -if($reqPath === '/' || $reqPath === '/index.html' || $reqPath === '/index.php') { - header('Content-Type: text/html; charset=utf-8'); - echo << - Data and settings shared between both chat clients is stored on this subdomain. - HTML; - return; -} - http_response_code(404);