404.php
См. документацию.
1 <?php
2 
3 /**
4  * @file
5  * @brief страница 404
6  */
7 
8 ob_clean();
9 http_response_code(404);
10 
11 ?>
12 <!DOCTYPE html>
13 <html lang="ru">
14 
15 <head>
16  <meta charset="UTF-8">
17  <meta name="viewport" content="width=device-width, initial-scale=1.0">
18  <link rel="stylesheet" href="/assets/system/css/main.min.css?<?= filemtime(__DIR__ . '/assets/system/css/main.min.css') ?>">
19  <script src="/assets/system/js/main.min.js?<?= filemtime(__DIR__ . '/assets/system/js/main.min.js') ?>"></script>
20  <title>404 Not Found</title>
21 </head>
22 
23 <body>
24  <main class="position-fixed h-100 w-100" role="main" style="top: 0; left: 0;">
25  <div class="d-flex justify-content-center align-items-center flex-column h-100 text-danger text-center">
26  <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 512 512">
27  <path d="M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z" fill="#f15e5e" />
28  </svg>
29  <div class="mt-3" style="font-size:100px;font-weight: 700;line-height: 1;">404</div>
30  <a class="mt-3" href="/?main"><?= $_SERVER['HTTP_HOST'] ?></a>
31  </div>
32  </main>
33 </body>
34 
35 </html>
36 <?php exit; ?>
exit
Definition: 404.php:30
setcookie('FROM_UID', $uid, [ 'expires'=> time()+31536000, 'path'=> '/', 'domain'=> $_SERVER['HTTP_HOST'], 'secure'=> Wrong\Start\Env::$e->IS_SECURE, 'httponly'=> false, 'samesite'=> Wrong\Start\Env::$e->IS_SECURE ? 'None' :'Lax']) or setcookie('FROM_UID' $_SERVER['HTTP_HOST']
Definition: from-user.php:36
href
Definition: main.php:21