Changeset 32794
- Timestamp:
- 07/19/11 14:30:51 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfReCaptchaPlugin/branches/1.3/README
r30789 r32794 10 10 It comes with a custom validator as well as an example module which demonstrates the usage. 11 11 12 For more information on reCAPTCHA visit [re captcha.net](http://www.recaptcha.net).12 For more information on reCAPTCHA visit [reCAPTCHA site](http://www.google.com/recaptcha). 13 13 14 14 Installation … … 22 22 In order to use the reCAPTCHA or Mailhide service, you first need to sign up and 23 23 get an API key. 24 You can do this [here](http:// recaptcha.net/api/getkey?app=php) for reCAPTCHA and25 [here](http:// mailhide.recaptcha.net/apikey) for Mailhide.24 You can do this [here](http://www.google.com/recaptcha/whyrecaptcha) for reCAPTCHA and 25 [here](http://www.google.com/recaptcha/mailhide/) for Mailhide. 26 26 27 27 >**NOTE** If you're using a name-based virtual host like `http://jobeet`, the … … 167 167 168 168 169 170 169 Issue with iframe 171 170 ----------------- plugins/sfReCaptchaPlugin/branches/1.3/lib/helper/recaptchaHelper.php
r32471 r32794 34 34 * The reCAPTCHA server URL's 35 35 */ 36 define('RECAPTCHA_API_SERVER', 'http:// api.recaptcha.net');37 define('RECAPTCHA_API_SECURE_SERVER', 'https:// api-secure.recaptcha.net');38 define('RECAPTCHA_VERIFY_SERVER', ' api-verify.recaptcha.net');36 define('RECAPTCHA_API_SERVER', 'http://www.google.com/recaptcha/api'); 37 define('RECAPTCHA_API_SECURE_SERVER', 'https://www.google.com/recaptcha/api'); 38 define('RECAPTCHA_VERIFY_SERVER', 'www.google.com'); 39 39 40 40 /** … … 110 110 if ($pubkey == null || $pubkey == '') 111 111 { 112 throw new Exception('To use reCAPTCHA you must get an API key from <a href="http ://recaptcha.net/api/getkey">http://recaptcha.net/api/getkey</a>');112 throw new Exception('To use reCAPTCHA you must get an API key from <a href="https://www.google.com/recaptcha/admin/create">https://www.google.com/recaptcha/admin/create</a>'); 113 113 } 114 114 … … 183 183 if ($privkey == null || $privkey == '') 184 184 { 185 throw new Exception('To use reCAPTCHA you must get an API key from <a href="http ://recaptcha.net/api/getkey">http://recaptcha.net/api/getkey</a>');185 throw new Exception('To use reCAPTCHA you must get an API key from <a href="https://www.google.com/recaptcha/admin/create">https://www.google.com/recaptcha/admin/create</a>'); 186 186 } 187 187 … … 288 288 { 289 289 throw new Exception('To use reCAPTCHA Mailhide, you have to sign up for a public and private key, ' . 290 'you can do so at <a href="http:// mailhide.recaptcha.net/apikey">http://mailhide.recaptcha.net/apikey</a>');290 'you can do so at <a href="http://www.google.com/recaptcha/mailhide/apikey">http://www.google.com/recaptcha/mailhide/apikey</a>'); 291 291 } 292 292 … … 294 294 $cryptmail = _recaptcha_aes_encrypt($email, $ky); 295 295 296 return 'http:// mailhide.recaptcha.net/d?k=' . $pubkey . '&c=' . _recaptcha_mailhide_urlbase64($cryptmail);296 return 'http://www.google.com/recaptcha/mailhide/d?k=' . $pubkey . '&c=' . _recaptcha_mailhide_urlbase64($cryptmail); 297 297 } 298 298 … … 312 312 $arr[0] = substr($arr[0], 0, 1); 313 313 } 314 else if (strlen($arr[0]) <= 6)314 elseif (strlen($arr[0]) <= 6) 315 315 { 316 316 $arr[0] = substr($arr[0], 0, 3);