|
TYPO3 API
SVNRelease
|


Public Member Functions | |
| main ($content, $conf) | |
Public Attributes | |
| $prefixId = 'tx_felogin_pi1' | |
| $scriptRelPath = 'pi1/class.tx_felogin_pi1.php' | |
| $extKey = 'felogin' | |
| $pi_checkCHash = false | |
| $pi_USER_INT_obj = true | |
Protected Member Functions | |
| showForgot () | |
| changePassword () | |
| generateAndSendHash ($user) | |
| showLogout () | |
| showLogin () | |
| processRedirect () | |
| mergeflexFormValuesIntoConf () | |
| flexFormValue ($var, $sheet) | |
| getPageLink ($label, $piVars, $returnUrl=false) | |
| getPreserveGetVars () | |
| generatePassword ($len) | |
| getDisplayText ($label, $stdWrapArray=array()) | |
| getUserFieldMarkers () | |
| validateRedirectUrl ($url) | |
| isInCurrentDomain ($url) | |
| isInLocalDomain ($url) | |
| isRelativeUrl ($url) | |
Protected Attributes | |
| $userIsLoggedIn | |
| $template | |
| $uploadDir | |
| $redirectUrl | |
| $noRedirect = false | |
| $logintype | |
Definition at line 35 of file class.tx_felogin_pi1.php.
| tx_felogin_pi1::changePassword | ( | ) | [protected] |
This function checks the hash from link and checks the validity. If it's valid it shows the form for changing the password and process the change of password after submit, if not valid it returns the error message
Definition at line 241 of file class.tx_felogin_pi1.php.
References $GLOBALS, $res, t3lib_div\_POST(), t3lib_div\callUserFunction(), getDisplayText(), getPageLink(), tslib_pibase\pi_getLL(), tslib_pibase\pi_getPageLink(), and tslib_pibase\pi_getRecord().
Referenced by main().
| tx_felogin_pi1::flexFormValue | ( | $ | var, |
| $ | sheet | ||
| ) | [protected] |
Loads a variable from the flexform
| string | name of variable |
| string | name of sheet |
Definition at line 748 of file class.tx_felogin_pi1.php.
References tslib_pibase\pi_getFFvalue().
Referenced by getDisplayText(), mergeflexFormValuesIntoConf(), showLogin(), and showLogout().
| tx_felogin_pi1::generateAndSendHash | ( | $ | user | ) | [protected] |
generates a hashed link and send it with email
| array | $user | contains user data |
Definition at line 334 of file class.tx_felogin_pi1.php.
References $GLOBALS, $res, t3lib_div\generateRandomBytes(), tslib_pibase\pi_getLL(), and tslib_pibase\pi_getPageLink().
Referenced by showForgot().
| tx_felogin_pi1::generatePassword | ( | $ | len | ) | [protected] |
Is used by forgot password - function with md5 option.
| int | length of new password |
Definition at line 825 of file class.tx_felogin_pi1.php.
Referenced by showForgot().
| tx_felogin_pi1::getDisplayText | ( | $ | label, |
| $ | stdWrapArray = array() |
||
| ) | [protected] |
Returns the header / message value from flexform if present, else from locallang.xml
| string | label name |
| string | TS stdWrap array |
Definition at line 845 of file class.tx_felogin_pi1.php.
References flexFormValue(), getUserFieldMarkers(), and tslib_pibase\pi_getLL().
Referenced by changePassword(), showForgot(), showLogin(), and showLogout().
| tx_felogin_pi1::getPageLink | ( | $ | label, |
| $ | piVars, | ||
| $ | returnUrl = false |
||
| ) | [protected] |
Generate link with typolink function
| string | linktext |
| array | link vars |
| boolean | true: returns only url false (default) returns the link) |
Definition at line 761 of file class.tx_felogin_pi1.php.
References $GLOBALS, tslib_pibase\$piVars, and getPreserveGetVars().
Referenced by changePassword(), showForgot(), showLogin(), and showLogout().
| tx_felogin_pi1::getPreserveGetVars | ( | ) | [protected] |
Is used by TS-setting preserveGETvars possible values are "all" or a commaseperated list of GET-vars they are used as additionalParams for link generation
Definition at line 793 of file class.tx_felogin_pi1.php.
References t3lib_div\_GET().
Referenced by getPageLink().
| tx_felogin_pi1::getUserFieldMarkers | ( | ) | [protected] |
Returns Array of markers filled with user fields
Definition at line 856 of file class.tx_felogin_pi1.php.
References $GLOBALS, $value, and t3lib_div\strtoupper().
Referenced by getDisplayText(), showForgot(), showLogin(), and showLogout().
| tx_felogin_pi1::isInCurrentDomain | ( | $ | url | ) | [protected] |
Determines whether the URL is on the current host and belongs to the current TYPO3 installation.
| string | $url | URL to be checked |
Definition at line 907 of file class.tx_felogin_pi1.php.
References t3lib_div\getIndpEnv(), t3lib_div\isFirstPartOfStr(), and t3lib_div\isOnCurrentHost().
Referenced by validateRedirectUrl().
| tx_felogin_pi1::isInLocalDomain | ( | $ | url | ) | [protected] |
Determines whether the URL matches a domain in the sys_domain databse table.
| string | $url | Absolute URL which needs to be checked |
Definition at line 918 of file class.tx_felogin_pi1.php.
References $GLOBALS, t3lib_div\isFirstPartOfStr(), and t3lib_div\isValidUrl().
Referenced by validateRedirectUrl().
| tx_felogin_pi1::isRelativeUrl | ( | $ | url | ) | [protected] |
Determines wether the URL is relative to the current TYPO3 installation.
| string | $url | URL which needs to be checked |
Definition at line 955 of file class.tx_felogin_pi1.php.
References t3lib_div\getIndpEnv(), and t3lib_div\isFirstPartOfStr().
Referenced by validateRedirectUrl().
| tx_felogin_pi1::main | ( | $ | content, |
| $ | conf | ||
| ) |
The main method of the plugin
| string | $content,: | The PlugIn content |
| array | $conf,: | The PlugIn configuration |
Definition at line 57 of file class.tx_felogin_pi1.php.
References tslib_pibase\$conf, $content, $GLOBALS, $redirectUrl, t3lib_div\_GP(), t3lib_div\callUserFunction(), changePassword(), mergeflexFormValuesIntoConf(), tslib_pibase\pi_getLL(), tslib_pibase\pi_getPidList(), tslib_pibase\pi_initPIflexForm(), tslib_pibase\pi_loadLL(), tslib_pibase\pi_setPiVarDefaults(), tslib_pibase\pi_wrapInBaseClass(), processRedirect(), t3lib_utility_Http\redirect(), showForgot(), showLogin(), showLogout(), and validateRedirectUrl().
| tx_felogin_pi1::mergeflexFormValuesIntoConf | ( | ) | [protected] |
Reads flexform configuration and merge it with $this->conf
Definition at line 683 of file class.tx_felogin_pi1.php.
References $pid, flexFormValue(), and tslib_pibase\pi_getPidList().
Referenced by main().
| tx_felogin_pi1::processRedirect | ( | ) | [protected] |
Process redirect methods. The function searches for a redirect url using all configured methods.
Definition at line 548 of file class.tx_felogin_pi1.php.
References $GLOBALS, $res, $row, t3lib_div\callUserFunction(), tslib_pibase\pi_getPageLink(), and t3lib_div\trimExplode().
Referenced by main().
| tx_felogin_pi1::showForgot | ( | ) | [protected] |
Shows the forgot password form
Definition at line 159 of file class.tx_felogin_pi1.php.
References $GLOBALS, $res, $row, t3lib_div\_POST(), generateAndSendHash(), generatePassword(), getDisplayText(), getPageLink(), getUserFieldMarkers(), and tslib_pibase\pi_getLL().
Referenced by main().
| tx_felogin_pi1::showLogin | ( | ) | [protected] |
Shows login form
Definition at line 421 of file class.tx_felogin_pi1.php.
References $GLOBALS, t3lib_div\_GP(), t3lib_div\callUserFunction(), flexFormValue(), getDisplayText(), t3lib_div\getIndpEnv(), getPageLink(), getUserFieldMarkers(), t3lib_div\inList(), tslib_pibase\pi_getLL(), and showLogout().
Referenced by main().
| tx_felogin_pi1::showLogout | ( | ) | [protected] |
Shows logout form
Definition at line 390 of file class.tx_felogin_pi1.php.
References $GLOBALS, flexFormValue(), getDisplayText(), getPageLink(), getUserFieldMarkers(), and tslib_pibase\pi_getLL().
Referenced by main(), and showLogin().
| tx_felogin_pi1::validateRedirectUrl | ( | $ | url | ) | [protected] |
Returns a valid and XSS cleaned url for redirect, checked against configuration "allowedRedirectHosts"
| string | $url |
Definition at line 876 of file class.tx_felogin_pi1.php.
References isInCurrentDomain(), isInLocalDomain(), isRelativeUrl(), tslib_pibase\pi_getLL(), t3lib_div\removeXSS(), and t3lib_div\SYSLOG_SEVERITY_WARNING.
Referenced by main().
| tx_felogin_pi1::$extKey = 'felogin' |
Reimplemented from tslib_pibase.
Definition at line 38 of file class.tx_felogin_pi1.php.
tx_felogin_pi1::$logintype [protected] |
Definition at line 47 of file class.tx_felogin_pi1.php.
tx_felogin_pi1::$noRedirect = false [protected] |
Definition at line 46 of file class.tx_felogin_pi1.php.
| tx_felogin_pi1::$pi_checkCHash = false |
Reimplemented from tslib_pibase.
Definition at line 39 of file class.tx_felogin_pi1.php.
| tx_felogin_pi1::$pi_USER_INT_obj = true |
Reimplemented from tslib_pibase.
Definition at line 40 of file class.tx_felogin_pi1.php.
| tx_felogin_pi1::$prefixId = 'tx_felogin_pi1' |
Reimplemented from tslib_pibase.
Definition at line 36 of file class.tx_felogin_pi1.php.
tx_felogin_pi1::$redirectUrl [protected] |
Definition at line 45 of file class.tx_felogin_pi1.php.
Referenced by main().
| tx_felogin_pi1::$scriptRelPath = 'pi1/class.tx_felogin_pi1.php' |
Reimplemented from tslib_pibase.
Definition at line 37 of file class.tx_felogin_pi1.php.
tx_felogin_pi1::$template [protected] |
Definition at line 43 of file class.tx_felogin_pi1.php.
tx_felogin_pi1::$uploadDir [protected] |
Definition at line 44 of file class.tx_felogin_pi1.php.
tx_felogin_pi1::$userIsLoggedIn [protected] |
Definition at line 42 of file class.tx_felogin_pi1.php.
1.7.5.1