[TYPO3-dev] How to access a Typoscript setting in t3lib_userauth.php

Thorsten Kahler thorsten.kahler at dkd.de
Mon Jan 23 12:25:36 CET 2006


Revocation!

Thorsten Kahler schrieb:
> Hi Jochen,
> 
> Jochen Weiland schrieb:
>> Could someone please drop me a line on how I can access the value of a
>> Typoscript setting in the file class.t3lib_userauth.php?

User authentication is called before
a) the current page id is determined
b) TS is rendered

So there's no access to TypoScript in t3lib_userAuth or tslib_feUserAuth!

>>
>> For example, if I would like to know the setting of
>>
>> config.simulateStaticDocuments
>>
>> inside that file?
> 
> $GLOBALS['TSFE']->config contains the resulting TS "config" array ("config"
> and "page.config" merged).
> $GLOBALS['TSFE']->tmpl->setup contains the complete parsed TS setup.
> Both should be reachable in t3lib_userauth, too. But wouldn't it be better
> to use the autentication service?
> 
>> Thanks
>> Jochen
> 
> Regards,
> Thorsten

Sorry, I was to fast here...

Regards
Thorsten




More information about the TYPO3-dev mailing list