Hello
I've got a nice site for myself. Every page in it loads a header and footer include (with a require()). It also features user logins.
Now, I want to make the pages invisible to non logged in users. I figured this would be simply a matter of adding a conditional to the header than checked for login status and opened a {. In the footer I added a }. Basically, the whole content of the page would be inclosed in a conditional structure.
But when I do it, I get parse errors. It doesn't like the idea of putting unclosed conditionals in the header. If I put the if(){ at the start of the main file and a } at the end, it works perfectly.
Any idea how to fix this? I really want something like this in the header/footer because I hate cluttering the content pages..
F*SH