function RegForm() { $regplus = get_option('register_plus'); $regplus_custom = get_option('register_plus_custom'); if (!is_array($regplus_custom)) { $regplus_custom = array(); } if ($regplus['firstname']) { if (isset($_GET['firstname'])) { $_POST['firstname'] = $_GET['firstname']; } ?> <p><label><?php _e('First Name:', 'regplus'); ?> <br /> <input autocomplete="off" name="firstname" id="firstname" size="25" value="<?php echo $_POST['firstname']; ?> " type="text" tabindex="30" /></label><br /> </p> <?php } if ($regplus['lastname']) { if (isset($_GET['lastname'])) { $_POST['lastname'] = $_GET['lastname']; } ?> <p><label><?php _e('Last Name:', 'regplus'); ?> <br /> <input autocomplete="off" name="lastname" id="lastname" size="25" value="<?php echo $_POST['lastname']; ?> " type="text" tabindex="31" /></label><br /> </p> <?php } if ($regplus['website']) { if (isset($_GET['website'])) { $_POST['website'] = $_GET['website']; } ?> <p><label><?php _e('Website:', 'regplus'); ?> <br /> <input autocomplete="off" name="website" id="website" size="25" value="<?php echo $_POST['website']; ?> " type="text" tabindex="32" /></label><br /> </p> <?php } if ($regplus['aim']) { if (isset($_GET['aim'])) { $_POST['aim'] = $_GET['aim']; } ?> <p><label><?php _e('AIM:', 'regplus'); ?> <br /> <input autocomplete="off" name="aim" id="aim" size="25" value="<?php echo $_POST['aim']; ?> " type="text" tabindex="32" /></label><br /> </p> <?php } if ($regplus['yahoo']) { if (isset($_GET['yahoo'])) { $_POST['yahoo'] = $_GET['yahoo']; } ?> <p><label><?php _e('Yahoo IM:', 'regplus'); ?> <br /> <input autocomplete="off" name="yahoo" id="yahoo" size="25" value="<?php echo $_POST['yahoo']; ?> " type="text" tabindex="33" /></label><br /> </p> <?php } if ($regplus['jabber']) { if (isset($_GET['jabber'])) { $_POST['jabber'] = $_GET['jabber']; } ?> <p><label><?php _e('Jabber / Google Talk:', 'regplus'); ?> <br /> <input autocomplete="off" name="jabber" id="jabber" size="25" value="<?php echo $_POST['jabber']; ?> " type="text" tabindex="34" /></label><br /> </p> <?php } if ($regplus['about']) { if (isset($_GET['about'])) { $_POST['about'] = $_GET['about']; } ?> <p><label><?php _e('About Yourself:', 'regplus'); ?> <br /> <textarea autocomplete="off" name="about" id="about" cols="25" rows="5" tabindex="35"><?php echo stripslashes($_POST['about']); ?> </textarea></label><br /> <small><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.', 'regplus'); ?> </small> </p> <?php } foreach ($regplus_custom as $k => $v) { if ($v['reg']) { $id = $this->Label_ID($v['label']); if (isset($_GET[$id])) { $_POST[$id] = $_GET[$id]; } ?> <?php if ($v['fieldtype'] == 'text') { ?> <p><label><?php echo $v['label']; ?> : <br /> <input autocomplete="off" class="custom_field" tabindex="36" name="<?php echo $id; ?> " id="<?php echo $id; ?> " size="25" value="<?php echo $_POST[$id]; ?> " type="text" /></label><br /></p> <?php } else { if ($v['fieldtype'] == 'date') { ?> <p><label><?php echo $v['label']; ?> : <br /> <input autocomplete="off" class="custom_field date-pick" tabindex="36" name="<?php echo $id; ?> " id="<?php echo $id; ?> " size="25" value="<?php echo $_POST[$id]; ?> " type="text" /></label><br /></p> <?php } else { if ($v['fieldtype'] == 'select') { $ops = explode(',', $v['extraoptions']); $options = ''; foreach ($ops as $op) { $options .= '<option value="' . $op . '" '; if ($_POST[$id] == $op) { $options .= 'selected="selected"'; } $options .= '>' . $op . '</option>'; } ?> <p><label><?php echo $v['label']; ?> : <br /> <select class="custom_select" tabindex="36" name="<?php echo $id; ?> " id="<?php echo $id; ?> "> <?php echo $options; ?> </select></label><br /></p> <?php } else { if ($v['fieldtype'] == 'checkbox') { $ops = explode(',', $v['extraoptions']); $check = ''; foreach ($ops as $op) { $check .= '<label><input type="checkbox" class="custom_checkbox" tabindex="36" name="' . $id . '[]" id="' . $id . '" '; //if( in_array($op, $_POST[$id]) ) $check .= 'checked="checked" '; $check .= 'value="' . $op . '" /> ' . $op . '</label> '; } ?> <p><label><?php echo $v['label']; ?> :</label> <br /><?php echo $check . '<br /></p>'; } else { if ($v['fieldtype'] == 'radio') { $ops = explode(',', $v['extraoptions']); $radio = ''; foreach ($ops as $op) { $radio .= '<label><input type="radio" class="custom_radio" tabindex="36" name="' . $id . '" id="' . $id . '" '; //if( in_array($op, $_POST[$id]) ) $radio .= 'checked="checked" '; $radio .= 'value="' . $op . '" /> ' . $op . '</label> '; } ?> <p><label><?php echo $v['label']; ?> :</label> <br /><?php echo $radio . '<br /></p>'; } else { if ($v['fieldtype'] == 'textarea') { ?> <p><label><?php echo $v['label']; ?> : <br /> <textarea tabindex="36" name="<?php echo $id; ?> " cols="25" rows="5" id="<?php echo $id; ?> " class="custom_textarea"><?php echo $_POST[$id]; ?> </textarea></label><br /></p> <?php } else { if ($v['fieldtype'] == 'hidden') { ?> <input class="custom_field" tabindex="36" name="<?php echo $id; ?> " value="<?php echo $_POST[$id]; ?> " type="hidden" /> <?php } } } } } } } ?> <?php } } if ($regplus['password']) { ?> <p><label><?php _e('Password:'******'regplus'); ?> <br /> <input autocomplete="off" name="pass1" id="pass1" size="25" value="<?php echo $_POST['pass1']; ?> " type="password" tabindex="40" /></label><br /> <label><?php _e('Confirm Password:'******'regplus'); ?> <br /> <input autocomplete="off" name="pass2" id="pass2" size="25" value="<?php echo $_POST['pass2']; ?> " type="password" tabindex="41" /></label> <?php if ($regplus['password_meter']) { ?> <br /> <span id="pass-strength-result"><?php echo $regplus['short']; ?> </span> <small><?php _e('Hint: Use upper and lower case characters, numbers and symbols like !"?$%^&( in your password.', 'regplus'); ?> </small><?php } ?> </p> <?php } if ($regplus['code']) { if (isset($_GET['regcode'])) { $_POST['regcode'] = $_GET['regcode']; } ?> <p><label><?php _e('Invitation Code:', 'regplus'); ?> <br /> <input name="regcode" id="regcode" size="25" value="<?php echo $_POST['regcode']; ?> " type="text" tabindex="45" /></label><br /> <?php if ($regplus['code_req']) { ?> <small><?php _e('This website is currently closed to public registrations. You will need an invitation code to register.', 'regplus'); ?> </small> <?php } else { ?> <small><?php _e('Have an invitation code? Enter it here. (This is not required)', 'regplus'); ?> </small> <?php } ?> </p> <?php } if ($regplus['disclaimer']) { ?> <p><label><?php echo stripslashes($regplus['disclaimer_title']); ?> <br /> <span id="disclaimer"><?php echo stripslashes($regplus['disclaimer_content']); ?> </span> <input name="disclaimer" value="1" type="checkbox" tabindex="50"<?php if ($_POST['disclaimer']) { echo ' checked="checked"'; } ?> /> <?php echo $regplus['disclaimer_agree']; ?> </label></p> <?php } if ($regplus['license']) { ?> <p><label><?php echo stripslashes($regplus['license_title']); ?> <br /> <span id="license"><?php echo stripslashes($regplus['license_content']); ?> </span> <input name="license" value="1" type="checkbox" tabindex="50"<?php if ($_POST['license']) { echo ' checked="checked"'; } ?> /> <?php echo $regplus['license_agree']; ?> </label></p> <?php } if ($regplus['privacy']) { ?> <p><label><?php echo stripslashes($regplus['privacy_title']); ?> <br /> <span id="privacy"><?php echo stripslashes($regplus['privacy_content']); ?> </span> <input name="privacy" value="1" type="checkbox" tabindex="50"<?php if ($_POST['privacy']) { echo ' checked="checked"'; } ?> /> <?php echo $regplus['privacy_agree']; ?> </label></p> <?php } if ($regplus['captcha'] == 1) { $plugin_url = trailingslashit(get_option('siteurl')) . 'wp-content/plugins/' . basename(dirname(__FILE__)) . '/'; $_SESSION['OK'] = 1; if (!isset($_SESSION['OK'])) { session_start(); } ?> <p><label><?php _e('Validation Image:', 'regplus'); ?> <br /> <img src="<?php echo $plugin_url; ?> captcha.php" id="captchaimg" alt="" /> <input type="text" name="captcha" id="captcha" size="25" value="" tabindex="55" /></label><br /> <small><?php _e('Enter the text from the image.', 'regplus'); ?> </small> </p> <?php //} } else { if ($regplus['captcha'] == 2 && $regplus['reCAP_public_key'] && $regplus['reCAP_private_key']) { require_once 'recaptchalib.php'; $publickey = $regplus['reCAP_public_key']; echo '<div id="reCAPTCHA">'; echo rp_recaptcha_get_html($publickey); echo '</div> <br />'; } } }
?> <br /> <textarea name="reason" style="width: 100%" rows="5" tabindex="20"><?php echo htmlentities($reason); ?> </textarea></label> </p> <?php $recaptcha = get_site_option('ust_recaptcha'); if ($recaptcha['privkey']) { require_once WP_PLUGIN_DIR . '/anti-splog/includes/recaptchalib.php'; echo "<script type='text/javascript'>var RecaptchaOptions = { theme : 'white', lang : '{$recaptcha['lang']}' , tabindex : 30 };</script>"; echo '<p><label>' . __('Human Verification:', 'ust') . '</label></p>'; echo $error2; echo '<div id="reCAPTCHA">'; echo rp_recaptcha_get_html($recaptcha['pubkey']); echo '</div> <br />'; } ?> <br class="clear" /> <p class="submit"> <input type="submit" name="spam-submit" id="wp-submit" value="<?php _e('Submit', 'ust'); ?> " tabindex="100" /> </p> <?php } else { ?> <p><?php _e('The admin has already been contacted to review.', 'ust');
function ust_signup_fields_bp() { $ust_settings = get_site_option("ust_settings"); if ($ust_settings['signup_protect'] == 'recaptcha') { $recaptcha = get_site_option('ust_recaptcha'); require_once 'includes/recaptchalib.php'; echo '<div class="register-section" id="blog-details-section">'; echo "<script type='text/javascript'>var RecaptchaOptions = { theme : '{$recaptcha['theme']}', lang : '{$recaptcha['lang']}' , tabindex : 30 };</script>"; echo '<label>' . __('Human Verification:', 'ust') . '</label>'; do_action('bp_recaptcha_errors'); echo '<div id="reCAPTCHA">'; echo rp_recaptcha_get_html($recaptcha['pubkey']); echo '</div></div>'; } else { if ($ust_settings['signup_protect'] == 'asirra') { echo '<div class="register-section" id="blog-details-section">'; echo '<label>' . __('Human Verification:', 'ust') . '</label>'; do_action('bp_asirra_errors'); echo '<div id="asirraError"></div>'; echo '<script type="text/javascript" src="http://challenge.asirra.com/js/AsirraClientSide.js"></script>'; echo '<script type="text/javascript"> asirraState.SetEnlargedPosition("right"); asirraState.SetCellsPerRow(4); formElt = document.getElementById("signup_form"); formElt.onsubmit = function() { return MySubmitForm(); }; var passThroughFormSubmit = false; function MySubmitForm() { if (passThroughFormSubmit) { return true; } Asirra_CheckIfHuman(HumanCheckComplete); return false; } function HumanCheckComplete(isHuman) { if (!isHuman) { asirraError = document.getElementById("asirraError"); asirraError.innerHTML = \'<div class="error">' . __('Please try to correctly identify the cats again.', 'ust') . '</div>\'; return false; } else { passThroughFormSubmit = true; formElt.submit(); return true; } } </script>'; echo '</div>'; echo '<input type="hidden" name="signup_submit" value="1" />'; } else { if ($ust_settings['signup_protect'] == 'questions') { $ust_qa = get_site_option("ust_qa"); if (is_array($ust_qa) && count($ust_qa)) { $qkey = rand(0, count($ust_qa) - 1); //encrypt the answer field name to make it harder for sploggers to guess. Changes every hour & different for every site. $salt = get_site_option("ust_salt"); $datesalt = strtotime(date('Y-m-d H:00:00')); $field_name = 'qa_' . md5($qkey . $salt . $datesalt); echo '<div class="register-section" id="antisplog">'; echo '<label>' . __('Human Verification:', 'ust') . '</label>'; do_action('bp_qa_errors'); echo stripslashes($ust_qa[$qkey][0]); echo '<br /><input type="text" id="qa" name="' . $field_name . '" value="' . htmlentities($_POST[$field_name]) . '" />'; echo '<br /><small>' . __('NOTE: Answers are not case sensitive.', 'ust') . '</small>'; echo '</div>'; } } else { if ($ust_settings['signup_protect'] == 'ayah') { $ust_ayah = get_site_option("ust_ayah"); require_once "includes/ayah.php"; $integration = new AYAH(array("publisher_key" => @$ust_ayah['pubkey'], "scoring_key" => @$ust_ayah['privkey'])); echo '<div class="register-section" id="blog-details-section">'; do_action('bp_ayah_errors'); echo $integration->getPublisherHTML(); echo '</div>'; } } } } }