Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
recaptchalib_v2.php File Reference

Functions

 recaptcha_check_response ($verifyurl, $privkey, $remoteip, $response)
 Calls an HTTP POST function to verify if the user's response was correct.
 
 recaptcha_get_challenge_html ($apiurl, $pubkey, $lang=null, bool $compactmode=false)
 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.
 
 recaptcha_lang ($lang=null)
 Returns the language code the reCAPTCHA element should use.
 

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'