[TYPO3-dev] Searching for a hook
Martin Kutschker
masi-no at spam-typo3.org
Sun Jan 18 22:19:34 CET 2009
Ronald Steiner schrieb:
> Hi Martin,
>
> thanks for your help. What is the name of the hook you mention, that
> resolves the page id?
> Is the TypoScript array already generated at this point?
>
> Now I'm found this hook:
> $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['tslib_fe-PostProc'][]
> = ...
> and it works fine, for a start. Unfortunately the TS-Array isn't
> generated there. So I can't get the configuration by using:
> $GLOBALS['TSFE']->tmpl->setup['config.']
>
I was thinking about these two:
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc']
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['determineId-PostProc']
You would abuse them, but who cares if it works for you :)
> The purpose is to generate a spam protection by checking the POST / GET
> variables. I'm aware that there are a lot of spam protection extensions
> already around. But I got some special ideas that I want to test.
What do you want to protect? You own forms or the standard TYPO3 forms?
How about this one?
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['sendFormmail-PreProcClass']
Maybe you can manipulate the $EMAIL_VARS (what a name!), so that any
spam goes to /dev/null.
Masi
More information about the TYPO3-dev
mailing list