[TYPO3-dev] Spamfilter-Service

Dmitry Dulepov [typo3] dmitry at typo3.org
Wed Jul 16 10:17:27 CEST 2008


Hi!

Peter Guhl wrote:
> Well, I gave it a try and inserted the following lines below line 219 of 
> class.tx_spamdetection_service.php:
> 
>          // First test: Send a http-Request to the spfgblib-API
>        
> $spfgblib=http_post_fields('http://www.chabis.ch/helpers/api/index.php',array('sent'=>'spamform','userid'=>'tester','test'=>'TEST','text'=>$text)); 
> 
>        $spfgbscore=substr($spfgblib,strstr($spfgblib,'SCORE: ')+7,9);
>        $percents[]=$spfgbscore * 100;

This can be costly... :( HTTP request may take lots of time.

-- 
Dmitry Dulepov
TYPO3 Core team
More about TYPO3: http://typo3bloke.net/
Subscribe: http://typo3bloke.net/rss.xml
Latest article: http://typo3bloke.net/post-details/how_to_fill_realurl_cache/




More information about the TYPO3-dev mailing list