The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
#1
Hiya I am developing a site that uses ajax to load pages, so everything runs off index.php but it just changes the content of the page when you press a navigation button rather than reloading the entire page. I have run into a little problem with restricting these pages

I am trying to restrict http://localhost/#13
I have included the following at the top of the 13.php page:
<pre>
Code:
<?php require_once 'users/init.php'; ?>
<?php if (!securePage($_SERVER['PHP_SELF'])){die();}?>
</pre>


When I go to localhost/13.php it is restricted as intended but if I go to localhost/#13 it is not restricted

Any ideas?
  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: 1 Guest(s)