Development

Changeset 32794

You must first sign up to be able to contribute.

Changeset 32794

Show
Ignore:
Timestamp:
07/19/11 14:30:51 (2 years ago)
Author:
garak
Message:

[sfReCaptchaPlugin] updated api urls

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfReCaptchaPlugin/branches/1.3/README

    r30789 r32794  
    1010It comes with a custom validator as well as an example module which demonstrates the usage. 
    1111 
    12 For more information on reCAPTCHA visit [recaptcha.net](http://www.recaptcha.net). 
     12For more information on reCAPTCHA visit [reCAPTCHA site](http://www.google.com/recaptcha). 
    1313 
    1414Installation 
     
    2222In order to use the reCAPTCHA or Mailhide service, you first need to sign up and 
    2323get an API key. 
    24 You can do this [here](http://recaptcha.net/api/getkey?app=php) for reCAPTCHA and 
    25 [here](http://mailhide.recaptcha.net/apikey) for Mailhide. 
     24You can do this [here](http://www.google.com/recaptcha/whyrecaptcha) for reCAPTCHA and 
     25[here](http://www.google.com/recaptcha/mailhide/) for Mailhide. 
    2626 
    2727>**NOTE** If you're using a name-based virtual host like `http://jobeet`, the 
     
    167167 
    168168 
    169  
    170169Issue with iframe 
    171170----------------- 
  • plugins/sfReCaptchaPlugin/branches/1.3/lib/helper/recaptchaHelper.php

    r32471 r32794  
    3434 * The reCAPTCHA server URL's 
    3535 */ 
    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'); 
     36define('RECAPTCHA_API_SERVER', 'http://www.google.com/recaptcha/api'); 
     37define('RECAPTCHA_API_SECURE_SERVER', 'https://www.google.com/recaptcha/api'); 
     38define('RECAPTCHA_VERIFY_SERVER', 'www.google.com'); 
    3939 
    4040/** 
     
    110110  if ($pubkey == null || $pubkey == '') 
    111111  { 
    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>'); 
    113113  } 
    114114 
     
    183183  if ($privkey == null || $privkey == '') 
    184184  { 
    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>'); 
    186186  } 
    187187 
     
    288288  { 
    289289    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>'); 
    291291  } 
    292292 
     
    294294  $cryptmail = _recaptcha_aes_encrypt($email, $ky); 
    295295 
    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); 
    297297} 
    298298 
     
    312312    $arr[0] = substr($arr[0], 0, 1); 
    313313  } 
    314   else if (strlen($arr[0]) <= 6) 
     314  elseif (strlen($arr[0]) <= 6) 
    315315  { 
    316316    $arr[0] = substr($arr[0], 0, 3);