[TYPO3-dev] accessing values from admin-panel from within extension
Martin Kutschker
masi-no at spam-typo3.org
Sun Oct 5 10:35:10 CEST 2008
bernd wilke schrieb:
> How can I access values set in admin-panel?
>
> I want to simulate time by admin-panel and access it in my extension.
> As long as I use time() I only get the current time of the server than
> the time set in admin-panel.
>
> should I use another function?
> or is the value stored in any variable?
// "exact" time
$GLOBALS['SIM_EXEC_TIME'] = $GLOBALS['EXEC_TIME'];
// time rounded to minutes (for access permissions)
$GLOBALS['SIM_ACCESS_TIME'] = $GLOBALS['ACCESS_TIME'];
Masi
More information about the TYPO3-dev
mailing list