I'm currently working on restricting access to pages for users who are logged into my site. However, I keen getting the wrong result.
I have two senarios:
Logged in users must see the logged in page
- This is then further restricted by access level (0 = None, 1 = General User, 2 = Team User, etc.)
- 2 must have access to all pages, 1 to some page, and 0 only have access to the home page
Users who are not logged in must see a different page all together (Contains registration info)
Here is what I have been tryign, but it is not working:
<head> <title>Test Page</title> <?php include 'formatting.html' ?> </head> <body> <?php if (login_check($mysqli) == true) : include 'panelin.php'; include '../menu2/menu.html'; ?> <?php else : include 'panelout.php'; ?> <?php endif; ?>
This was mainly focusing for the logged in vs. logged out users at the moment.
I am able to see the session info, however I keep getting the panelout.php page instead of the panelin.php