Updated landing page of futami subdomain.
This commit is contained in:
parent
71ba6d6326
commit
8b2ddfb96d
2 changed files with 37 additions and 11 deletions
29
public/index.html
Normal file
29
public/index.html
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!doctype html>
|
||||
<style>
|
||||
body, pre {
|
||||
font-size: 16px;
|
||||
font-family: IPAMonaPGothic, "IPA モナー Pゴシック", Monapo, Mona, "MS PGothic", "MS Pゴシック", monospace;
|
||||
}
|
||||
</style>
|
||||
<pre>
|
||||
}`Y{ /⌒ヽ
|
||||
γ⌒ヽ| 《》 _ _《》《》 {
|
||||
⌒ア (マ^´ `丶 . ´ `}ヽ `ー- .
|
||||
{〃ミ 、| ,イ ’./ , ト、 |"ミ `ヽ
|
||||
{ 7 ヽ|イ//斗 1‘. ,イ ト| ! 匕 }:}\__} )
|
||||
'.i ∨ レ| l } ! | V__ヽ{`´,__i′_,ノ /
|
||||
}x=ミ x=ミ|//_ / | {〃⌒ ´ {、 `フ /
|
||||
j ' j/ a)んゞミ`ヽ r:==┐从 (/
|
||||
八 マ三ヲ 〃⌒´V/ \}、 ` ¨´/ jノ
|
||||
\ _,,. //⌒ヽ|/⌒ヽ \/二´_
|
||||
/ У/ / `ー--マZ_
|
||||
〈 /〃☆ / ☆*`ー-|〈
|
||||
〉/´ /`ヽ / ☆1!
|
||||
/ { ☆ / >-‐ く| | !
|
||||
i | \ く > 〉 ☆ ! ヽ
|
||||
| | ☆ \ / / | |
|
||||
| | У /____|-‐┘
|
||||
| | / / \ {
|
||||
</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>
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue