[TYPO3-dev] Spamfilter-Service

Peter Guhl peter.guhl at win-lux.ch
Tue Jul 15 11:59:20 CEST 2008


Hi Daniel

Daniel Pšötzinger schrieb:
> The extension "spamdetection" was planed for this,
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;

Well.. now I have to find out how I can test it ;-)

Regards
    Peter




More information about the TYPO3-dev mailing list