Added private module functionality.

This commit is contained in:
Josh Sherman 2010-12-09 22:52:26 -05:00
parent a72f49f2b4
commit 8fa5471aa7
2 changed files with 17 additions and 0 deletions

View file

@ -138,6 +138,13 @@ class Controller extends Object
$module = new Module();
}
// Determines if the module is private and should be, well, private
if ($module->private == true)
{
header('Location: /');
exit;
}
// Determines if we need to serve over HTTP or HTTPS
if ($module->secure == false && isset($_SERVER['HTTPS']))
{