diff options
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. |
