111 if(is_object(self::$instance))
135 $this->account_security_mode = $a_mode;
158 $this->password_chars_and_numbers_enabled = $a_chars_and_numbers_enabled;
182 $this->password_special_chars_enabled = $a_password_special_chars_enabled;
204 $this->password_min_length = $a_password_min_length;
224 $this->password_max_length = $a_password_max_length;
244 $this->password_max_age = $a_password_max_age;
264 $this->login_max_attempts = $a_login_max_attempts;
285 $this->https_header_enable = $varname;
295 $this->https_header_name = $varname;
305 $this->https_header_value = $varname;
345 $this->https_enable = $value;
367 $this->password_change_on_first_login_enabled = $a_password_change_on_first_login_enabled;
416 $query =
"SELECT object_reference.ref_id FROM object_reference,tree,object_data ".
417 "WHERE tree.parent = ".$ilDB->quote(SYSTEM_FOLDER_ID,
'integer').
" ".
418 "AND object_data.type = 'ps' ".
419 "AND object_reference.ref_id = tree.child ".
420 "AND object_reference.obj_id = object_data.obj_id";
423 $this->ref_id =
$row[
"ref_id"];
425 $this->https_header_enable = (bool) $this->settings->get(
'ps_auto_https_enabled',
false);
426 $this->https_header_name = (string) $this->settings->get(
'ps_auto_https_headername',
"ILIAS_HTTPS_ENABLED");
427 $this->https_header_value = (string) $this->settings->get(
'ps_auto_https_headervalue',
"1");
428 $this->https_enable = (boolean) $this->settings->get(
'https',
false);
430 $this->account_security_mode = (int) $this->settings->get(
'ps_account_security_mode', self::DEFAULT_ACCOUNT_SECURITY_MODE);
431 $this->password_chars_and_numbers_enabled = (bool) $this->settings->get(
'ps_password_chars_and_numbers_enabled', self::DEFAULT_PASSWORD_CHARS_AND_NUMBERS_ENABLED);
432 $this->password_special_chars_enabled = (bool) $this->settings->get(
'ps_password_special_chars_enabled', self::DEFAULT_PASSWORD_SPECIAL_CHARS_ENABLED);
433 $this->password_min_length = (int) $this->settings->get(
'ps_password_min_length', self::DEFAULT_PASSWORD_MIN_LENGTH);
434 $this->password_max_length = (int) $this->settings->get(
'ps_password_max_length', self::DEFAULT_PASSWORD_MAX_LENGTH);
435 $this->password_max_age = (int) $this->settings->get(
'ps_password_max_age', self::DEFAULT_PASSWORD_MAX_AGE);
436 $this->login_max_attempts = (int) $this->settings->get(
'ps_login_max_attempts', self::DEFAULT_LOGIN_MAX_ATTEMPTS);
438 $this->password_change_on_first_login_enabled = (bool) $this->settings->get(
'ps_password_change_on_first_login_enabled', self::DEFAULT_PASSWORD_CHANGE_ON_FIRST_LOGIN_ENABLED);
439 $this->prevent_simultaneous_logins = (bool) $this->settings->get(
'ps_prevent_simultaneous_logins', self::DEFAULT_PREVENT_SIMULTANEOUS_LOGINS);
454 return ilSecuritySettings::SECURITY_SETTINGS_ERR_CODE_AUTO_HTTPS;
456 include_once
'./classes/class.ilHTTPS.php';
496 return $password_min_length_error_code;
539 $this->prevent_simultaneous_logins = (bool)$value;