ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
StartUp GUI class. More...
Public Member Functions | |
__construct () | |
constructor More... | |
executeCommand () | |
execute command More... | |
getLogger () | |
Get logger. More... | |
jumpToRegistration () | |
jump to registration gui More... | |
jumpToPasswordAssistance () | |
jump to password assistance More... | |
migrateAccount2 () | |
migrate account More... | |
showLogout () | |
show logout screen More... | |
showUserMappingSelection () | |
Show user selection screen, if external account could not be mapped to an ILIAS account, but the provided e-mail address is known. More... | |
showClientList () | |
show client list More... | |
showNoCookiesScreen () | |
show help screen, if cookies are disabled More... | |
confirmRegistration () | |
Static Public Member Functions | |
static | _checkGoto ($a_target) |
Data Fields | |
const | ACCOUNT_MIGRATION_MIGRATE = 1 |
const | ACCOUNT_MIGRATION_NEW = 2 |
Protected Member Functions | |
showLoginPage (ilPropertyFormGUI $form=null) | |
showLogin () | |
Show login. More... | |
showCodeForm ($a_username=null, $a_form=null) | |
initCodeForm ($a_username) | |
processCode () | |
initStandardLoginForm () | |
Initialize the standard. More... | |
doShibbolethAuthentication () | |
Trying shibboleth authentication. More... | |
doCasAuthentication () | |
Try CAS auth. More... | |
doApacheAuthentication () | |
Try apache auth. More... | |
doStandardAuthentication () | |
Check form input; authenticate user. More... | |
showLoginForm ($page_editor_html, ilPropertyFormGUI $form=null) | |
Show login form ilSetting $ilSetting. More... | |
showLoginInformation ($page_editor_html) | |
Show login information. More... | |
showCASLoginForm ($page_editor_html) | |
Show cas login ilSetting $ilSetting. More... | |
showShibbolethLoginForm ($page_editor_html) | |
Show shibboleth login form. More... | |
substituteLoginPageElements ($tpl, $page_editor_html, $element_html, $placeholder, $fallback_tplvar) | |
Substitute login page elements. More... | |
getLoginPageEditorHTML () | |
Get HTML of ILIAS login page editor. More... | |
showRegistrationLinks ($page_editor_html) | |
Show registration, password forgotten, client slection links ilLanguage $lng ilSetting $ilSetting <type> $ilIliasIniFile. More... | |
purgePlaceholders ($page_editor_html) | |
Purge page editor html from unused placeholders. More... | |
migrateAccount () | |
Migrate Account. More... | |
doMigrationNewAccount () | |
Create new account for migration. More... | |
doMigration () | |
Do migration of existing ILIAS database user account. More... | |
getAcceptance () | |
Get terms of service. More... | |
processIndexPHP () | |
process index.php More... | |
Static Protected Member Functions | |
static | getLanguageSelection () |
language selection list More... | |
Protected Attributes | |
$ctrl | |
$lng | |
$logger | |
StartUp GUI class.
Handles Login and Registration.
Definition at line 15 of file class.ilStartUpGUI.php.
ilStartUpGUI::__construct | ( | ) |
constructor
Definition at line 27 of file class.ilStartUpGUI.php.
References $ilCtrl, $lng, array, and ilLoggerFactory\getLogger().
|
static |
Definition at line 1975 of file class.ilStartUpGUI.php.
References $_SESSION, $ilUser, $location, $path, $ref_id, $ret, ilObject\_getAllReferences(), ilObjCourse\_isActivated(), ilGroupParticipants\_isParticipant(), ilLMObject\_lookupContObjID(), ilObject\_lookupObjId(), ilObject\_lookupType(), ilObjCourse\_registrationEnabled(), array, ilParticipants\getDefaultMemberRole(), ilPluginAdmin\getPluginObject(), IL_COMP_SERVICE, and ilUtil\redirect().
ilStartUpGUI::confirmRegistration | ( | ) |
Definition at line 2174 of file class.ilStartUpGUI.php.
References $_COOKIE, $_GET, $ilCtrl, $ilLog, $ilSetting, $lng, $target, $tpl, ilObjUserFolder\_lookupNewAccountMail(), ilObjUser\_verifyRegistrationHash(), array, ilUtil\generatePasswords(), ilUtil\getImagePath(), ilObjectFactory\getInstanceByObjId(), IL_PASSWD_PLAIN, ilUIFramework\init(), iljQueryUtil\initjQuery(), ilUtil\redirect(), ilUtil\setCookie(), and time.
|
protected |
Try apache auth.
Definition at line 771 of file class.ilStartUpGUI.php.
References $GLOBALS, League\OAuth2\Client\Provider\$provider, ilUtil\appendUrlParameterString(), array, AUTH_APACHE, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), getLogger(), ilLoggerFactory\getLogger(), ilUtil\redirect(), ilUtil\sendFailure(), showLoginPage(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
|
protected |
Try CAS auth.
Definition at line 726 of file class.ilStartUpGUI.php.
References $DIC, $GLOBALS, League\OAuth2\Client\Provider\$provider, array, AUTH_CAS, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), getLogger(), ilUtil\sendFailure(), showLoginPage(), ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
|
protected |
Do migration of existing ILIAS database user account.
Definition at line 1397 of file class.ilStartUpGUI.php.
References $_POST, $GLOBALS, League\OAuth2\Client\Provider\$provider, array, AUTH_LOCAL, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilSession\get(), ilAuthStatus\getInstance(), getLogger(), ilAuthFrontend\MIG_TRIGGER_AUTHMODE, ilUtil\sendFailure(), and ilAuthStatus\STATUS_AUTHENTICATED.
Referenced by migrateAccount().
|
protected |
Create new account for migration.
Definition at line 1354 of file class.ilStartUpGUI.php.
References $GLOBALS, League\OAuth2\Client\Provider\$provider, array, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilSession\get(), ilAuthStatus\getInstance(), ilAuthFrontend\MIG_EXTERNAL_ACCOUNT, ilAuthFrontend\MIG_TRIGGER_AUTHMODE, and ilUtil\sendFailure().
Referenced by migrateAccount().
|
protected |
Trying shibboleth authentication.
Definition at line 674 of file class.ilStartUpGUI.php.
References $GLOBALS, League\OAuth2\Client\Provider\$provider, array, AUTH_SHIBBOLETH, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), getLogger(), ilLoggerFactory\getLogger(), ilUtil\sendFailure(), showLoginPage(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
|
protected |
Check form input; authenticate user.
Definition at line 835 of file class.ilStartUpGUI.php.
References $GLOBALS, ilAuthModeDetermination\_getInstance(), ilAuthUtils\_hasMultipleAuthenticationMethods(), ilObjUser\_lookupLogin(), ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), getLogger(), ilLoggerFactory\getLogger(), initStandardLoginForm(), ilUtil\sendFailure(), showCodeForm(), showLoginPage(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, ilAuthStatus\STATUS_AUTHENTICATED, ilAuthStatus\STATUS_AUTHENTICATION_FAILED, and ilAuthStatus\STATUS_CODE_ACTIVATION_REQUIRED.
ilStartUpGUI::executeCommand | ( | ) |
execute command
Definition at line 43 of file class.ilStartUpGUI.php.
Referenced by jumpToPasswordAssistance(), and jumpToRegistration().
|
protected |
Get terms of service.
Definition at line 1873 of file class.ilStartUpGUI.php.
References $_GET, $_POST, $ilSetting, $ilUser, $lng, $target, $tpl, ilUtil\formCheckbox(), ilSession\get(), ilTermsOfServiceSignableDocumentFactory\getByLanguageObject(), ilSystemSupportContacts\getMailToAddress(), ilUtil\prepareFormOutput(), ilUtil\redirect(), ilSession\set(), and ilTermsOfServiceHelper\trackAcceptance().
|
staticprotected |
language selection list
Definition at line 2387 of file class.ilStartUpGUI.php.
References ilMainMenuGUI\getLanguageSelection().
ilStartUpGUI::getLogger | ( | ) |
Get logger.
Definition at line 70 of file class.ilStartUpGUI.php.
References $logger.
Referenced by doApacheAuthentication(), doCasAuthentication(), doMigration(), doShibbolethAuthentication(), doStandardAuthentication(), showLogin(), and showLoginPage().
|
protected |
Get HTML of ILIAS login page editor.
Definition at line 1083 of file class.ilStartUpGUI.php.
References $lng, $ret, $tpl, ilPageUtil\_existsAndNotEmpty(), ilObjStyleSheet\getContentStylePath(), ilAuthLoginPageEditorSettings\getInstance(), ilObjStyleSheet\getSyntaxStylePath(), and ilLanguage\lookupId().
Referenced by showLogin(), and showLoginPage().
|
protected |
Definition at line 476 of file class.ilStartUpGUI.php.
References $ilCtrl, $lng, and ilFormPropertyGUI\setRequired().
Referenced by processCode(), and showCodeForm().
|
protected |
Initialize the standard.
Definition at line 598 of file class.ilStartUpGUI.php.
References ilAuthModeDetermination\_getInstance(), ilAuthUtils\_getMultipleAuthModeOptions(), ilAuthUtils\_hasMultipleAuthenticationMethods(), array, ilFormPropertyGUI\setRequired(), ilTextInputGUI\setSize(), and ilPasswordInputGUI\setUseStripSlashes().
Referenced by doStandardAuthentication(), and showLoginForm().
ilStartUpGUI::jumpToPasswordAssistance | ( | ) |
jump to password assistance
Definition at line 90 of file class.ilStartUpGUI.php.
References $GLOBALS, array, executeCommand(), ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), showLoginPage(), and user().
ilStartUpGUI::jumpToRegistration | ( | ) |
jump to registration gui
Definition at line 79 of file class.ilStartUpGUI.php.
References executeCommand().
|
protected |
Migrate Account.
Definition at line 1320 of file class.ilStartUpGUI.php.
References $_POST, $GLOBALS, doMigration(), and doMigrationNewAccount().
ilStartUpGUI::migrateAccount2 | ( | ) |
migrate account
public
Definition at line 1472 of file class.ilStartUpGUI.php.
References $_POST, $ilLog, $lng, League\OAuth2\Client\Provider\$provider, ilAuthModeDetermination\_getInstance(), ilAuthUtils\_hasMultipleAuthenticationMethods(), ilObjUser\_lookupId(), AUTH_LOCAL, ilAuthFactory\factory(), ilSession\get(), ilLoggerFactory\getLogger(), ilAuthStatus\STATUS_AUTHENTICATED, and ilUtil\stripSlashes().
|
protected |
ilLanguage $lng type $ilAuth type $ilCtrl
Definition at line 510 of file class.ilStartUpGUI.php.
References $_POST, $code, $GLOBALS, $ilCtrl, $lng, ilObjUser\_lookupId(), ilAccountCode\applyAccessLimits(), ilAccountCode\applyRoleAssignments(), ilAccountCode\getCodeValidUntil(), initCodeForm(), ilAccountCode\isUnusedCode(), ilUtil\sendSuccess(), showCodeForm(), showLogin(), time, and ilAccountCode\useCode().
|
protected |
process index.php
Definition at line 1939 of file class.ilStartUpGUI.php.
References $_GET, $GLOBALS, $ilIliasIniFile, $ilSetting, ilInitialisation\goToPublicSection(), showClientList(), and showLoginPage().
Referenced by showClientList().
|
protected |
Purge page editor html from unused placeholders.
string | $page_editor_html |
Definition at line 1234 of file class.ilStartUpGUI.php.
References $_POST, $lng, $new, $pass, $tpl, ilRadioOption\addSubItem(), array, ilUtil\prepareFormOutput(), ilUtil\sendFailure(), ilRadioGroupInputGUI\setValue(), and ilRadioOption\setValue().
Referenced by showLogin(), and showLoginPage().
|
protected |
Show cas login ilSetting $ilSetting.
string | $page_editor_html |
Definition at line 969 of file class.ilStartUpGUI.php.
References $GLOBALS, $ilSetting, $lng, $tpl, ilUtil\getImagePath(), and substituteLoginPageElements().
Referenced by showLogin(), and showLoginPage().
ilStartUpGUI::showClientList | ( | ) |
show client list
Definition at line 1735 of file class.ilStartUpGUI.php.
References $_GET, $client, $data, $ilIliasIniFile, $lng, $tbl, $tpl, array, exit, ilUtil\getStyleSheetLocation(), header, and processIndexPHP().
Referenced by processIndexPHP().
|
protected |
Definition at line 459 of file class.ilStartUpGUI.php.
References $lng, $tpl, initCodeForm(), and ilUtil\sendFailure().
Referenced by doStandardAuthentication(), processCode(), and showLogin().
|
protected |
Show login.
ilLanguage $lng
Definition at line 208 of file class.ilStartUpGUI.php.
References $_COOKIE, $_GET, $_SERVER, $failure, $ilSetting, $lng, $success, $tpl, AUTH_APACHE_FAILED, AUTH_CAPTCHA_INVALID, AUTH_CAS_NO_ILIAS_USER, AUTH_LDAP_NO_ILIAS_USER, AUTH_MODE_INACTIVE, AUTH_RADIUS_NO_ILIAS_USER, AUTH_SOAP_NO_ILIAS_USER, AUTH_USER_INACTIVE, AUTH_USER_SIMULTANEOUS_LOGIN, AUTH_USER_TIME_LIMIT_EXCEEDED, AUTH_USER_WRONG_IP, getLogger(), getLoginPageEditorHTML(), purgePlaceholders(), ilUtil\redirect(), ilUtil\sendFailure(), ilUtil\sendSuccess(), ilSession\SESSION_CLOSE_CAPTCHA, ilSession\SESSION_CLOSE_INACTIVE, ilSession\SESSION_CLOSE_IP, ilSession\SESSION_CLOSE_SIMUL, ilSession\SESSION_CLOSE_TIME, ilSession\setClosingContext(), ilUtil\setCookie(), showCASLoginForm(), showCodeForm(), showLoginForm(), showLoginInformation(), showRegistrationLinks(), showShibbolethLoginForm(), and ilLogLevel\WARNING.
Referenced by processCode().
|
protected |
Show login form ilSetting $ilSetting.
string | $page_editor_html |
Definition at line 909 of file class.ilStartUpGUI.php.
References $ilSetting, $lng, $tpl, AUTH_CAS, AUTH_SHIBBOLETH, initStandardLoginForm(), and substituteLoginPageElements().
Referenced by showLogin(), and showLoginPage().
|
protected |
Show login information.
string | $page_editor_html |
Definition at line 943 of file class.ilStartUpGUI.php.
Referenced by showLogin(), and showLoginPage().
|
protected |
Show login page
Definition at line 154 of file class.ilStartUpGUI.php.
References $GLOBALS, $ilSetting, $tpl, getLogger(), getLoginPageEditorHTML(), purgePlaceholders(), ilUtil\sendFailure(), showCASLoginForm(), showLoginForm(), showLoginInformation(), showRegistrationLinks(), and showShibbolethLoginForm().
Referenced by doApacheAuthentication(), doCasAuthentication(), doShibbolethAuthentication(), doStandardAuthentication(), jumpToPasswordAssistance(), and processIndexPHP().
ilStartUpGUI::showLogout | ( | ) |
show logout screen
Definition at line 1616 of file class.ilStartUpGUI.php.
References $_COOKIE, $client_id, $GLOBALS, $ilIliasIniFile, $ilSetting, $lng, $tpl, array, ilSession\SESSION_CLOSE_USER, ilSession\setClosingContext(), ilUtil\setCookie(), and user().
ilStartUpGUI::showNoCookiesScreen | ( | ) |
show help screen, if cookies are disabled
to do: link to online help here
Definition at line 1844 of file class.ilStartUpGUI.php.
References $tpl.
|
protected |
Show registration, password forgotten, client slection links ilLanguage $lng ilSetting $ilSetting <type> $ilIliasIniFile.
string | $page_editor_html |
Definition at line 1134 of file class.ilStartUpGUI.php.
References $_COOKIE, $GLOBALS, $ilIliasIniFile, $ilSetting, $lng, ilRegistrationSettings\_lookupRegistrationType(), ilTermsOfServiceSignableDocumentFactory\getByLanguageObject(), IL_REG_DISABLED, ilTermsOfServiceHelper\isEnabled(), and substituteLoginPageElements().
Referenced by showLogin(), and showLoginPage().
|
protected |
Show shibboleth login form.
string | $page_editor_html |
Definition at line 1001 of file class.ilStartUpGUI.php.
References $_GET, $GLOBALS, $ilSetting, $lng, $tpl, and substituteLoginPageElements().
Referenced by showLogin(), and showLoginPage().
ilStartUpGUI::showUserMappingSelection | ( | ) |
Show user selection screen, if external account could not be mapped to an ILIAS account, but the provided e-mail address is known.
Definition at line 1669 of file class.ilStartUpGUI.php.
References $_GET, $_POST, $lng, $tpl, $valid, ilObjUser\_getLocalAccountsForEmail(), ilUtil\prepareFormOutput(), and ilUtil\sendFailure().
|
protected |
Substitute login page elements.
ilTemplate | $tpl | |
string | $page_editor_html | |
string | $element_html | |
string | $placeholder | |
string | $fallback_tplvar | return string $page_editor_html |
Definition at line 1063 of file class.ilStartUpGUI.php.
References $tpl.
Referenced by showCASLoginForm(), showLoginForm(), showRegistrationLinks(), and showShibbolethLoginForm().
|
protected |
Definition at line 20 of file class.ilStartUpGUI.php.
|
protected |
Definition at line 21 of file class.ilStartUpGUI.php.
Referenced by __construct(), confirmRegistration(), getAcceptance(), getLoginPageEditorHTML(), initCodeForm(), migrateAccount2(), processCode(), purgePlaceholders(), showCASLoginForm(), showClientList(), showCodeForm(), showLogin(), showLoginForm(), showLoginInformation(), showLogout(), showRegistrationLinks(), showShibbolethLoginForm(), and showUserMappingSelection().
|
protected |
Definition at line 22 of file class.ilStartUpGUI.php.
Referenced by getLogger().
const ilStartUpGUI::ACCOUNT_MIGRATION_MIGRATE = 1 |
Definition at line 17 of file class.ilStartUpGUI.php.
const ilStartUpGUI::ACCOUNT_MIGRATION_NEW = 2 |
Definition at line 18 of file class.ilStartUpGUI.php.