[TYPO3] php help in regards to frontend logins
Mauro Lorenzutti
mauro.lorenzutti at webformat.com
Wed May 9 12:32:19 CEST 2007
Hi Dave,
Wednesday, May 9, 2007, 12:09:20 PM, you wrote:
> Hi I'm trying to make it so that the marker ###DOWNLOAD_LINK###
> within a php file only displays when a frontend user (belonging to a
> specific group) is logged in
> so I added the line if ($HTTP_COOKIE_VARS["fe_typo_user"]) {
To get the logged in user you can use the following code:
$logged = $GLOBALS["TSFE"]->fe_user->user;
$logged will contain an array with all the FE user informations.
Regards,
Mauro Lorenzutti
e-mail: mauro.lorenzutti at webformat.com
---------------------------------------------------------
WEBFORMAT srl | Corte Europa, 12 | I-33097 SPILIMBERGO PN
Tel +39-0427-926.389 -- Fax +39-0427-927.653
info at webformat.com -- http://www.webformat.com
---------------------------------------------------------
More information about the TYPO3-english
mailing list