<?php /** * @package WordPress * @subpackage Core-WP * @author shawnsandy */ /* Template Name: Loubon Orders */ require_once CWP_PATH . '/includes/recaptchalib.php'; $o_validate = null; $publickey = "6LcO8ccSAAAAAMCAW1sLco-sU7v8oGFrwFnEvsJE"; // you got this from the signup page $o_cpatcha = cwp::recaptcha($publickey); $privatekey = "6LcO8ccSAAAAAPphVbpBLOnL_kRlHhLXzoyx0mf5"; $o_validate = cwp::recaptcha_valid($privatekey); //if (isset($_POST["recaptcha_challenge_field"]) AND isset($_POST["recaptcha_response_field"])): // $resp = recaptcha_check_answer($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); // if (!$resp->is_valid) { // // What happens when the CAPTCHA was entered incorrectly // die("The reCAPTCHA wasn't entered correctly. Go back and try it again." . // "(reCAPTCHA said: " . $resp->error . ")"); // } else { // // return $o_validate = true; // } //endif; add_action('wp_footer', 'lo_header'); function lo_header() {