Settings | Donate Author: Mike Challis http://www.642weather.com/weather/scripts.php */ if (isset($_POST['submit'])) { if ( function_exists('current_user_can') && !current_user_can('manage_options') ) die(__('You do not have permissions for managing this option', 'si-captcha')); check_admin_referer( 'si-captcha-options_update'); // nonce // post changes to the options array $optionarray_update = array( 'si_captcha_captcha_difficulty' => (trim($_POST['si_captcha_captcha_difficulty']) != '' ) ? trim($_POST['si_captcha_captcha_difficulty']) : $si_captcha_option_defaults['si_captcha_captcha_difficulty'], // use default if empty 'si_captcha_donated' => (isset( $_POST['si_captcha_donated'] ) ) ? 'true' : 'false',// true or false 'si_captcha_perm' => (isset( $_POST['si_captcha_perm'] ) ) ? 'true' : 'false', 'si_captcha_perm_level' => (trim($_POST['si_captcha_perm_level']) != '' ) ? trim($_POST['si_captcha_perm_level']) : $si_captcha_option_defaults['si_captcha_perm_level'], // use default if empty 'si_captcha_comment' => (isset( $_POST['si_captcha_comment'] ) ) ? 'true' : 'false', 'si_captcha_comment_label_position' => (trim($_POST['si_captcha_comment_label_position']) != '' ) ? trim($_POST['si_captcha_comment_label_position']) : $si_captcha_option_defaults['si_captcha_comment_label_position'], // use default if empty 'si_captcha_login' => (isset( $_POST['si_captcha_login'] ) ) ? 'true' : 'false', 'si_captcha_register' => (isset( $_POST['si_captcha_register'] ) ) ? 'true' : 'false', 'si_captcha_lostpwd' => (isset( $_POST['si_captcha_lostpwd'] ) ) ? 'true' : 'false', 'si_captcha_rearrange' => (isset( $_POST['si_captcha_rearrange'] ) ) ? 'true' : 'false', 'si_captcha_disable_session' => (isset( $_POST['si_captcha_disable_session'] ) ) ? 'true' : 'false', 'si_captcha_captcha_small' => (isset( $_POST['si_captcha_captcha_small'] ) ) ? 'true' : 'false', 'si_captcha_no_trans' => (isset( $_POST['si_captcha_no_trans'] ) ) ? 'true' : 'false', 'si_captcha_aria_required' => (isset( $_POST['si_captcha_aria_required'] ) ) ? 'true' : 'false', 'si_captcha_external_style' => trim( $_POST['si_captcha_external_style'] ), 'si_captcha_comment_label_style' => (trim($_POST['si_captcha_comment_label_style']) != '' ) ? trim($_POST['si_captcha_comment_label_style']) : $si_captcha_option_defaults['si_captcha_comment_label_style'], // use default if empty 'si_captcha_comment_field_style' => (trim($_POST['si_captcha_comment_field_style']) != '' ) ? trim($_POST['si_captcha_comment_field_style']) : $si_captcha_option_defaults['si_captcha_comment_field_style'], // use default if empty 'si_captcha_captcha_div_style' => (trim($_POST['si_captcha_captcha_div_style']) != '' ) ? trim($_POST['si_captcha_captcha_div_style']) : $si_captcha_option_defaults['si_captcha_captcha_div_style'], // use default if empty 'si_captcha_captcha_div_style_sm' => (trim($_POST['si_captcha_captcha_div_style_sm']) != '' ) ? trim($_POST['si_captcha_captcha_div_style_sm']) : $si_captcha_option_defaults['si_captcha_captcha_div_style_sm'], // use default if empty 'si_captcha_captcha_div_style_m' => (trim($_POST['si_captcha_captcha_div_style_m']) != '' ) ? trim($_POST['si_captcha_captcha_div_style_m']) : $si_captcha_option_defaults['si_captcha_captcha_div_style_m'], // use default if empty 'si_captcha_captcha_input_div_style' => (trim($_POST['si_captcha_captcha_input_div_style']) != '' ) ? trim($_POST['si_captcha_captcha_input_div_style']) : $si_captcha_option_defaults['si_captcha_captcha_input_div_style'], // use default if empty 'si_captcha_captcha_image_style' => (trim($_POST['si_captcha_captcha_image_style']) != '' ) ? trim($_POST['si_captcha_captcha_image_style']) : $si_captcha_option_defaults['si_captcha_captcha_image_style'], 'si_captcha_refresh_image_style' => (trim($_POST['si_captcha_refresh_image_style']) != '' ) ? trim($_POST['si_captcha_refresh_image_style']) : $si_captcha_option_defaults['si_captcha_refresh_image_style'], 'si_captcha_required_indicator' => $_POST['si_captcha_required_indicator'], 'si_captcha_label_captcha' => trim($_POST['si_captcha_label_captcha']), 'si_captcha_tooltip_captcha' => trim($_POST['si_captcha_tooltip_captcha']), 'si_captcha_tooltip_refresh' => trim($_POST['si_captcha_tooltip_refresh']), ); // deal with quotes foreach($optionarray_update as $key => $val) { $optionarray_update[$key] = str_replace('"','"',$val); } if (isset($_POST['si_captcha_reset_styles'])) { // reset styles feature $style_resets_arr= array('si_captcha_comment_label_style','si_captcha_comment_field_style','si_captcha_captcha_div_style','si_captcha_captcha_div_style_sm','si_captcha_captcha_div_style_m','si_captcha_captcha_input_div_style','si_captcha_captcha_image_style','si_captcha_refresh_image_style'); foreach($style_resets_arr as $style_reset) { $optionarray_update[$style_reset] = $si_captcha_option_defaults[$style_reset]; } } // save updated options to the database if ($wpmu == 1) update_site_option('si_captcha', $optionarray_update); else update_option('si_captcha', $optionarray_update); // get the options from the database if ($wpmu == 1) $si_captcha_opt = get_site_option('si_captcha'); else $si_captcha_opt = get_option('si_captcha'); // strip slashes on get options array foreach($si_captcha_opt as $key => $val) { $si_captcha_opt[$key] = $this->si_stripslashes($val); } if (function_exists('wp_cache_flush')) { wp_cache_flush(); } } // end if (isset($_POST['submit'])) ?>

stripslashes( 'si-captcha-for-wordpress' ) )); if ( !is_wp_error($api) ) { // cache isn't up to date, write this fresh information to it now to avoid the query for xx time. $myexpire = 60 * 15; // Cache data for 15 minutes set_transient('si_captcha_info', $api, $myexpire); } } if ( !is_wp_error($api) ) { $plugins_allowedtags = array('a' => array('href' => array(), 'title' => array(), 'target' => array()), 'abbr' => array('title' => array()), 'acronym' => array('title' => array()), 'code' => array(), 'pre' => array(), 'em' => array(), 'strong' => array(), 'div' => array(), 'p' => array(), 'ul' => array(), 'ol' => array(), 'li' => array(), 'h1' => array(), 'h2' => array(), 'h3' => array(), 'h4' => array(), 'h5' => array(), 'h6' => array(), 'img' => array('src' => array(), 'class' => array(), 'alt' => array())); //Sanitize HTML foreach ( (array)$api->sections as $section_name => $content ) $api->sections[$section_name] = wp_kses($content, $plugins_allowedtags); foreach ( array('version', 'author', 'requires', 'tested', 'homepage', 'downloaded', 'slug') as $key ) $api->$key = wp_kses($api->$key, $plugins_allowedtags); if ( ! empty($api->downloaded) ) { echo sprintf(__('Downloaded %s times', 'si-captcha'),number_format_i18n($api->downloaded)); echo '.'; } ?> rating) ) : ?>
<?php _e('5 stars', 'si-captcha') ?>
<?php _e('4 stars', 'si-captcha') ?>
<?php _e('3 stars', 'si-captcha') ?>
<?php _e('2 stars', 'si-captcha') ?>
<?php _e('1 star', 'si-captcha') ?>
num_ratings)); ?>
version)) { if ( version_compare($api->version, $si_captcha_version, '>') ) { $si_captcha_update = ', '.sprintf(__('a newer version is available: %s', 'si-captcha'),$api->version).''; echo '
'; echo ''.sprintf(__('A newer version of SI Captcha Anti-Spam is available: %s', 'si-captcha'),$api->version).''; echo "
\n"; }else{ $si_captcha_update = ' '. __('(latest version)', 'si-captcha'); } } ?>

| | | | | | | Mike Challis

'; _e('If you find this plugin useful to you, please consider making a small donation to help contribute to my time invested and to further development. Thanks for your kind support!', 'si-captcha') ?> -

ThemeFuse, they make some amazing original WP themes that have a cool 1 click auto install feature and excellent after care support services. Check out some of their themes!', 'si-captcha'), 'https://www.e-junkie.com/ecom/gb.php?cl=136641&c=ib&aff=148937'); ?>
<?php echo esc_attr(__('ThemeFuse', 'si-captcha')); ?>

/>

<?php do_action('comment_form', $post->ID); ?>

" target="_new">

/>
/>
/>
/>
/> si_captcha_perm_dropdown('si_captcha_perm_level', $si_captcha_opt['si_captcha_perm_level']); ?>

/>
/>
/>
OK - Writable ' . substr(sprintf('%o', fileperms($check_this_dir)), -4); } else if(!file_exists($check_this_dir)) { echo ''; echo __('There is a problem with the directory', 'si-captcha'); echo ' /wp-content/plugins/si-captcha-for-wordpress/captcha/temp/. '; echo __('The directory is not found, a permissions problem may have prevented this directory from being created.', 'si-captcha'); echo ' '; echo __('Fixing the actual problem is recommended, but you can uncheck this setting on the contact form options page: "Use CAPTCHA without PHP session" and the captcha will work this way just fine (as long as PHP sessions are working).', 'si-captcha'); echo '
'; } else { echo ''; echo __('There is a problem with the directory', 'si-captcha') .' /wp-content/plugins/si-captcha-for-wordpress/captcha/temp/. '; echo __('The directory Unwritable (fix permissions)', 'si-captcha').'. '; echo __('Permissions are: ', 'si-captcha'); echo ' '; echo substr(sprintf('%o', fileperms($check_this_dir)), -4); echo ' '; echo __('Fixing this may require assigning 0755 permissions or higher (e.g. 0777 on some hosts. Try 0755 first, because 0777 is sometimes too much and will not work.)', 'si-captcha'); echo ' '; echo __('Fixing the actual problem is recommended, but you can uncheck this setting on the SI CAPTCHA options page: "Use CAPTCHA without PHP session" and the captcha will work this way just fine (as long as PHP sessions are working).', 'si-captcha'); echo '
'; } } ?> />
/>

'. __('Akismet is installed.', 'si-captcha'). ''; } ?> '; $key_status = 'failed'; $key = get_option('wordpress_api_key'); if ( empty( $key ) ) { $key_status = 'empty'; } else { $key_status = akismet_verify_key( $key ); } if ( $key_status == 'valid' ) { echo ''. __('Akismet is installed and the key is valid. Comment posts will be checked with Akismet to help prevent spam.', 'si-captcha'). ''; } else if ( $key_status == 'invalid' ) { echo ''. __('Akismet plugin is installed but key needs to be activated.', 'si-captcha'). ''; } else if ( !empty($key) && $key_status == 'failed' ) { echo ''. __('Akismet plugin is installed but key failed to verify.', 'si-captcha'). ''; } } echo '
'. __('Configure Akismet', 'si-captcha'). ''; }else{ echo ''. __('Akismet plugin is not installed or is deactivated.', 'si-captcha'). ''; } ?>

'. __('Warning: Your web host has not upgraded from PHP4 to PHP5.', 'si-captcha'); echo ' '; echo __('PHP4 was officially discontinued August 8, 2008 and is no longer considered safe.', 'si-captcha')."
\n"; echo __('PHP5 is faster, has more features, and is and safer. Using PHP4 might still work, but is highly discouraged. Contact your web host for support.', 'si-captcha')."

\n"; } ?>




'; echo __('Caution: "External Style Sheet CSS" is enabled. This setting requires your theme\'s style.css to include the CAPTCHA CSS. Check the CAPTCHA images and input field on your comment form, make sure they are aligned properly. Be sure your theme includes the CAPTCHA style for this plugin, if it does not, then change the setting back to "Internal Style Sheet CSS".', 'si-captcha'); echo "
\n"; echo '
'; echo __('Note: "Internal Style Sheet CSS" fields below are not editable while "External Style Sheet CSS" is enabled.', 'si-captcha'); echo "

\n"; } ?>
name="si_captcha_captcha_div_style" id="si_captcha_captcha_div_style" type="text" value="" size="50" /> div#captchaImgDiv
name="si_captcha_captcha_div_style_sm" id="si_captcha_captcha_div_style_sm" type="text" value="" size="50" /> .captchaSizeDivSmall
name="si_captcha_captcha_div_style_m" id="si_captcha_captcha_div_style_m" type="text" value="" size="50" /> .captchaSizeDivLarge
name="si_captcha_captcha_image_style" id="si_captcha_captcha_image_style" type="text" value="" size="50" /> img#si_image_com,#si_image_reg,#si_image_log,#si_image_side_login
name="si_captcha_refresh_image_style" id="si_captcha_refresh_image_style" type="text" value="" size="50" /> .captchaImgRefresh
name="si_captcha_captcha_input_div_style" id="si_captcha_captcha_input_div_style" type="text" value="" size="50" />div#captchaInputDiv
name="si_captcha_comment_label_style" id="si_captcha_comment_label_style" type="text" value="" size="50" />label#captcha_code_label
name="si_captcha_comment_field_style" id="si_captcha_comment_field_style" type="text" value="" size="50" />input#captcha_code




HostGator Web Hosting. All my sites are hosted there. The prices are great and they offer the most features." - Mike Challis', 'si-captcha'), 'http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=mchallis-sicaptchawp&page=http://www.hostgator.com/apps/wordpress-hosting.shtml'); ?> <?php echo esc_attr(__('Web Site Hosting', 'si-captcha')); ?>