[Typo3] hot to check if user is logged on
Mathias Schreiber [wmdb]
mathias.schreiber at wmdb.de
Mon Apr 18 14:22:25 CEST 2005
Rudy Gnodde wrote:
> Hello,
>
> If I remember correctly the variable
> $GLOBALS["TSFE"]->fe_user->user["uid"] should be what you're looking
> for. It has the user's uid when someone is logged in.
to be precise $GLOBALS['TSFE']->fe_user is an object in PHP which can
trigger the function user which then will return the user array (SELECT
* FROM fe_users WHERE uid = CURRENTLY_LOGGED_IN_USER) and this can be
checked.
--
No Subject - No Realname - No Service!
Respect the List/Newsgroup Rules!
>> http://typo3.org/1438.0.html <<
--------------------------------------
if ($GLOBALS['TSFE']->feuser->data['ahnung'] == 0) {
$this->fresseHalten = 1;
}
More information about the TYPO3-english
mailing list