Advertisement
Guest User

r-a-y

a guest
May 7th, 2010
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement