This repository has been archived on 2023-10-21. You can view files and clone it, but cannot push or open issues or pull requests.
koakuma/public/index.php

12 lines
578 B
PHP
Raw Permalink Normal View History

2020-12-31 01:38:59 +00:00
<?php
namespace Koakuma;
require_once __DIR__ . '/../startup.php';
if($_SERVER['REQUEST_METHOD'] === 'GET' && trim(parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), '/') === '') {
echo '<!doctype html><title>Koakuma</title>'
. '<style>body { background: url(\'/assets/koa.gif\'); background-repeat: no-repeat; background-attachment: fixed; background-position: center; background-color: #d3fddc;</style>'
. '<audio autoplay loop><source src="/assets/novids.mp3" type="audio/mpeg" /><source src="/assets/novids.ogg" type="audio/ogg" /></audio>';
return;
}