[TYPO3-dev] Reading ts-setup in php

Dmitry Dulepov dmitry at typo3.org
Mon Jun 25 15:02:27 CEST 2007


Hi!

Stefan Kreisberg wrote:
> Tonni Aagesen wrote:
>> Secondly, is the any way to determine the current sys_domain used by
>> typo3 - or is it just a matter of reading from $_SERVER superglobal.
> 
> Isn't it in t3lib_div::getIndpEnv ?
> 
> (not shure, but might be worth a look :))

Yes and this is the right way. Use of $_SERVER is discouraged by TYPO3 
coding guidelines :)

-- 
Dmitry Dulepov
TYPO3 freelancer / TYPO3 core team member
Web: http://typo3bloke.net/
Skype: callto:liels_bugs




More information about the TYPO3-dev mailing list