TYPO3 API  SVNRelease
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
tx_felogin_pi1 Class Reference
Inheritance diagram for tx_felogin_pi1:
Inheritance graph
[legend]
Collaboration diagram for tx_felogin_pi1:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Definition at line 35 of file class.tx_felogin_pi1.php.


Member Function Documentation

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

Returns:
string The content.

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

Parameters:
stringname of variable
stringname of sheet
Returns:
string value of var

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

Parameters:
array$usercontains user data
Returns:
string Empty string with success, error message with no success

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.

Author:
Bernhard Kraft
Parameters:
intlength of new password
Returns:
string 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

Parameters:
stringlabel name
stringTS stdWrap array
Returns:
string label text

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

Parameters:
stringlinktext
arraylink vars
booleantrue: returns only url false (default) returns the link)
Returns:
string link or url

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

Returns:
string additionalParams-string

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

Returns:
array marker array

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.

Parameters:
string$urlURL to be checked
Returns:
boolean Whether the URL belongs to the current TYPO3 installation

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.

Parameters:
string$urlAbsolute URL which needs to be checked
Returns:
boolean Whether the URL is considered to be local

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.

Parameters:
string$urlURL which needs to be checked
Returns:
boolean Whether the URL is considered to be relative

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 
)
tx_felogin_pi1::mergeflexFormValuesIntoConf ( ) [protected]

Reads flexform configuration and merge it with $this->conf

Returns:
void

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.

Returns:
string redirect url

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

Returns:
string content

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]
tx_felogin_pi1::showLogout ( ) [protected]

Shows logout form

Returns:
string The content.

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"

Parameters:
string$url
Returns:
string cleaned referer or empty string if not valid

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().


Member Data Documentation

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.


The documentation for this class was generated from the following file: