Skip to content

Commit

Permalink
Add login required include template
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbennett committed Jul 7, 2021
1 parent ba3dd5c commit 8925c04
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/templates/LoginRequired.inc.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php /* vim: set colorcolumn= expandtab shiftwidth=2 softtabstop=2 tabstop=4 smarttab: */
namespace BNETDocs\Templates;
use \CarlBennett\MVC\Libraries\Common; ?>
<div class="alert alert-danger clearfix">
<p class="mb-0">You must be <strong>logged in</strong> and have <strong>sufficient permission</strong> to access this resource.</p>
</div>
<div class="text-center">
<a class="btn btn-primary" href="javascript:history.go(-1);">Back</a>
<a class="btn btn-success" href="<?=Common::relativeUrlToAbsolute(
'/user/login?return=' . rawurlencode(getenv('REQUEST_URI')))?>">Log in</a>
</div>

0 comments on commit 8925c04

Please sign in to comment.