![]() |
TYPO3
7.6
|
Public Member Functions | |
main ($content, $conf) | |
![]() | |
pi_setPiVarDefaults () | |
pi_getPageLink ($id, $target= '', $urlParameters=array()) | |
pi_linkToPage ($str, $id, $target= '', $urlParameters=array()) | |
pi_linkTP ($str, $urlParameters=array(), $cache=false, $altPageId=0) | |
pi_linkTP_keepPIvars ($str, $overrulePIvars=array(), $cache=false, $clearAnyway=false, $altPageId=0) | |
pi_linkTP_keepPIvars_url ($overrulePIvars=array(), $cache=false, $clearAnyway=false, $altPageId=0) | |
pi_list_linkSingle ($str, $uid, $cache=false, $mergeArr=array(), $urlOnly=false, $altPageId=0) | |
pi_openAtagHrefInJSwindow ($str, $winName= '', $winParams= 'width=670, height=500, status=0, menubar=0, scrollbars=1, resizable=1') | |
pi_list_browseresults ($showResultCount=1, $tableParams= '', $wrapArr=array(), $pointerName= 'pointer', $hscText=true, $forceOutput=false) | |
pi_list_searchBox ($tableParams= '') | |
pi_list_modeSelector ($items=array(), $tableParams= '') | |
pi_list_makelist ($res, $tableParams= '') | |
pi_list_row ($c) | |
pi_list_header () | |
pi_getClassName ($class) | |
pi_classParam ($class, $addClasses= '') | |
pi_wrapInBaseClass ($str) | |
pi_getEditPanel ($row=array(), $tablename= '', $label= '', $conf=array()) | |
pi_getEditIcon ($content, $fields, $title= '', $row=array(), $tablename= '', $oConf=array()) | |
pi_getLL ($key, $alternativeLabel= '', $hsc=false) | |
pi_exec_query ($table, $count=false, $addWhere= '', $mm_cat= '', $groupBy= '', $orderBy= '', $query= '') | |
pi_getRecord ($table, $uid, $checkPage=false) | |
pi_getPidList ($pid_list, $recursive=0) | |
pi_prependFieldsWithTable ($table, $fieldList) | |
pi_getCategoryTableContents ($table, $pid, $whereClause= '', $groupBy= '', $orderBy= '', $limit= '') | |
pi_isOnlyFields ($fList, $lowerThan=-1) | |
pi_autoCache ($inArray) | |
pi_RTEcssText ($str) | |
pi_initPIflexForm ($field= 'pi_flexform') | |
pi_getFFvalue ($T3FlexForm_array, $fieldName, $sheet= 'sDEF', $lang= 'lDEF', $value= 'vDEF') | |
pi_getFFvalueFromSheetArray ($sheetArray, $fieldNameArr, $value) | |
Public Attributes | |
$prefixId = 'tx_felogin_pi1' | |
$extKey = 'felogin' | |
$pi_checkCHash = false | |
$pi_USER_INT_obj = true | |
$spid | |
$referer | |
![]() | |
$cObj | |
$prefixId | |
$scriptRelPath | |
$extKey | |
$piVars | |
$internal = array('res_count' => 0, 'results_at_a_time' => 20, 'maxPages' => 10, 'currentRow' => array(), 'currentTable' => '') | |
$LOCAL_LANG = array() | |
$LOCAL_LANG_charset = array() | |
$LOCAL_LANG_loaded = 0 | |
$LLkey = 'default' | |
$altLLkey = '' | |
$LLtestPrefix = '' | |
$LLtestPrefixAlt = '' | |
$pi_isOnlyFields = 'mode,pointer' | |
$pi_alwaysPrev = 0 | |
$pi_lowerThan = 5 | |
$pi_moreParams = '' | |
$pi_listFields = '*' | |
$pi_autoCacheFields = array() | |
$pi_autoCacheEn = 0 | |
$pi_USER_INT_obj = false | |
$pi_checkCHash = false | |
$conf = array() | |
$pi_EPtemp_cObj | |
$pi_tmpPageId = 0 | |
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) | |
![]() | |
applyStdWrapRecursive (array $conf, $level=0) | |
Protected Attributes | |
$userIsLoggedIn | |
$template | |
$uploadDir | |
$redirectUrl | |
$noRedirect = false | |
$logintype | |
![]() | |
$LOCAL_LANG_UNSET = array() | |
$frontendController | |
$databaseConnection | |
Plugin 'Website User Login' for the 'felogin' extension.
Definition at line 23 of file FrontendLoginController.php.
|
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 289 of file FrontendLoginController.php.
References $GLOBALS, FrontendLoginController\$spid, GeneralUtility\_POST(), GeneralUtility\callUserFunction(), elseif, FrontendLoginController\getDisplayText(), FrontendLoginController\getPageLink(), AbstractPlugin\pi_getLL(), and AbstractPlugin\pi_getRecord().
Referenced by FrontendLoginController\main().
|
protected |
Loads a variable from the flexform
string | $var | Name of variable |
string | $sheet | Name of sheet |
Definition at line 821 of file FrontendLoginController.php.
References AbstractPlugin\pi_getFFvalue().
Referenced by FrontendLoginController\getDisplayText(), FrontendLoginController\mergeflexFormValuesIntoConf(), and FrontendLoginController\showLogout().
|
protected |
Generates a hashed link and send it with email
array | $user | Contains user data |
Definition at line 396 of file FrontendLoginController.php.
References $GLOBALS, GeneralUtility\callUserFunction(), elseif, GeneralUtility\generateRandomBytes(), GeneralUtility\locationHeaderUrl(), AbstractPlugin\pi_getLL(), and AbstractPlugin\pi_getPageLink().
Referenced by FrontendLoginController\showForgot().
|
protected |
Is used by forgot password - function with md5 option.
int | $len | Length of new password |
Definition at line 892 of file FrontendLoginController.php.
Referenced by FrontendLoginController\showForgot().
|
protected |
Returns the header / message value from flexform if present, else from locallang.xlf
string | $label | label name |
array | $stdWrapArray | TS stdWrap array |
Definition at line 913 of file FrontendLoginController.php.
References FrontendLoginController\flexFormValue(), FrontendLoginController\getUserFieldMarkers(), and AbstractPlugin\pi_getLL().
Referenced by FrontendLoginController\changePassword(), FrontendLoginController\showForgot(), FrontendLoginController\showLogin(), and FrontendLoginController\showLogout().
|
protected |
Generate link with typolink function
string | $label | Linktext |
array | $piVars | Link vars |
bool | $returnUrl | TRUE: returns only url FALSE (default) returns the link) |
Definition at line 834 of file FrontendLoginController.php.
References AbstractPlugin\$piVars, and FrontendLoginController\getPreserveGetVars().
Referenced by FrontendLoginController\changePassword(), FrontendLoginController\showForgot(), FrontendLoginController\showLogin(), and FrontendLoginController\showLogout().
|
protected |
Add additional parameters for links according to TS setting preserveGETvars. Possible values are "all" or a comma separated list of allowed GET-vars. Supports multi-dimensional GET-vars. Some hardcoded values are dropped.
Definition at line 865 of file FrontendLoginController.php.
References GeneralUtility\_GET(), GeneralUtility\explodeUrl2Array(), GeneralUtility\implodeArrayForUrl(), and GeneralUtility\trimExplode().
Referenced by FrontendLoginController\getPageLink().
|
protected |
Returns Array of markers filled with user fields
Definition at line 925 of file FrontendLoginController.php.
References GeneralUtility\strtoupper().
Referenced by FrontendLoginController\getDisplayText(), FrontendLoginController\showForgot(), FrontendLoginController\showLogin(), and FrontendLoginController\showLogout().
|
protected |
Determines whether the URL is on the current host and belongs to the current TYPO3 installation. The scheme part is ignored in the comparison.
string | $url | URL to be checked |
Definition at line 974 of file FrontendLoginController.php.
References $url, StringUtility\beginsWith(), and GeneralUtility\getIndpEnv().
Referenced by FrontendLoginController\validateRedirectUrl().
|
protected |
Determines whether the URL matches a domain in the sys_domain database table.
string | $url | Absolute URL which needs to be checked |
Definition at line 989 of file FrontendLoginController.php.
References $url, GeneralUtility\isFirstPartOfStr(), and GeneralUtility\isValidUrl().
Referenced by FrontendLoginController\validateRedirectUrl().
|
protected |
Determines whether the URL is relative to the current TYPO3 installation.
string | $url | URL which needs to be checked |
Definition at line 1021 of file FrontendLoginController.php.
References $url, GeneralUtility\getIndpEnv(), and GeneralUtility\isFirstPartOfStr().
Referenced by FrontendLoginController\validateRedirectUrl().
main | ( | $content, | |
$conf | |||
) |
The main method of the plugin
string | $content | The PlugIn content |
array | $conf | The PlugIn configuration |
Definition at line 112 of file FrontendLoginController.php.
References AbstractPlugin\$conf, $GLOBALS, FrontendLoginController\$redirectUrl, FrontendLoginController\$userIsLoggedIn, GeneralUtility\_GP(), GeneralUtility\callUserFunction(), FrontendLoginController\changePassword(), GeneralUtility\deprecationLog(), elseif, FrontendLoginController\mergeflexFormValuesIntoConf(), AbstractPlugin\pi_getLL(), AbstractPlugin\pi_getPidList(), AbstractPlugin\pi_initPIflexForm(), AbstractPlugin\pi_setPiVarDefaults(), AbstractPlugin\pi_wrapInBaseClass(), FrontendLoginController\processRedirect(), FrontendLoginController\showForgot(), FrontendLoginController\showLogin(), FrontendLoginController\showLogout(), and FrontendLoginController\validateRedirectUrl().
|
protected |
Reads flexform configuration and merge it with $this->conf
Definition at line 768 of file FrontendLoginController.php.
References FrontendLoginController\flexFormValue(), and AbstractPlugin\pi_getPidList().
Referenced by FrontendLoginController\main().
|
protected |
Process redirect methods. The function searches for a redirect url using all configured methods.
Definition at line 630 of file FrontendLoginController.php.
References $GLOBALS, FrontendLoginController\$redirectUrl, FrontendLoginController\$referer, $url, GeneralUtility\callUserFunction(), elseif, AbstractPlugin\pi_getPageLink(), and GeneralUtility\trimExplode().
Referenced by FrontendLoginController\main().
|
protected |
Shows the forgot password form
Definition at line 218 of file FrontendLoginController.php.
References GeneralUtility\_POST(), elseif, FrontendLoginController\generateAndSendHash(), FrontendLoginController\generatePassword(), FrontendLoginController\getDisplayText(), FrontendLoginController\getPageLink(), FrontendLoginController\getUserFieldMarkers(), and AbstractPlugin\pi_getLL().
Referenced by FrontendLoginController\main().
|
protected |
Shows login form
Definition at line 493 of file FrontendLoginController.php.
References $GLOBALS, FrontendLoginController\$prefixId, FrontendLoginController\$redirectUrl, FrontendLoginController\$referer, FrontendLoginController\$spid, GeneralUtility\_GP(), GeneralUtility\callUserFunction(), FrontendLoginController\getDisplayText(), GeneralUtility\getIndpEnv(), FrontendLoginController\getPageLink(), FrontendLoginController\getUserFieldMarkers(), GeneralUtility\inList(), AbstractPlugin\pi_getLL(), and FrontendLoginController\showLogout().
Referenced by FrontendLoginController\main().
|
protected |
Shows logout form
Definition at line 463 of file FrontendLoginController.php.
References FrontendLoginController\$prefixId, FrontendLoginController\$spid, FrontendLoginController\flexFormValue(), FrontendLoginController\getDisplayText(), FrontendLoginController\getPageLink(), FrontendLoginController\getUserFieldMarkers(), and AbstractPlugin\pi_getLL().
Referenced by FrontendLoginController\main(), and FrontendLoginController\showLogin().
|
protected |
Returns a valid and XSS cleaned url for redirect, checked against configuration "allowedRedirectHosts"
string | $url |
Definition at line 946 of file FrontendLoginController.php.
References $url, FrontendLoginController\isInCurrentDomain(), FrontendLoginController\isInLocalDomain(), FrontendLoginController\isRelativeUrl(), AbstractPlugin\pi_getLL(), GeneralUtility\removeXSS(), and GeneralUtility\SYSLOG_SEVERITY_WARNING.
Referenced by FrontendLoginController\main().
$extKey = 'felogin' |
Definition at line 37 of file FrontendLoginController.php.
|
protected |
Definition at line 89 of file FrontendLoginController.php.
|
protected |
Definition at line 82 of file FrontendLoginController.php.
$pi_checkCHash = false |
Definition at line 42 of file FrontendLoginController.php.
$pi_USER_INT_obj = true |
Definition at line 47 of file FrontendLoginController.php.
$prefixId = 'tx_felogin_pi1' |
Definition at line 30 of file FrontendLoginController.php.
Referenced by FrontendLoginController\showLogin(), and FrontendLoginController\showLogout().
|
protected |
Definition at line 75 of file FrontendLoginController.php.
Referenced by FrontendLoginController\main(), FrontendLoginController\processRedirect(), and FrontendLoginController\showLogin().
$referer |
Definition at line 103 of file FrontendLoginController.php.
Referenced by FrontendLoginController\processRedirect(), and FrontendLoginController\showLogin().
$spid |
Definition at line 96 of file FrontendLoginController.php.
Referenced by FrontendLoginController\changePassword(), FrontendLoginController\showLogin(), and FrontendLoginController\showLogout().
|
protected |
Definition at line 61 of file FrontendLoginController.php.
|
protected |
Definition at line 68 of file FrontendLoginController.php.
|
protected |
Definition at line 54 of file FrontendLoginController.php.
Referenced by FrontendLoginController\main().