', '' ), 'wp-members' ); ?>

captcha == 1 ) { $show_update_button = true; $private_key = ( isset( $wpmem_captcha['recaptcha'] ) ) ? $wpmem_captcha['recaptcha']['private'] : ''; $public_key = ( isset( $wpmem_captcha['recaptcha'] ) ) ? $wpmem_captcha['recaptcha']['public'] : ''; $captcha_theme = ( isset( $wpmem_captcha['recaptcha'] ) ) ? $wpmem_captcha['recaptcha']['theme'] : ''; ?> captcha == 3 ) { $show_update_button = true; $private_key = ( isset( $wpmem_captcha['recaptcha'] ) ) ? $wpmem_captcha['recaptcha']['private'] : ''; $public_key = ( isset( $wpmem_captcha['recaptcha'] ) ) ? $wpmem_captcha['recaptcha']['public'] : ''; ?> captcha == 2 ) { // Setup defaults. $defaults = array( 'characters' => 'ABCDEFGHJKLMNPQRSTUVWXYZ23456789', 'num_char' => '4', 'dim_w' => '72', 'dim_h' => '30', 'font_color' => '0,0,0', 'bg_color' => '255,255,255', 'font_size' => '12', 'kerning' => '14', 'img_type' => 'png', ); $args = ( isset( $wpmem_captcha['really_simple'] ) && is_array( $wpmem_captcha['really_simple'] ) ) ? $wpmem_captcha['really_simple'] : array(); $args = wp_parse_args( $args, $defaults ); // Explode colors. $font_color = explode( ',', $args['font_color'] ); $bg_color = explode( ',', $args['bg_color'] ); $show_update_button = true; if ( is_plugin_active( 'really-simple-captcha/really-simple-captcha.php' ) ) { ?> captcha ) { case 1: $captcha_type = 'recaptcha'; break; case 2: $captcha_type = 'really_simple'; break; case 3: $captcha_type = 'recaptcha2'; break; } ?>

', '' ); ?>.

", '' ); ?>.
:  
", '' ); ?>.
:  
R: G: B:
R: G: B:

', '' ), 'wp-members' ); ?>

 
trim( $_POST['wpmem_captcha_publickey'] ), 'private' => trim( $_POST['wpmem_captcha_privatekey'] ), ); if ( $update_type == 'recaptcha' && isset( $_POST['wpmem_captcha_theme'] ) ) { $new_settings['recaptcha']['theme'] = $_POST['wpmem_captcha_theme']; } } if ( $update_type == 'really_simple' ) { if ( array_key_exists( 'recaptcha', $settings ) ) { // Updating really_simple but need to maintain recaptcha. $new_settings['recaptcha'] = $settings['recaptcha']; } $font_color = $_POST['font_color_r'] . ',' . $_POST['font_color_g'] . ',' . $_POST['font_color_b']; $bg_color = $_POST['bg_color_r'] . ',' . $_POST['bg_color_g'] . ',' . $_POST['bg_color_b']; $new_settings['really_simple'] = array( 'characters' => $_POST['characters'], 'num_char' => $_POST['num_char'], 'dim_w' => $_POST['dim_w'], 'dim_h' => $_POST['dim_h'], 'font_color' => $font_color, 'bg_color' => $bg_color, 'font_size' => $_POST['font_size'], 'kerning' => $_POST['kerning'], 'img_type' => $_POST['img_type'], ); } update_option( 'wpmembers_captcha', $new_settings ); return __( 'CAPTCHA was updated for WP-Members', 'wp-members' ); } // End of file.