Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Functions | Variables
recaptchalib_v2.php File Reference

This is a PHP library that handles calling reCAPTCHA v2. More...

Functions

 recaptcha_check_response ($verifyurl, $privkey, $remoteip, $response)
 Calls an HTTP POST function to verify if the user's response was correct. More...
 
 recaptcha_get_challenge_html ($apiurl, $pubkey, $lang=null)
 Gets the challenge HTML This is called from the browser, and the resulting reCAPTCHA HTML widget is embedded within the HTML form it was called from. More...
 
 recaptcha_lang ($lang=null)
 Returns the language code the reCAPTCHA element should use. More...
 

Variables

const RECAPTCHA_API_URL 'https://www.recaptcha.net/recaptcha/api.js'
 The reCAPTCHA URL's.
 
const RECAPTCHA_VERIFY_URL 'https://www.recaptcha.net/recaptcha/api/siteverify'
 

Detailed Description

This is a PHP library that handles calling reCAPTCHA v2.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later