Skip to content

Commit 8925c04

Browse files
committed
Add login required include template
1 parent ba3dd5c commit 8925c04

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/templates/LoginRequired.inc.phtml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php /* vim: set colorcolumn= expandtab shiftwidth=2 softtabstop=2 tabstop=4 smarttab: */
2+
namespace BNETDocs\Templates;
3+
use \CarlBennett\MVC\Libraries\Common; ?>
4+
<div class="alert alert-danger clearfix">
5+
<p class="mb-0">You must be <strong>logged in</strong> and have <strong>sufficient permission</strong> to access this resource.</p>
6+
</div>
7+
<div class="text-center">
8+
<a class="btn btn-primary" href="javascript:history.go(-1);">Back</a>
9+
<a class="btn btn-success" href="<?=Common::relativeUrlToAbsolute(
10+
'/user/login?return=' . rawurlencode(getenv('REQUEST_URI')))?>">Log in</a>
11+
</div>

0 commit comments

Comments
 (0)