From 4add65a71cbf5993ddc298511f46e701d2de091f Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 20 Apr 2025 16:44:17 +0500 Subject: feat: 404 page --- public/404.php | 27 +++++++++++++++++++++++++++ public/emotes/index.php | 2 +- public/static/img/404/1.webp | Bin 0 -> 279856 bytes 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 public/404.php create mode 100644 public/static/img/404/1.webp (limited to 'public') diff --git a/public/404.php b/public/404.php new file mode 100644 index 0000000..5646c46 --- /dev/null +++ b/public/404.php @@ -0,0 +1,27 @@ + + + + + Not found - alright.party + + + + +
+
+
+

404 Not Found

+ .webp"> + Back to home +
+
+
+ + + \ No newline at end of file diff --git a/public/emotes/index.php b/public/emotes/index.php index b981a26..ea47834 100644 --- a/public/emotes/index.php +++ b/public/emotes/index.php @@ -50,7 +50,7 @@ function display_emote(int $id) } if ($emote == null) { - echo "not found"; + header("Location: /404.php"); exit; } diff --git a/public/static/img/404/1.webp b/public/static/img/404/1.webp new file mode 100644 index 0000000..7fc04a8 Binary files /dev/null and b/public/static/img/404/1.webp differ -- cgit v1.2.3