diff options
| author | moderndevslulw <moderndevslulw@alright.party> | 2025-07-07 04:21:48 +0500 |
|---|---|---|
| committer | moderndevslulw <moderndevslulw@alright.party> | 2025-07-07 04:21:48 +0500 |
| commit | ebc27728975cd669b7167e5631afbdf5ed2db432 (patch) | |
| tree | 5135ce75351da4f11863c374b5020324b3629012 /public/index.php | |
| parent | ee4df5bfd30a4e087331adc2b4b306286e5d419d (diff) | |
feat: show lua scripts
Diffstat (limited to 'public/index.php')
| -rw-r--r-- | public/index.php | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/public/index.php b/public/index.php index 9cb267b..53cd770 100644 --- a/public/index.php +++ b/public/index.php @@ -3,12 +3,16 @@ include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/partials.php'; $url = parse_url($_SERVER['REQUEST_URI']); -if (strlen($url['path']) > 2 && str_starts_with($url['path'], '/!')) { +if (strlen($url['path']) > 2) { $page_id = substr($url['path'], 2); - header("Location: /wiki.php?p=$page_id"); - exit(); + if (str_starts_with($url['path'], '/!')) { + header("Location: /scripts.php?id=$page_id"); + exit(); + } else if (str_starts_with($url['path'], '/+')) { + header("Location: /wiki.php?id=$page_id"); + exit(); + } } - ?> <html> @@ -32,6 +36,8 @@ if (strlen($url['path']) > 2 && str_starts_with($url['path'], '/!')) { </div> <div class="column justify-end gap-8 p-16"> <h1 class="self-end text-right">Enhance your chat with <?= BOT_USERNAME_FORMATTED ?></h1> + + <p class="self-end text-right"> A multi-utility Twitch chat bot that brings<br> a lot of functionality into your chat. |
