diff options
| author | moderndevslulw <moderndevslulw@alright.party> | 2025-07-05 20:38:32 +0500 |
|---|---|---|
| committer | moderndevslulw <moderndevslulw@alright.party> | 2025-07-05 20:38:32 +0500 |
| commit | bb920b117c33c8f78331aa1aea0470efece356a5 (patch) | |
| tree | ee1359e1c4a29b2f499e8aa68477c4fc3ad666a0 | |
| parent | e24572790514bbe8b5e1e360cf136cf5388025b0 (diff) | |
feat: wiki shortcuts
| -rw-r--r-- | public/index.php | 11 |
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> |
