Files
breadcrumb-the-shire/pages/error/forbidden(error).phtml

23 lines
805 B
PHTML
Raw Normal View History

2026-02-04 23:31:53 +01:00
<?php
use MintyPHP\Http\Request;
http_response_code(403);
2026-02-04 23:31:53 +01:00
$path = Request::safeReturnTarget($_GET['url'] ?? '');
2026-02-04 23:31:53 +01:00
$pathDisplay = $path === '' ? '/' : '/' . $path;
$home = lurl('');
$backUrl = $path !== '' ? lurl($path) : $home;
2026-02-04 23:31:53 +01:00
?>
<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>