I have a website where the content show is dependant on the status of a user vs an array. The authorization is done by a system we cannot control that authorizes all users, our site is only supposed to be available to a small group of users with a certain status.
We have to show an error if not in our group, and load the page if in our group. Our site has 30 content pages which all include the same header, footer, and data info.
I have several includes, the structure is :
Lets load - Content.php
Include - Databases connections - databaseconnect.php
Include - Header - header.php
Open If (in header)
Load actual Content
include footer - footer. php
close if.
My condition works, but I cannot seem to keep the if open through a file end? What am I doing wrong / how should i go about this?