[TYPO3] php help in regards to frontend logins
    Mauro Lorenzutti 
    mauro.lorenzutti at webformat.com
       
    Wed May  9 17:40:49 CEST 2007
    
    
  
> hmm can't seem to see the key when typing in
> t3lib_div::debug($logged);
> just says debug at the upper left hand corner with no array displayed.
> this is my code currently:
> $usergroups = explode(',', $logged['usergroups']);
> t3lib_div::debug($logged);
> if (in_array($8, usergroups)) {
>             $this->markContentArray["###DOWNLOAD_LINK###"] = '';
>             if($this->conf['addDownloadLink']) {
>                 $this->markContentArray["###DOWNLOAD_LINK###"] = '<a
> href="' . $info['origFile'] . '"' .
>                         $target.$GLOBALS['TSFE']->ATagParams .
'>>download original image</a>';
>             	}
>             }
In your code I can't find the following line:
$logged = $GLOBALS["TSFE"]->fe_user->user;
Did you miss it? It must be the first line.
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