original_string: public function verify($responsestr) {
          global $CFG;
          require_once($CFG->libdir . '/recaptchalib_v2.php');
  
          $response = recaptcha_check_response(RECAPTCHA_VERIFY_URL, $CFG->recaptchaprivatekey,
                                             getremoteaddr(), $responsestr);
          if (!$response['isvalid']) {
              $attributes = $this->getAttributes();
              $attributes['error_message'] = $response['error'];
              $this->setAttributes($attributes);
              return $response['error'];
          }
          return true;
      }
code: public function verify($responsestr) {
          global $CFG;
          require_once($CFG->libdir . '/recaptchalib_v2.php');
  
          $response = recaptcha_check_response(RECAPTCHA_VERIFY_URL, $CFG->recaptchaprivatekey,
                                             getremoteaddr(), $responsestr);
          if (!$response['isvalid']) {
              $attributes = $this->getAttributes();
              $attributes['error_message'] = $response['error'];
              $this->setAttributes($attributes);
              return $response['error'];
          }
          return true;
      }
code_tokens: public function verify ( $ responsestr ) { global $ CFG ; require_once ( $ CFG -> libdir . '/recaptchalib_v2.php' ) ; $ response = recaptcha_check_response ( RECAPTCHA_VERIFY_URL , $ CFG -> recaptchaprivatekey , getremoteaddr ( ) , $ responsestr ) ; if ( ! $ response [ 'isvalid' ] ) { $ attributes = $ this -> getAttributes ( ) ; $ attributes [ 'error_message' ] = $ response [ 'error' ] ; $ this -> setAttributes ( $ attributes ) ; return $ response [ 'error' ] ; } return true ; }
docstring: Checks recaptcha response with Google.
  
  @param string $responsestr
  @return bool
docstring_tokens: Checks recaptcha response with Google .