09-17-2017, 02:20 PM
Thanks for the replies
Using the hasPerm function seems to show up as text on the actual webpage (localhost/#13) and it hasn't stoppped me from accessing the page
13.php
<pre></pre>
Using the hasPerm function seems to show up as text on the actual webpage (localhost/#13) and it hasn't stoppped me from accessing the page
13.php
<pre>
Code:
<?php require_once 'users/init.php'; ?>
<?php if (!securePage($_SERVER['PHP_SELF'])){die();}?>
<?php if (hasPerm([2],$user->data()->id)){ ?>
<script type="text/javascript">
$(document).ready(function () {
$('#doneimg3').fadeIn(1000);
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$("#redirectvideo").bind('ended', function(){
location.href="#14";
});
});
</script>
<span style="display: none;" id="doneimg3">
<div class="video-background"><video autoplay id="redirectvideo">
<source src="/video/vaultopen.mp4" type="video/mp4" />
</video></div>
</span>
<div class="row">
<div class="col-xs-12">
<div align="center"><a class="btn btn-warning " href="#14" role="button">Skip</a></div>
</div>
</div>
<?php } ?>