baseline
This commit is contained in:
24
pages/error/forbidden(error).phtml
Normal file
24
pages/error/forbidden(error).phtml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user