From 9a80cec40d99c37a82bf59463a994a7e3313a579 Mon Sep 17 00:00:00 2001 From: moderndevslulw Date: Sat, 12 Jul 2025 00:12:23 +0500 Subject: feat: external link for wiki --- public/static/img/icons/external_link.png | Bin 0 -> 343 bytes public/wiki.php | 5 +++++ 2 files changed, 5 insertions(+) create mode 100755 public/static/img/icons/external_link.png (limited to 'public') diff --git a/public/static/img/icons/external_link.png b/public/static/img/icons/external_link.png new file mode 100755 index 0000000..25eacb7 Binary files /dev/null and b/public/static/img/icons/external_link.png differ diff --git a/public/wiki.php b/public/wiki.php index b87405f..1f99be9 100644 --- a/public/wiki.php +++ b/public/wiki.php @@ -3,6 +3,11 @@ include_once $_SERVER['DOCUMENT_ROOT'] . '/../lib/partials.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/../vendor/autoload.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/../config.php'; +if (str_starts_with(WIKI_PAGE_DIRECTORY, "http")) { + header("Location: " . WIKI_PAGE_DIRECTORY); + exit; +} + $page_id = $_GET['p'] ?? 'README'; $page_name = "$page_id.md"; -- cgit v1.2.3