• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Protect site based on config setting?

[eluser]Sven Delle[/eluser]

I'd like to create a sort of site protection routine using a custom config file:


$site_config['site_protected'] = true/false;

And based on that set the default controller (in the routes.php file) accordingly to either:

site or login (controller)

How do I go about doing this? Or should I have a totally different approach?

The idea is to be able to easily enable or disable site protection.

Any ideas?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.