Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2a3,24
- >
- > <?php
- > /*
- > * This is the Keypic class you must include
- > */
- > include_once('Keypic.php');
- >
- > $name= $_REQUEST['name'];
- > $email = $_REQUEST['email'];
- > $message = $_REQUEST['message'];
- > $Token = $_REQUEST['Token'];
- >
- > /*
- > * instead of xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx insert your FormID
- > * get your FormID here -> http://keypic.com/modules/forms/
- > * IMPORTANT FormID must be secret, don't share it
- > */
- >
- > Keypic::setFormID('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
- > $spamthreshold = 80;
- > //Keypic::setDebug(true);
- > ?>
- 34a57,71
- > $spam = Keypic::isSpam($Token, $email, $name, $message);
- > if(is_numeric($spam)) {
- > if($spam > $spamthreshold) {
- > $output = '<font color="red"> This message has ' . $spam . '% of spam probability</font><br />';
- > $contact_class = 'contact-error';
- > } else {
- > $notspam = TRUE;
- > $mailbody .= "Keypic spam probability: ".$spam."%\n\n";
- >
- > }
- > } else {
- > $output = '<font color="red"> There was an error: '. $spam .'</font><br />';
- > $contact_class = 'contact-error';
- > }
- > if($notspam) {
- 65a103
- > }
- 79a118,119
- > <input type="hidden" name="Token" value="<?php echo Keypic::getToken($Token, $email, $name, $message); ?>" /> <br />
- > <?php echo Keypic::getIt('getImage', '234x60'); ?> <br />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement