[ Index ] |
|
Code source de Typo3 4.1.3 |
[Code source] [Imprimer] [Statistiques]
Contains class for TYPO3 backend user authentication $Id: class.t3lib_beuserauth.php 1421 2006-04-10 09:27:15Z mundaun $ Revised for TYPO3 3.6 July/2003 by Kasper Skaarhoj
Author: | Kasper Skaarhoj <kasperYYYY@typo3.com> |
Poids: | 364 lignes (14 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
t3lib_beUserAuth:: (9 méthodes):
trackBeUser()
checkLockToIP()
backendCheckLogin()
checkCLIuser()
backendSetUC()
overrideUC()
resetUC()
emailAtLogin()
veriCode()
Classe: t3lib_beUserAuth - X-Ref
TYPO3 user authentication, backendtrackBeUser($flag) X-Ref |
If flag is set and the extensions 'beuser_tracking' is loaded, this will insert a table row with the REQUEST_URI of current script - thus tracking the scripts the backend users uses... This function works ONLY with the "beuser_tracking" extension and is deprecated since it does nothing useful. param: boolean Activate insertion of the URL. return: void |
checkLockToIP() X-Ref |
If TYPO3_CONF_VARS['BE']['enabledBeUserIPLock'] is enabled and an IP-list is found in the User TSconfig objString "options.lockToIP", then make an IP comparison with REMOTE_ADDR and return the outcome (true/false) return: boolean True, if IP address validates OK (or no check is done at all) |
backendCheckLogin() X-Ref |
Check if user is logged in and if so, call ->fetchGroupData() to load group information and access lists of all kind, further check IP, set the ->uc array and send login-notification email if required. If no user is logged in the default behaviour is to exit with an error message, but this will happen ONLY if the constant TYPO3_PROCEED_IF_NO_USER is set true. This function is called right after ->start() in fx. init.php return: void |
checkCLIuser() X-Ref |
If the backend script is in CLI mode, it will try to load a backend user named by the CLI module name (in lowercase) return: boolean Returns true if a CLI user was loaded, otherwise false! |
backendSetUC() X-Ref |
Initialize the internal ->uc array for the backend user Will make the overrides if necessary, and write the UC back to the be_users record if changes has happend return: void |
overrideUC() X-Ref |
Override: Call this function every time the uc is updated. That is 1) by reverting to default values, 2) in the setup-module, 3) userTS changes (userauthgroup) return: void |
resetUC() X-Ref |
Clears the user[uc] and ->uc to blank strings. Then calls ->backendSetUC() to fill it again with reset contents return: void |
emailAtLogin() X-Ref |
Will send an email notification to warning_email_address/the login users email address when a login session is just started. Depends on various parameters whether mails are send and to whom. return: void |
veriCode() X-Ref |
VeriCode returns 10 first chars of a md5 hash of the session cookie AND the encryptionKey from TYPO3_CONF_VARS. This code is used as an alternative verification when the JavaScript interface executes cmd's to tce_db.php from eg. MSIE 5.0 because the proper referer is not passed with this browser... return: string |
Généré le : Sun Nov 25 17:13:16 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |