Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

r-a-y

By: a guest on May 7th, 2010  |  syntax: PHP  |  size: 0.80 KB  |  hits: 104  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function display_recaptcha_bp($errors) {
  2.         global $recaptcha_opt, $wpmu, $bp;
  3.  
  4.         if ($recaptcha_opt['re_registration']) {
  5.                
  6.                 $format = <<<END
  7.                 <script type='text/javascript'>
  8.                 var RecaptchaOptions = { theme : '{$recaptcha_opt['re_theme_reg']}', lang : '{$recaptcha_opt['re_lang']}' , tabindex : 30 };
  9.                 </script>
  10. END;
  11.  
  12.                 $comment_string = <<<COMMENT_FORM
  13.                 <script type='text/javascript'>  
  14.                 document.getElementById('recaptcha_table').style.direction = 'ltr';
  15.                 </script>
  16. COMMENT_FORM;
  17.  
  18.                 if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on")
  19.                 $use_ssl = true;
  20.                 else
  21.                 $use_ssl = false;
  22.  
  23.                 ?>
  24.                 <label for="verification">Verification:</label>
  25.                 <?php do_action( 'bp_captcha_errors' ); ?>
  26.                 <?php echo $format . recaptcha_wp_get_html($_GET['rerror'], $use_ssl); ?>
  27.         <?php
  28.         }
  29. }