1
0
Files
breadcrumb-the-shire/pages/error/forbidden(error).phtml
2026-02-04 23:31:53 +01:00

24 lines
850 B
PHTML

<?php
use MintyPHP\Http\Request;
header('HTTP/1.1 403 Forbidden');
$path = Request::pathWithQuery();
$pathDisplay = $path === '' ? '/' : '/' . $path;
$home = lurl('');
$backTarget = Request::safeReturnTarget('');
$backUrl = $backTarget !== '' ? lurl($backTarget) : $home;
?>
<header>
<h1><?php e(t('Access denied')); ?></h1>
<p><?php e(t('You do not have permission to view this content.')); ?></p>
</header>
<p><?php e(t('If you believe this is an error, please contact your system administrator.')); ?></p>
<p>
<small><?php e(t('Requested URL')); ?></small><br>
<span class="badge" data-variant="neutral" data-copy="true"><?php e($pathDisplay); ?></span>
</p>
<a class="outline secondary" role="button" href="<?php e($backUrl); ?>"><?php e(t('Back')); ?></a>
<a role="button" href="<?php e($home); ?>"><?php e(t('Home')); ?></a>