function recaptcha_mailhide_html in reCAPTCHA 5.2
Same name and namespace in other branches
- 8 recaptcha-php-1.11/recaptchalib.php \recaptcha_mailhide_html()
- 6 recaptcha-php-1.11/recaptchalib.php \recaptcha_mailhide_html()
- 7 recaptcha-php-1.11/recaptchalib.php \recaptcha_mailhide_html()
Gets html to display an email address given a public an private key. to get a key, go to:
http://www.google.com/recaptcha/mailhide/apikey
1 call to recaptcha_mailhide_html()
- _recaptcha_replace in ./
recaptcha_mailhide.module - Private reCAPTCHA function to replace an email regex match
1 string reference to 'recaptcha_mailhide_html'
- _recaptcha_library_not_found in ./
recaptcha.inc - Let the user know that the reCAPTCHA PHP library is not installed
File
- recaptcha/
recaptchalib.php, line 267
Code
function recaptcha_mailhide_html($pubkey, $privkey, $email) {
$emailparts = _recaptcha_mailhide_email_parts($email);
$url = recaptcha_mailhide_url($pubkey, $privkey, $email);
return htmlentities($emailparts[0]) . "<a href='" . htmlentities($url) . "' 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]);
}