summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorjade (winter)2025-12-05 00:34:03 +0000
committerjade (winter)2025-12-05 00:34:03 +0000
commit92d27365cadbd98e6d709673cd0729de8793c494 (patch)
treee7ac18fab25957d39745a865ef269f6b6733f15a /index.php
initial commit
Diffstat (limited to 'index.php')
-rw-r--r--index.php36
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>