Updated landing page of futami subdomain.

This commit is contained in:
flash 2024-01-28 04:22:40 +00:00
parent 71ba6d6326
commit 8b2ddfb96d
2 changed files with 37 additions and 11 deletions

29
public/index.html Normal file
View File

@ -0,0 +1,29 @@
<!doctype html>
<style>
body, pre {
font-size: 16px;
font-family: IPAMonaPGothic, "IPA モナー Pゴシック", Monapo, Mona, "MS PGothic", " Pゴシック", monospace;
}
</style>
<pre>
         }Y{                /⌒ヽ
     γ⌒ヽ| 《》  _         _《》《》 {
     ⌒ア (マ^´       . ´     }ヽ `ー-
      {〃ミ 、|   ,イ   ’./     , ト、  |"ミ     `ヽ
       { 7 ヽ|イ//斗    1.   ,イ ト| ! 匕 }:}__}    
         '.i     レ|    } !  | V__ヽ{´,___,  
        }x=ミ  x=ミ|//_  / |  {〃⌒  ´ {、 `フ /
         j   '     j/ aんゞミ  r:==┐从
         八 マ三ヲ 〃⌒´V/  }、 ` ¨´/ jノ
         _,,. //⌒ヽ|/⌒ヽ /二´_
            У         `ー--マZ_
        〈  /〃☆ /       ☆*`ー-|〈
            〉/´   /`ヽ       ☆1
         / { ☆     - く|       | !
           |       く >     〉  ☆  ! ヽ
          | | ☆  \  /     /     |  |
          | |      У   ____|-‐┘
          | |               {
</pre>
<p>Data and settings shared between the chat clients is stored here.</p>
<p style="font-size: .7em">ASCII Art source: <a href="http://anime.ja.utf8art.com/arc/the_idolmaster_127.html" target="_blank" rel="noopener">http://anime.ja.utf8art.com/arc/the_idolmaster_127.html</a></p>

View File

@ -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 <<<HTML
<!doctype html>
Data and settings shared between both chat clients is stored on this subdomain.
HTML;
return;
}
http_response_code(404);