From ebc27728975cd669b7167e5631afbdf5ed2db432 Mon Sep 17 00:00:00 2001 From: moderndevslulw Date: Mon, 7 Jul 2025 04:21:48 +0500 Subject: feat: show lua scripts --- public/index.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'public/index.php') 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(); + } } - ?> @@ -32,6 +36,8 @@ if (strlen($url['path']) > 2 && str_starts_with($url['path'], '/!')) {

Enhance your chat with

+ +

A multi-utility Twitch chat bot that brings
a lot of functionality into your chat. -- cgit v1.2.3