09-17-2017, 12:02 PM
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></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?
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();}?>
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?