public function setModule($module)
{
// is this module allowed?
if (!Authentication::isAllowedModule($module)) {
// set correct headers
header('HTTP/1.1 403 Forbidden');
// throw exception
throw new Exception('Module not allowed.');
}
// set property
$this->module = $module;
}