summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authormoderndevslulw <moderndevslulw@alright.party>2025-07-05 20:38:32 +0500
committermoderndevslulw <moderndevslulw@alright.party>2025-07-05 20:38:32 +0500
commitbb920b117c33c8f78331aa1aea0470efece356a5 (patch)
treeee1359e1c4a29b2f499e8aa68477c4fc3ad666a0 /public
parente24572790514bbe8b5e1e360cf136cf5388025b0 (diff)
feat: wiki shortcuts
Diffstat (limited to 'public')
-rw-r--r--public/index.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php
index 149aa57..e3afcf7 100644
--- a/public/index.php
+++ b/public/index.php
@@ -1,5 +1,14 @@
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/partials.php';
+
+$url = parse_url($_SERVER['REQUEST_URI']);
+
+if (strlen($url['path']) > 2 && str_starts_with($url['path'], '/!')) {
+ $page_id = substr($url['path'], 2);
+ header("Location: /wiki.php?p=$page_id");
+ exit();
+}
+
?>
<html>
@@ -27,7 +36,7 @@ include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/partials.php';
A multi-utility Twitch chat bot that brings<br>
a lot of functionality into your chat.
</p>
- <a href="#" class="self-end">
+ <a href="/!join" class="self-end">
<button>Get the bot</button>
</a>
</div>