diff options
| author | ilotterytea <iltsu@alright.party> | 2025-12-08 21:53:36 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-12-08 21:53:36 +0500 |
| commit | 57472eab3c7b035392c6a5aa240593ecaa7d1ccf (patch) | |
| tree | 9da30829290f225be2dab3d383549cbfda82ed19 /404.php | |
| parent | 6541d0f3888862ab049055fd418b700f73eed367 (diff) | |
upd: moved all /public/ files to the root folder
Diffstat (limited to '404.php')
| -rw-r--r-- | 404.php | 43 |
1 files changed, 43 insertions, 0 deletions
@@ -0,0 +1,43 @@ +<?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 |
