require_once ('classes/Akismet.class.php'); class MySpamProtection { // variables var $sMyAkismetKey; var $sWebsiteUrl; var $sAuthName; var $sAuthEml; var $sAuthUrl; var $oAkismet; // constructor public function MySpamProtection() { // set necessary values for variables $this->
'; print_r($_POST); echo ''; // obtain sent info $sPostAuthor = $_POST['author']; $sCommentComment = $_POST['comment']; // check for spam $oMySpamProtection = new MySpamProtection(); $sAuthorCheck = ($oMySpamProtection->isSpam($sPostAuthor)) ? ' "Author" marked as Spam' : '"Author" not marked as Spam'; $sCommentCheck = ($oMySpamProtection->isSpam($sCommentComment)) ? ' "Comment" marked as Spam' : '"Comment" not marked as Spam'; echo $sAuthorCheck . '