/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public function isSpam($values) { $akismet = new Akismet(url::base(), Kohana::config('comments.APIKey')); $akismet->setCommentAuthor($values['author']); $akismet->setCommentAuthorEmail($values['email']); $akismet->setCommentAuthorURL($values['url']); $akismet->setCommentContent($values['body']); return $akismet->isCommentSpam(); }
Comments
