diff options
Diffstat (limited to 'index.php')
| -rw-r--r-- | index.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/index.php b/index.php new file mode 100644 index 0000000..b4a98e7 --- /dev/null +++ b/index.php @@ -0,0 +1,36 @@ +<?php +require_once __DIR__ . '/lib/bbcnext.php'; + +stream_context_set_default(['http' => [ + 'user_agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36', +]]); +?> +<!doctype html> +<html lang="en-GB"> + <head> + <meta charset="UTF-8"/> + <meta name="viewport" content="width=device-width,initial-scale=1"/> + <title></title> + <?php foreach (array_diff(scandir(__DIR__ . '/theme'), ['.', '..']) as $theme): ?> + <link rel="<?=$theme=='Default'?'':'alternate '?>stylesheet" + href="theme/<?=$theme?>/main.css" + title="<?=$theme?>"/> + <?php endforeach; ?> + </head> + + <body> + <header> + <a href="."><frontend-name>RMS Frontend</frontend-name></a> + <form id="search-form" action="search.php"> + <input name="q" placeholder="Query…"/> + <input type="submit" value="Search"/> + </form> + </header> + + <main> + <?php + next_renderFromRms($_GET['path'] ?? RMS_SOUNDS_HOME); + ?> + </main> + </body> +</html> |
