The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Restrict # pages
#4
Thanks for the replies
[Image: 5G5O3U4.png]
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 } ?>
</pre>
  Reply


Messages In This Thread
Restrict # pages - by lordtyla - 09-17-2017, 12:02 PM
Restrict # pages - by Brandin - 09-17-2017, 12:21 PM
Restrict # pages - by mudmin - 09-17-2017, 12:27 PM
Restrict # pages - by lordtyla - 09-17-2017, 02:20 PM
Restrict # pages - by mudmin - 09-17-2017, 07:03 PM
Restrict # pages - by lordtyla - 09-18-2017, 02:09 PM
Restrict # pages - by karsen - 09-19-2017, 07:19 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)