Posted By

joelambert on 05/26/09


Tagged

php spam kohana askimet


Versions (?)

Kohana helper method for Askimet


 / Published in: PHP
 

  1. public function isSpam($values)
  2. {
  3. $akismet = new Akismet(url::base(), Kohana::config('comments.APIKey'));
  4. $akismet->setCommentAuthor($values['author']);
  5. $akismet->setCommentAuthorEmail($values['email']);
  6. $akismet->setCommentAuthorURL($values['url']);
  7. $akismet->setCommentContent($values['body']);
  8.  
  9. return $akismet->isCommentSpam();
  10. }

Report this snippet  

You need to login to post a comment.