forbidden.php
См. документацию.
1 <?php
2 
3 /**
4  * @file
5  * @brief страница 403 доступ запрещен - модель существует, но недоступна
6  */
7 
8 isset($user) or require $_SERVER['DOCUMENT_ROOT'] . '/page/404.php';
9 
10 http_response_code(403);
11 
12 ?>
13 
14 <main class="position-fixed h-100 w-100" role="main" style="top: 0; left: 0;">
15  <div class="d-flex justify-content-center align-items-center flex-column h-100 text-danger text-center">
16  <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 512 512">
17  <path d="M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM512 256c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256z" fill="#f15e5e" />
18  </svg>
19  <div class="mt-3" style="font-size:100px;font-weight: 700;line-height: 1;">403</div>
20  <div class="mt-3" style="font-size:35px;font-weight: 700;line-height: 1;">Доступ запрещён</div>
21  <a class="mt-3" href="/?main"><?= $_SERVER['HTTP_HOST'] ?></a>
22  </div>
23 </main>
24 <script>
25  setTimeout(() => {
26  _modal("#sign-in");
27  }, 2000);
28 </script>
$user
Definition: from-user.php:38
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