summaryrefslogtreecommitdiff
path: root/public/404.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-12-08 21:53:36 +0500
committerilotterytea <iltsu@alright.party>2025-12-08 21:53:36 +0500
commit57472eab3c7b035392c6a5aa240593ecaa7d1ccf (patch)
tree9da30829290f225be2dab3d383549cbfda82ed19 /public/404.php
parent6541d0f3888862ab049055fd418b700f73eed367 (diff)
upd: moved all /public/ files to the root folder
Diffstat (limited to 'public/404.php')
-rw-r--r--public/404.php43
1 files changed, 0 insertions, 43 deletions
diff --git a/public/404.php b/public/404.php
deleted file mode 100644
index cd7e12e..0000000
--- a/public/404.php
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-include_once "../src/config.php";
-include_once "../src/utils.php";
-include_once "../src/partials.php";
-include_once "../src/accounts.php";
-
-authorize_user();
-
-$status = intval($_GET["error_status"] ?? "404");
-http_response_code($status);
-
-$reason = str_safe($_GET["error_reason"] ?? "Not found", 200);
-
-?>
-<html>
-
-<head>
- <title>(Error) <?php echo sprintf("%s - %s", $reason, INSTANCE_NAME) ?></title>
- <link rel="stylesheet" href="/static/style.css">
- <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
-</head>
-
-<body>
- <div class="container">
- <div class="wrapper">
- <?php html_navigation_bar() ?>
- <section class="content">
- <h1 style="color: red;"><?php echo $reason ?></h1>
- <a href="/">[ Back to home ]</a>
- </section>
-
- <section style="position: absolute; right: 6px; bottom: 6px;">
- <img src="/static/img/404/<?php
- $files = scandir(INSTANCE_STATIC_FOLDER . "/img/404");
- array_splice($files, 0, 2);
- echo $files[random_int(0, count($files) - 1)];
- ?>" alt=""></img>
- </section>
- </div>
- </div>
-</body>
-
-</html> \ No newline at end of file