Anyone familiar with bboard softs know that you can close your board when you don't want people to have access to your site for some reasons.
I was wondering what would be the best way to handle it?
There is one obvious and easy solution: include a file at the top of each with a request to a table. If the value for the 'open' col is false --> redirect to a page displaying the 'close' message.
Somwhow, hiting the db at the top of each page doesn't seem the best solution to me. Is there a better way? For example, is there a way to let the server know that in a 'closed website' situation he has to redirect users to a specific page? How tell the server (Apache in my case) that the situation is a 'closed website' one?
thanks in advance for your time and your help