TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\FrontendBackendUserAuthentication Class Reference
Inheritance diagram for TYPO3\CMS\Backend\FrontendBackendUserAuthentication:
TYPO3\CMS\Core\Authentication\BackendUserAuthentication TYPO3\CMS\Core\Authentication\AbstractUserAuthentication t3lib_tsfeBeUserAuth

Public Member Functions

 initializeAdminPanel ()
 
 initializeFrontendEdit ()
 
 isFrontendEditingActive ()
 
 displayAdminPanel ()
 
 isAdminPanelVisible ()
 
 checkBackendAccessSettingsFromInitPhp ()
 
 extPageReadAccess ($pageRec)
 
 extGetTreeList ($id, $depth, $begin=0, $perms_clause)
 
 extGetLL ($key)
 
- Public Member Functions inherited from TYPO3\CMS\Core\Authentication\BackendUserAuthentication
 __construct ()
 
 isAdmin ()
 
 isMemberOfGroup ($groupId)
 
 doesUserHaveAccess ($row, $perms)
 
 isInWebMount ($id, $readPerms='', $exitOnError=0)
 
 modAccess ($conf, $exitOnError)
 
 getPagePermsClause ($perms)
 
 calcPerms ($row)
 
 isRTE ()
 
 check ($type, $value)
 
 checkAuthMode ($table, $field, $value, $authMode)
 
 checkLanguageAccess ($langValue)
 
 checkFullLanguagesAccess ($table, $record)
 
 recordEditAccessInternals ($table, $idOrRow, $newRecord=FALSE, $deletedRecord=FALSE, $checkFullLanguageAccess=FALSE)
 
 isPSet ($compiledPermissions, $tableName, $actionType='')
 
 mayMakeShortcut ()
 
 workspaceCannotEditRecord ($table, $recData)
 
 workspaceCannotEditOfflineVersion ($table, $recData)
 
 workspaceAllowLiveRecordsInPID ($pid, $table)
 
 workspaceCreateNewRecord ($pid, $table)
 
 workspaceAllowAutoCreation ($table, $id, $recpid)
 
 workspaceCheckStageForCurrent ($stage)
 
 workspacePublishAccess ($wsid)
 
 workspaceSwapAccess ()
 
 getTSConfig ($objectString, $config='')
 
 getTSConfigVal ($objectString)
 
 getTSConfigProp ($objectString)
 
 returnWebmounts ()
 
 jsConfirmation ($bitmask)
 
 fetchGroupData ()
 
 fetchGroups ($grList, $idList='')
 
 setCachedList ($cList)
 
 getCategoryMountPoints ()
 
 getFileMountRecords ()
 
 getFileStorages ()
 
 evaluateUserSpecificFileFilterSettings ()
 
 getFilePermissions ()
 
 getFilePermissionsForStorage (\TYPO3\CMS\Core\Resource\ResourceStorage $storageObject)
 
 getDefaultUploadTemporaryFolder ()
 
 addTScomment ($str)
 
 workspaceInit ()
 
 checkWorkspace ($wsRec, $fields='uid, title, adminusers, members, reviewers, publish_access, stagechg_notification')
 
 checkWorkspaceCurrent ()
 
 setWorkspace ($workspaceId)
 
 setTemporaryWorkspace ($workspaceId)
 
 setDefaultWorkspace ()
 
 setWorkspacePreview ($previewState)
 
 getDefaultWorkspace ()
 
 writelog ($type, $action, $error, $details_nr, $details, $data, $tablename='', $recuid='', $recpid='', $event_pid=-1, $NEWid='', $userId=0)
 
 simplelog ($message, $extKey='', $error=0)
 
 checkLockToIP ()
 
 backendCheckLogin ()
 
 checkCLIuser ()
 
 backendSetUC ()
 
 overrideUC ()
 
 resetUC ()
 
 logoff ()
 
- Public Member Functions inherited from TYPO3\CMS\Core\Authentication\AbstractUserAuthentication
 __construct ()
 
 start ()
 
 isSetSessionCookie ()
 
 isRefreshTimeBasedCookie ()
 
 checkAuthentication ()
 
 createSessionId ()
 
 createUserSession ($tempuser)
 
 getNewSessionRecord ($tempuser)
 
 fetchUserSession ($skipSessionUpdate=FALSE)
 
 logoff ()
 
 removeCookie ($cookieName)
 
 isExistingSessionRecord ($id)
 
 isCookieSet ()
 
 veriCode ()
 
 writeUC ($variable='')
 
 unpack_uc ($theUC='')
 
 pushModuleData ($module, $data, $noSave=0)
 
 getModuleData ($module, $type='')
 
 getSessionData ($key)
 
 setAndSaveSessionData ($key, $data)
 
 getLoginFormData ()
 
 processLoginData ($loginData, $passwordTransmissionStrategy='')
 
 getAuthInfoArray ()
 
 compareUident ($user, $loginData, $passwordCompareStrategy='')
 
 gc ()
 
 writelog ($type, $action, $error, $details_nr, $details, $data, $tablename, $recuid, $recpid)
 
 checkLogFailures ($email, $secondsBack, $maxFailures)
 
 setBeUserByUid ($uid)
 
 setBeUserByName ($name)
 
 getRawUserByUid ($uid)
 
 getRawUserByName ($name)
 
 fetchUserRecord ($dbUser, $username, $extraWhere='')
 

Public Attributes

 $formfield_uname = ''
 
 $formfield_uident = ''
 
 $formfield_chalvalue = ''
 
 $writeStdLog = FALSE
 
 $writeAttemptLog = FALSE
 
 $extPageInTreeInfo = array()
 
 $extAdmEnabled = FALSE
 
 $adminPanel = NULL
 
 $frontendEdit = NULL
 
 $extAdminConfig = array()
 
- Public Attributes inherited from TYPO3\CMS\Core\Authentication\BackendUserAuthentication
 $usergroup_column = 'usergroup'
 
 $usergroup_table = 'be_groups'
 
 $groupData
 
 $userGroups = array()
 
 $userGroupsUID = array()
 
 $groupList = ''
 
 $workspace = -99
 
 $workspaceRec = array()
 
 $dataLists
 
 $includeHierarchy = array()
 
 $includeGroupArray = array()
 
 $OS = ''
 
 $TSdataArray = array()
 
 $userTS_text = ''
 
 $userTS = array()
 
 $userTSUpdated = FALSE
 
 $userTS_dontGetCached = FALSE
 
 $RTE_errors = array()
 
 $errorMsg = ''
 
 $checkWorkspaceCurrent_cache = NULL
 
 $session_table = 'be_sessions'
 
 $user_table = 'be_users'
 
 $username_column = 'username'
 
 $userident_column = 'password'
 
 $userid_column = 'uid'
 
 $lastLogin_column = 'lastlogin'
 
 $enablecolumns
 
 $formfield_uname = 'username'
 
 $formfield_uident = 'userident'
 
 $formfield_chalvalue = 'challenge'
 
 $formfield_status = 'login_status'
 
 $writeStdLog = TRUE
 
 $writeAttemptLog = TRUE
 
 $auth_timeout_field = 6000
 
 $challengeStoredInCookie = TRUE
 
 $firstMainGroup = 0
 
 $uc
 
 $uc_default
 
- Public Attributes inherited from TYPO3\CMS\Core\Authentication\AbstractUserAuthentication
 $global_database = ''
 
 $session_table = ''
 
 $name = ''
 
 $get_name = ''
 
 $user_table = ''
 
 $usergroup_table = ''
 
 $username_column = ''
 
 $userident_column = ''
 
 $userid_column = ''
 
 $usergroup_column = ''
 
 $lastLogin_column = ''
 
 $enablecolumns
 
 $showHiddenRecords = FALSE
 
 $formfield_uname = ''
 
 $formfield_uident = ''
 
 $formfield_chalvalue = ''
 
 $formfield_status = ''
 
 $auth_timeout_field = 0
 
 $lifetime = 0
 
 $gc_time = 0
 
 $gc_probability = 1
 
 $writeStdLog = FALSE
 
 $writeAttemptLog = FALSE
 
 $sendNoCacheHeaders = TRUE
 
 $getFallBack = FALSE
 
 $hash_length = 32
 
 $getMethodEnabled = FALSE
 
 $lockIP = 4
 
 $lockHashKeyWords = 'useragent'
 
 $warningEmail = ''
 
 $warningPeriod = 3600
 
 $warningMax = 3
 
 $checkPid = TRUE
 
 $checkPid_value = 0
 
 $id
 
 $cookieId
 
 $loginFailure = FALSE
 
 $loginSessionStarted = FALSE
 
 $user = NULL
 
 $get_URL_ID = ''
 
 $newSessionID = FALSE
 
 $forceSetCookie = FALSE
 
 $dontSetCookie = FALSE
 
 $challengeStoredInCookie = FALSE
 
 $loginType = ''
 
 $svConfig = array()
 
 $writeDevLog = FALSE
 
 $uc
 

Protected Member Functions

 getLanguageService ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Authentication\BackendUserAuthentication
 initializeDbMountpointsInWorkspace ()
 
 isUserAllowedToLogin ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Authentication\AbstractUserAuthentication
 setSessionCookie ()
 
 getCookieDomain ()
 
 getCookie ($cookieName)
 
 regenerateSessionId ()
 
 fetchUserSessionFromDB ()
 
 user_where_clause ()
 
 ipLockClause ()
 
 ipLockClause_remoteIPNumber ($parts)
 
 hashLockClause ()
 
 hashLockClause_getHashInt ()
 
 getDatabaseConnection ()
 

Additional Inherited Members

- Static Public Member Functions inherited from TYPO3\CMS\Core\Authentication\BackendUserAuthentication
static getCookieName ()
 
- Protected Attributes inherited from TYPO3\CMS\Core\Authentication\BackendUserAuthentication
 $fileStorages
 
 $filePermissions
 
- Protected Attributes inherited from TYPO3\CMS\Core\Authentication\AbstractUserAuthentication
 $cookieWasSetOnCurrentRequest = FALSE
 
 $db = NULL
 

Detailed Description

TYPO3 backend user authentication in the TSFE frontend. This includes mainly functions related to the Admin Panel

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 27 of file FrontendBackendUserAuthentication.php.

Member Function Documentation

◆ checkBackendAccessSettingsFromInitPhp()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::checkBackendAccessSettingsFromInitPhp ( )

Implementing the access checks that the typo3/init.php script does before a user is ever logged in. Used in the frontend.

Returns
boolean Returns TRUE if access is OK

Definition at line 181 of file FrontendBackendUserAuthentication.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\cmpIP(), TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv(), and TYPO3\CMS\Core\Authentication\BackendUserAuthentication\isUserAllowedToLogin().

◆ displayAdminPanel()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::displayAdminPanel ( )

Delegates to the appropriate view and renders the admin panel content.

Returns
string.

Definition at line 157 of file FrontendBackendUserAuthentication.php.

◆ extGetLL()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::extGetLL (   $key)

Returns the label for key. If a translation for the language set in $this->uc['lang'] is found that is returned, otherwise the default value. If the global variable $LOCAL_LANG is NOT an array (yet) then this function loads the global $LOCAL_LANG array with the content of "sysext/lang/locallang_tsfe.xlf" such that the values therein can be used for labels in the Admin Panel

Parameters
string$keyKey for a label in the $GLOBALS['LOCAL_LANG'] array of "sysext/lang/locallang_tsfe.xlf
Returns
string The value for the $key

Definition at line 287 of file FrontendBackendUserAuthentication.php.

References $GLOBALS, and TYPO3\CMS\Backend\FrontendBackendUserAuthentication\getLanguageService().

◆ extGetTreeList()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::extGetTreeList (   $id,
  $depth,
  $begin = 0,
  $perms_clause 
)

Generates a list of Page-uid's from $id. List does not include $id itself The only pages excluded from the list are deleted pages.

Parameters
integer$idStart page id
integer$depthDepth to traverse down the page tree.
integer$beginIs an optional integer that determines at which level in the tree to start collecting uid's. Zero means 'start right away', 1 = 'next level and out'
string$perms_clausePerms clause
Returns
string Returns the list with a comma in the end (if any pages selected!)

Definition at line 236 of file FrontendBackendUserAuthentication.php.

References $GLOBALS, TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\$id, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

◆ extPageReadAccess()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::extPageReadAccess (   $pageRec)

Evaluates if the Backend User has read access to the input page record. The evaluation is based on both read-permission and whether the page is found in one of the users webmounts. Only if both conditions are TRUE will the function return TRUE. Read access means that previewing is allowed etc. Used in index_ts.php

Parameters
array$pageRecThe page record to evaluate for
Returns
boolean TRUE if read access

Definition at line 217 of file FrontendBackendUserAuthentication.php.

References TYPO3\CMS\Core\Authentication\BackendUserAuthentication\doesUserHaveAccess(), and TYPO3\CMS\Core\Authentication\BackendUserAuthentication\isInWebMount().

◆ getLanguageService()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::getLanguageService ( )
protected
Returns
LanguageService

Definition at line 304 of file FrontendBackendUserAuthentication.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\FrontendBackendUserAuthentication\extGetLL().

◆ initializeAdminPanel()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::initializeAdminPanel ( )

◆ initializeFrontendEdit()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::initializeFrontendEdit ( )

◆ isAdminPanelVisible()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::isAdminPanelVisible ( )

Determines whether the admin panel is enabled and visible.

Returns
boolean Whether the admin panel is enabled and visible

Definition at line 166 of file FrontendBackendUserAuthentication.php.

References $GLOBALS.

◆ isFrontendEditingActive()

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::isFrontendEditingActive ( )

Determines whether frontend editing is currently active.

Returns
boolean Whether frontend editing is active

Definition at line 144 of file FrontendBackendUserAuthentication.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\FrontendBackendUserAuthentication\initializeFrontendEdit().

Member Data Documentation

◆ $adminPanel

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$adminPanel = NULL

Definition at line 81 of file FrontendBackendUserAuthentication.php.

◆ $extAdmEnabled

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$extAdmEnabled = FALSE

Definition at line 76 of file FrontendBackendUserAuthentication.php.

◆ $extAdminConfig

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$extAdminConfig = array()

Definition at line 91 of file FrontendBackendUserAuthentication.php.

◆ $extPageInTreeInfo

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$extPageInTreeInfo = array()

Definition at line 69 of file FrontendBackendUserAuthentication.php.

◆ $formfield_chalvalue

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$formfield_chalvalue = ''

Definition at line 48 of file FrontendBackendUserAuthentication.php.

◆ $formfield_uident

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$formfield_uident = ''

Definition at line 41 of file FrontendBackendUserAuthentication.php.

◆ $formfield_uname

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$formfield_uname = ''

Definition at line 34 of file FrontendBackendUserAuthentication.php.

◆ $frontendEdit

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$frontendEdit = NULL

Definition at line 86 of file FrontendBackendUserAuthentication.php.

◆ $writeAttemptLog

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$writeAttemptLog = FALSE

Definition at line 62 of file FrontendBackendUserAuthentication.php.

◆ $writeStdLog

TYPO3\CMS\Backend\FrontendBackendUserAuthentication::$writeStdLog = FALSE

Definition at line 55 of file FrontendBackendUserAuthentication.php.