Added private module functionality.
This commit is contained in:
parent
a72f49f2b4
commit
8fa5471aa7
2 changed files with 17 additions and 0 deletions
|
@ -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']))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue