gglcptch_recaptcha_mailhide_html

Gets html to display an email address given a public an private key.

Description

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

to get a key, go to:

http://www.google.com/recaptcha/mailhide/apikey

Parameters (3)

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

Usage

  1. if ( !function_exists( 'gglcptch_recaptcha_mailhide_html' ) ) { 
  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_html($pubkey, $privkey, $email); 
  15.  

Defined (1)

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

/lib/recaptchalib.php  
  1. function gglcptch_recaptcha_mailhide_html($pubkey, $privkey, $email) { 
  2. $emailparts = gglcptch_recaptcha_mailhide_email_parts ($email); 
  3. $url = gglcptch_recaptcha_mailhide_url ($pubkey, $privkey, $email); 
  4.  
  5. return htmlentities($emailparts[0]) . "<a href='" . htmlentities ($url) . 
  6. "' onclick=\"window.open('" . htmlentities ($url) . "', '', 'toolbar=0, scrollbars=0, location=0, statusbar=0, menubar=0, resizable=0, width=500, height=300'); return false;\" title=\"Reveal this e-mail address\">...</a>@" . htmlentities ($emailparts [1]); 
  7.