gglcptch_recaptcha_mailhide_url

Gets the reCAPTCHA Mailhide url for a given email, public key and private key.

Description

gglcptch_recaptcha_mailhide_url( $pubkey, $privkey, $email ); 

Parameters (3)

0. $pubkey
The pubkey.
1. $privkey
The privkey.
2. $email
The email.

Usage

  1. if ( !function_exists( 'gglcptch_recaptcha_mailhide_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-captcha-recaptcha-by-bestwebsoft/lib/recaptchalib.php'; 
  3.  
  4. // The pubkey. 
  5. $pubkey = null; 
  6.  
  7. // The privkey. 
  8. $privkey = null; 
  9.  
  10. // The email. 
  11. $email = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = gglcptch_recaptcha_mailhide_url($pubkey, $privkey, $email); 
  15.  

Defined (1)

The function is defined in the following location(s).

/lib/recaptchalib.php  
  1. function gglcptch_recaptcha_mailhide_url($pubkey, $privkey, $email) { 
  2. if ($pubkey == '' || $pubkey == null || $privkey == "" || $privkey == null) { 
  3. die ("To use reCAPTCHA Mailhide, you have to sign up for a public and private key, " . 
  4. "you can do so at <a href='http://www.google.com/recaptcha/mailhide/apikey'>http://www.google.com/recaptcha/mailhide/apikey</a>"); 
  5.  
  6.  
  7. $ky = pack('H*', $privkey); 
  8. $cryptmail = gglcptch_recaptcha_aes_encrypt ($email, $ky); 
  9.  
  10. return "http://www.google.com/recaptcha/mailhide/d?k=" . $pubkey . "&c=" . gglcptch_recaptcha_mailhide_urlbase64 ($cryptmail);