Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.06 KB | None | 0 0
  1. <?
  2. include_once($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/urlrewrite.php');
  3.  
  4. CHTTP::SetStatus("404 Not Found");
  5. @define("ERROR_404", "Y");
  6.  
  7. if ($APPLICATION) {
  8.  
  9.     $APPLICATION->RestartBuffer();
  10. }
  11. require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php');
  12. include($_SERVER['DOCUMENT_ROOT'].'/local/templates/404/header.php');
  13.  
  14. $APPLICATION->SetTitle("Страница не найдена"); ?>
  15.  
  16.     <div class="page">
  17.         <main class="forbidden">
  18.             <div class="container">
  19.                 <div class="forbidden__wrap"><img class="forbidden__img"
  20.                                                   src="/local/templates/404/images/404.png" alt="404">
  21.                     <div class="forbidden__title">Извините, данной страницы<br>не существует.</div>
  22.                     <a class="forbidden__link btn btn_r" href="/">Вернуться на главную</a>
  23.                 </div>
  24.             </div>
  25.         </main>
  26.     </div>
  27.  
  28.  
  29. <?
  30. include($_SERVER['DOCUMENT_ROOT'].'/local/templates/404/footer.php');
  31. require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/epilog_after.php');
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement