101 if(is_object(self::$instance))
125 $this->account_security_mode = $a_mode;
148 $this->password_chars_and_numbers_enabled = $a_chars_and_numbers_enabled;
172 $this->password_special_chars_enabled = $a_password_special_chars_enabled;
194 $this->password_min_length = $a_password_min_length;
214 $this->password_max_length = $a_password_max_length;
234 $this->password_max_age = $a_password_max_age;
254 $this->login_max_attempts = $a_login_max_attempts;
275 $this->https_header_enable = $varname;
285 $this->https_header_name = $varname;
295 $this->https_header_value = $varname;
335 $this->https_enable = $value;
357 $this->password_change_on_first_login_enabled = $a_password_change_on_first_login_enabled;
406 $query =
"SELECT object_reference.ref_id FROM object_reference,tree,object_data ".
407 "WHERE tree.parent = ".$ilDB->quote(SYSTEM_FOLDER_ID,
'integer').
" ".
408 "AND object_data.type = 'ps' ".
409 "AND object_reference.ref_id = tree.child ".
410 "AND object_reference.obj_id = object_data.obj_id";
413 $this->ref_id =
$row[
"ref_id"];
415 $this->https_header_enable = (bool) $this->settings->get(
'ps_auto_https_enabled',
false);
416 $this->https_header_name = (string) $this->settings->get(
'ps_auto_https_headername',
"ILIAS_HTTPS_ENABLED");
417 $this->https_header_value = (string) $this->settings->get(
'ps_auto_https_headervalue',
"1");
418 $this->https_enable = (boolean) $this->settings->get(
'https',
false);
420 $this->account_security_mode = (int) $this->settings->get(
'ps_account_security_mode',0);
421 $this->password_chars_and_numbers_enabled = (bool) $this->settings->get(
'ps_password_chars_and_numbers_enabled',
false);
422 $this->password_special_chars_enabled = (bool) $this->settings->get(
'ps_password_special_chars_enabled',
false);
423 $this->password_min_length = (int) $this->settings->get(
'ps_password_min_length',0);
424 $this->password_max_length = (int) $this->settings->get(
'ps_password_max_length',0);
425 $this->password_max_age = (int) $this->settings->get(
'ps_password_max_age',0);
426 $this->login_max_attempts = (int) $this->settings->get(
'ps_login_max_attempts',0);
428 $this->password_change_on_first_login_enabled = (bool) $this->settings->get(
'ps_password_change_on_first_login_enabled',
false);
429 $this->prevent_simultaneous_logins = (bool) $this->settings->get(
'ps_prevent_simultaneous_logins',
false);
444 return ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_AUTO_HTTPS;
446 include_once
'./classes/class.ilHTTPS.php';
486 return $password_min_length_error_code;
529 $this->prevent_simultaneous_logins = (bool)$value;