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);