111 if(is_object(self::$instance))
132 $this->account_security_mode = $a_mode;
155 $this->password_chars_and_numbers_enabled = $a_chars_and_numbers_enabled;
179 $this->password_special_chars_enabled = $a_password_special_chars_enabled;
201 $this->password_min_length = $a_password_min_length;
221 $this->password_max_length = $a_password_max_length;
241 $this->password_max_age = $a_password_max_age;
261 $this->login_max_attempts = $a_login_max_attempts;
282 $this->https_header_enable = $varname;
292 $this->https_header_name = $varname;
302 $this->https_header_value = $varname;
342 $this->https_enable = $value;
364 $this->password_change_on_first_login_enabled = $a_password_change_on_first_login_enabled;
403 $this->settings->set(
'ps_exam_useragent', (
string)$this->
getExamUserAgent());
404 $this->settings->set(
'ps_exam_role_id', (
int)$this->
getExamRoleId());
405 $this->settings->set(
'ps_exam_skin', (
string)$this->
getExamSkin());
419 $query =
"SELECT object_reference.ref_id FROM object_reference,tree,object_data ".
420 "WHERE tree.parent = ".$ilDB->quote(SYSTEM_FOLDER_ID,
'integer').
" ".
421 "AND object_data.type = 'ps' ".
422 "AND object_reference.ref_id = tree.child ".
423 "AND object_reference.obj_id = object_data.obj_id";
426 $this->ref_id =
$row[
"ref_id"];
428 $this->https_header_enable = (bool) $this->settings->get(
'ps_auto_https_enabled',
false);
429 $this->https_header_name = (string) $this->settings->get(
'ps_auto_https_headername',
"ILIAS_HTTPS_ENABLED");
430 $this->https_header_value = (string) $this->settings->get(
'ps_auto_https_headervalue',
"1");
431 $this->https_enable = (boolean) $this->settings->get(
'https',
false);
433 $this->account_security_mode = (int) $this->settings->get(
'ps_account_security_mode',0);
434 $this->password_chars_and_numbers_enabled = (bool) $this->settings->get(
'ps_password_chars_and_numbers_enabled',
false);
435 $this->password_special_chars_enabled = (bool) $this->settings->get(
'ps_password_special_chars_enabled',
false);
436 $this->password_min_length = (int) $this->settings->get(
'ps_password_min_length',0);
437 $this->password_max_length = (int) $this->settings->get(
'ps_password_max_length',0);
438 $this->password_max_age = (int) $this->settings->get(
'ps_password_max_age',0);
439 $this->login_max_attempts = (int) $this->settings->get(
'ps_login_max_attempts',0);
441 $this->password_change_on_first_login_enabled = (bool) $this->settings->get(
'ps_password_change_on_first_login_enabled',
false);
442 $this->prevent_simultaneous_logins = (bool) $this->settings->get(
'ps_prevent_simultaneous_logins',
false);
445 $this->exam_useragent = (string) $this->settings->get(
'ps_exam_useragent', self::DEFAULT_EXAM_USERAGENT);
446 $this->exam_role_id = (int) $this->settings->get(
'ps_exam_role_id', self::DEFAULT_EXAM_ROLE_ID);
447 $this->exam_skin = (string) $this->settings->get(
'ps_exam_skin',
"");
462 return ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_AUTO_HTTPS;
464 include_once
'./classes/class.ilHTTPS.php';
504 return $password_min_length_error_code;
547 $this->prevent_simultaneous_logins = (bool)$value;
568 $this->exam_useragent = $a_useragent;
587 $this->exam_role_id = $a_role_id;
607 $this->exam_skin = $a_exam_skin;