function wpss_plugin_settings_page() { if (!current_user_can('manage_options')) { $restricted_area_warning = __('You do not have sufficient permissions to access this page.'); $args = array('response' => '403'); wp_die($restricted_area_warning, '', $args); } echo "\n\t\t\t" . '<div class="wrap">' . "\n\t\t\t" . '<h2>WP-SpamShield ' . __('Settings') . '</h2>' . "\n"; $ip = spamshield_get_ip_addr(); $spamshield_count = spamshield_count(); $spamshield_options = get_option('spamshield_options'); spamshield_update_session_data($spamshield_options); $wpss_admin_email = get_option('admin_email'); $current_date = date('Y-m-d'); $install_date = empty($spamshield_options['install_date']) ? $current_date : $spamshield_options['install_date']; $num_days_installed = spamshield_date_diff($install_date, $current_date); if ($num_days_installed < 1) { $num_days_installed = 1; } $spam_count_so_far = $spamshield_count; if ($spam_count_so_far < 1) { $spam_count_so_far = 1; } $spam_per_hour = 240; /* Avg spam a person can deal with per hour */ $avg_blocked_daily = round($spam_count_so_far / $num_days_installed); $avg_blocked_daily_disp = spamshield_number_format($avg_blocked_daily); $est_hours_returned = round($spam_count_so_far / $spam_per_hour); $est_hours_returned_disp = spamshield_number_format($est_hours_returned); /* Initialize new vars */ if (empty($spamshield_options['comment_min_length'])) { $spamshield_options['comment_min_length'] = 15; } if (!isset($spamshield_options['disable_cf7_shield'])) { $spamshield_options['disable_cf7_shield'] = 0; } if (!isset($spamshield_options['disable_gf_shield'])) { $spamshield_options['disable_gf_shield'] = 0; } if (!isset($spamshield_options['disable_misc_form_shield'])) { $spamshield_options['disable_misc_form_shield'] = 0; } /* Check Installation Status */ $wpss_inst_status = $this->wpss_check_install_status(); if (!empty($wpss_inst_status)) { $wpss_inst_status_image = 'settings-status-installed-correctly-24'; $wpss_inst_status_color = '#77A51F'; /* '#D6EF7A', 'green' */ $wpss_inst_status_bg_color = '#EBF7D5'; /* '#77A51F', '#CCFFCC' */ $wpss_inst_status_msg_main = __('Installed Correctly', WPSS_PLUGIN_NAME); $wpss_inst_status_msg_text = spamshield_casetrans('lower', $wpss_inst_status_msg_main); } else { $wpss_inst_status_image = 'settings-status-not-installed-correctly-24'; $wpss_inst_status_color = '#A63104'; /* '#FC956D', 'red' */ $wpss_inst_status_bg_color = '#FEDBCD'; /* '#A63104', '#FFCCCC' */ $wpss_inst_status_msg_main = __('Not Installed Correctly', WPSS_PLUGIN_NAME); $wpss_inst_status_msg_text = spamshield_casetrans('lower', $wpss_inst_status_msg_main); } /* Checks Complete */ /* Save Options */ if (!empty($_REQUEST['submit_wpss_general_options']) && current_user_can('manage_options') && check_admin_referer('wpss_update_general_options_token', 'ugo_tkn')) { echo '<div class="updated fade"><p>' . __('Plugin Spam settings saved.', WPSS_PLUGIN_NAME) . '</p></div>'; } if (!empty($_REQUEST['submit_wpss_contact_options']) && current_user_can('manage_options') && check_admin_referer('wpss_update_contact_options_token', 'uco_tkn')) { echo '<div class="updated fade"><p>' . __('Plugin Contact Form settings saved.', WPSS_PLUGIN_NAME) . '</p></div>'; } /* Add IP to Blacklist */ $ip_to_blacklist = $ip_blacklist_nonce_value = ''; if (!empty($_REQUEST['bl_ip'])) { $ip_to_blacklist = trim(stripslashes($_REQUEST['bl_ip'])); } $ip_nodot = str_replace('.', '', $ip_to_blacklist); $ip_blacklist_nonce_action = 'blacklist_IP_' . $ip_to_blacklist; $ip_blacklist_nonce_name = 'bl' . $ip_nodot . 'tkn'; if (!empty($_REQUEST[$ip_blacklist_nonce_name])) { $ip_blacklist_nonce_value = $_REQUEST[$ip_blacklist_nonce_name]; } if (!empty($_REQUEST['wpss_action'])) { $wpss_action = $_REQUEST['wpss_action']; } else { $wpss_action = ''; } if ($wpss_action == 'blacklist_ip' && !empty($_REQUEST['bl_ip']) && !empty($_REQUEST[$ip_blacklist_nonce_name]) && current_user_can('manage_options') && empty($_REQUEST['submit_wpss_general_options']) && empty($_REQUEST['submit_wpss_contact_options'])) { if (spamshield_verify_nonce($ip_blacklist_nonce_value, $ip_blacklist_nonce_action, $ip_blacklist_nonce_name)) { if (spamshield_is_valid_ip($ip_to_blacklist)) { $last_admin_ip = get_option('spamshield_last_admin'); if ($ip_to_blacklist == $ip) { echo '<div class="error fade"><p>' . __('Are you sure you want to blacklist yourself? IP Address not added to Comment Blacklist.', WPSS_PLUGIN_NAME) . '</p></div>'; /* NEEDS TRANSLATION */ } elseif (!empty($last_admin_ip) && $ip_to_blacklist == $last_admin_ip) { /* TO DO: Switch to in_array once changes are made to last_admin_ip */ echo '<div class="error fade"><p>' . __('Are you sure you want to blacklist an Administrator? IP Address not added to Comment Blacklist.', WPSS_PLUGIN_NAME) . '</p></div>'; /* NEEDS TRANSLATION */ } else { $ip_to_blacklist_valid = '1'; spamshield_add_ip_to_blacklist($ip_to_blacklist); echo '<div class="updated fade"><p>' . __('IP Address added to Comment Blacklist.', WPSS_PLUGIN_NAME) . '</p></div>'; } } else { echo '<div class="error fade"><p>' . __('Invalid IP Address - not added to Comment Blacklist.', WPSS_PLUGIN_NAME) . '</p></div>'; } } else { echo '<div class="error fade"><p>' . __('Security token invalid or expired. IP Address not added to Comment Blacklist.', WPSS_PLUGIN_NAME) . '</p></div>'; /* NEEDS TRANSLATION */ } } /* Set Margins */ $wpss_vert_margins = '15'; $wpss_horz_margins = '15'; $wpss_icon_size = '48'; $wpss_sm_txt_spacer_size = '24'; /* Display Install Status */ ?> <div style='width:797px;border-style:solid;border-width:1px;border-color:<?php echo $wpss_inst_status_color; ?> ;background-color:<?php echo $wpss_inst_status_bg_color; ?> ;padding:0px 15px 0px 15px;margin-top:30px;float:left;clear:left;'> <p><strong><?php echo "<img src='" . WPSS_PLUGIN_IMG_URL . "/" . $wpss_inst_status_image . ".png' alt='' width='24' height='24' style='border-style:none;vertical-align:middle;padding-right:7px;' /> " . __('Installation Status', WPSS_PLUGIN_NAME) . ": <span style='color:" . $wpss_inst_status_color . ";'>" . $wpss_inst_status_msg_main . "</span>"; ?> </strong></p> </div> <?php /** * TO DO: * Detect PHP Version and Memory Issues and Display Warning, with info on how to fix **/ /* Start Layout */ if (!empty($spamshield_count)) { echo "\n\t\t\t<div style='width:797px;border-style:solid;border-width:1px;border-color:#333333;background-color:#FEFEFE;padding:0px 15px 0px 15px;margin-top:" . $wpss_vert_margins . "px;float:left;clear:left;'>\n\t\t\t<p style='font-size:20px;line-height:180%;'><img src='" . WPSS_PLUGIN_IMG_URL . "/settings-spam-protection-" . $wpss_icon_size . ".png' alt='' width='" . $wpss_icon_size . "' height='" . $wpss_icon_size . "' style='border-style:none;vertical-align:middle;padding-right:7px;' /> " . sprintf(__('WP-SpamShield has blocked <strong> %s </strong> spam!', WPSS_PLUGIN_NAME), spamshield_number_format($spamshield_count)) . "</p>\n\t\t\t"; if ($avg_blocked_daily >= 2) { echo "<p style='line-height:180%;'><img src='" . WPSS_PLUGIN_IMG_URL . "/spacer.gif' alt='' width='" . $wpss_icon_size . "' height='" . $wpss_sm_txt_spacer_size . "' style='border-style:none;vertical-align:middle;padding-right:7px;' /> " . sprintf(__('That\'s <strong> %s </strong> spam a day that you don\'t have to worry about.', WPSS_PLUGIN_NAME), $avg_blocked_daily_disp) . "</p>\n\t\t\t"; } if (spamshield_is_lang_en_us() && $est_hours_returned >= 2) { echo "<p style='line-height:180%;'><img src='" . WPSS_PLUGIN_IMG_URL . "/spacer.gif' alt='' width='" . $wpss_icon_size . "' height='" . $wpss_sm_txt_spacer_size . "' style='border-style:none;vertical-align:middle;padding-right:7px;' /> " . sprintf(__('This plugin has saved you <strong> %s </strong> hours of managing spam. You\'re welcome!', WPSS_PLUGIN_NAME), $est_hours_returned_disp) . "</p>\n\t\t\t"; } echo "</div>\n\t\t\t"; } if (!empty($_REQUEST['submitted_wpss_general_options']) && current_user_can('manage_options') && check_admin_referer('wpss_update_general_options_token', 'ugo_tkn')) { if (!empty($_REQUEST['comment_logging'])) { $req_comment_logging = $_REQUEST['comment_logging']; } else { $req_comment_logging = 0; } if (!empty($_REQUEST['comment_logging_all'])) { $req_comment_logging_all = $_REQUEST['comment_logging_all']; } else { $req_comment_logging_all = 0; } if (!empty($req_comment_logging_all)) { $req_comment_logging = 1; } if (!empty($req_comment_logging) && empty($spamshield_options['comment_logging_start_date'])) { $comment_logging_start_date = time(); spamshield_log_reset(); } elseif (!empty($req_comment_logging) && !empty($spamshield_options['comment_logging_start_date'])) { $comment_logging_start_date = $spamshield_options['comment_logging_start_date']; } else { $comment_logging_start_date = 0; } /* Reset Log when turning on Comment Logging - 1.7.9 */ if (!empty($req_comment_logging) && empty($spamshield_options['comment_logging'])) { $comment_logging_start_date = time(); spamshield_log_reset(); } /* Update User Admin Status */ $this->wpss_update_admin_status(); /* Check if initial user approval process was run on activation */ $wpss_init_user_approve_run = get_option('spamshield_init_user_approve_run'); if (empty($wpss_init_user_approve_run)) { $this->wpss_approve_previous_users(); } /* Validate Request Values */ if (!empty($_REQUEST)) { $valid_req_spamshield_options = $_REQUEST; } else { $valid_req_spamshield_options = array(); } $spamshield_default = unserialize(WPSS_DEFAULT_VALUES); $wpss_options_general_boolean = array('block_all_trackbacks', 'block_all_pingbacks', 'comment_logging', 'comment_logging_all', 'enhanced_comment_blacklist', 'enable_whitelist', 'allow_proxy_users', 'hide_extra_data', 'registration_shield_disable', 'registration_shield_level_1', 'disable_cf7_shield', 'disable_gf_shield', 'disable_misc_form_shield', 'allow_comment_author_keywords', 'promote_plugin_link'); $wpss_options_general_boolean_count = count($wpss_options_general_boolean); $i = 0; while ($i < $wpss_options_general_boolean_count) { if (!empty($_REQUEST[$wpss_options_general_boolean[$i]]) && ($_REQUEST[$wpss_options_general_boolean[$i]] == 'on' || $_REQUEST[$wpss_options_general_boolean[$i]] == 1 || $_REQUEST[$wpss_options_general_boolean[$i]] == '1')) { $valid_req_spamshield_options[$wpss_options_general_boolean[$i]] = 1; } else { $valid_req_spamshield_options[$wpss_options_general_boolean[$i]] = 0; } $i++; } if (empty($spamshield_options['comment_logging_all']) && $valid_req_spamshield_options['comment_logging_all'] == 1) { /* Added 1.4.3 - Turns Blocked Comment Logging Mode on if user selects "Log All Comments" */ $valid_req_spamshield_options['comment_logging'] = 1; } if (!empty($spamshield_options['comment_logging']) && $valid_req_spamshield_options['comment_logging'] == 0) { /* Added 1.4.3 - If Blocked Comment Logging Mode is turned off then deselects "Log All Comments" */ $valid_req_spamshield_options['comment_logging_all'] = 0; } if (!empty($_REQUEST['comment_min_length'])) { $comment_min_length_temp = trim(stripslashes($_REQUEST['comment_min_length'])); if ($comment_min_length_temp < 1) { $comment_min_length_temp = 1; } elseif ($comment_min_length_temp > 30) { $comment_min_length_temp = 30; } $valid_req_spamshield_options['comment_min_length'] = $comment_min_length_temp; } else { $valid_req_spamshield_options['comment_min_length'] = $spamshield_default['comment_min_length']; } /* Update Values */ $spamshield_options['block_all_trackbacks'] = $valid_req_spamshield_options['block_all_trackbacks']; $spamshield_options['block_all_pingbacks'] = $valid_req_spamshield_options['block_all_pingbacks']; $spamshield_options['comment_logging'] = $valid_req_spamshield_options['comment_logging']; $spamshield_options['comment_logging_start_date'] = $comment_logging_start_date; $spamshield_options['comment_logging_all'] = $valid_req_spamshield_options['comment_logging_all']; $spamshield_options['enhanced_comment_blacklist'] = $valid_req_spamshield_options['enhanced_comment_blacklist']; $spamshield_options['enable_whitelist'] = $valid_req_spamshield_options['enable_whitelist']; $spamshield_options['comment_min_length'] = $valid_req_spamshield_options['comment_min_length']; $spamshield_options['allow_proxy_users'] = $valid_req_spamshield_options['allow_proxy_users']; $spamshield_options['hide_extra_data'] = $valid_req_spamshield_options['hide_extra_data']; $spamshield_options['registration_shield_disable'] = $valid_req_spamshield_options['registration_shield_disable']; $spamshield_options['registration_shield_level_1'] = $valid_req_spamshield_options['registration_shield_level_1']; $spamshield_options['disable_cf7_shield'] = $valid_req_spamshield_options['disable_cf7_shield']; $spamshield_options['disable_gf_shield'] = $valid_req_spamshield_options['disable_gf_shield']; $spamshield_options['disable_misc_form_shield'] = $valid_req_spamshield_options['disable_misc_form_shield']; $spamshield_options['allow_comment_author_keywords'] = $valid_req_spamshield_options['allow_comment_author_keywords']; $spamshield_options['promote_plugin_link'] = $valid_req_spamshield_options['promote_plugin_link']; $spamshield_options['install_date'] = $install_date; update_option('spamshield_options', $spamshield_options); if (!empty($ip)) { update_option('spamshield_last_admin', $ip); } $blacklist_keys_update = trim(stripslashes($_REQUEST['wordpress_comment_blacklist'])); spamshield_update_bw_list_keys('black', $blacklist_keys_update); $whitelist_keys_update = trim(stripslashes($_REQUEST['wpss_whitelist'])); spamshield_update_bw_list_keys('white', $whitelist_keys_update); } if (!empty($_REQUEST['submitted_wpss_contact_options']) && current_user_can('manage_options') && check_admin_referer('wpss_update_contact_options_token', 'uco_tkn')) { /* Update User Admin Status */ $this->wpss_update_admin_status(); /* Check if initial user approval process was run on activation */ $wpss_init_user_approve_run = get_option('spamshield_init_user_approve_run'); if (empty($wpss_init_user_approve_run)) { $this->wpss_approve_previous_users(); } /* Validate Request Values */ if (!empty($_REQUEST)) { $valid_req_spamshield_options = $_REQUEST; } else { $valid_req_spamshield_options = array(); } $spamshield_default = unserialize(WPSS_DEFAULT_VALUES); $wpss_options_contact_boolean = array('form_include_website', 'form_require_website', 'form_include_phone', 'form_require_phone', 'form_include_company', 'form_require_company', 'form_include_drop_down_menu', 'form_require_drop_down_menu', 'form_include_user_meta'); $wpss_options_contact_boolean_count = count($wpss_options_contact_boolean); $i = 0; while ($i < $wpss_options_contact_boolean_count) { if (!empty($_REQUEST[$wpss_options_contact_boolean[$i]]) && ($_REQUEST[$wpss_options_contact_boolean[$i]] == 'on' || $_REQUEST[$wpss_options_contact_boolean[$i]] == 1 || $_REQUEST[$wpss_options_contact_boolean[$i]] == '1')) { $valid_req_spamshield_options[$wpss_options_contact_boolean[$i]] = 1; } else { $valid_req_spamshield_options[$wpss_options_contact_boolean[$i]] = 0; } $i++; } $wpss_options_contact_text = array('form_drop_down_menu_title', 'form_drop_down_menu_item_1', 'form_drop_down_menu_item_2', 'form_drop_down_menu_item_3', 'form_drop_down_menu_item_4', 'form_drop_down_menu_item_5', 'form_drop_down_menu_item_6', 'form_drop_down_menu_item_7', 'form_drop_down_menu_item_8', 'form_drop_down_menu_item_9', 'form_drop_down_menu_item_10', 'form_response_thank_you_message'); $wpss_options_contact_text_count = count($wpss_options_contact_text); $i = 0; while ($i < $wpss_options_contact_text_count) { if (!empty($_REQUEST[$wpss_options_contact_text[$i]])) { $valid_req_spamshield_options[$wpss_options_contact_text[$i]] = trim(stripslashes($_REQUEST[$wpss_options_contact_text[$i]])); } else { $valid_req_spamshield_options[$wpss_options_contact_text[$i]] = $spamshield_default[$wpss_options_contact_text[$i]]; } $i++; } if (!empty($_REQUEST['form_message_width'])) { $form_message_width_temp = trim(stripslashes($_REQUEST['form_message_width'])); if ($form_message_width_temp < 40) { $form_message_width_temp = 40; } $valid_req_spamshield_options['form_message_width'] = $form_message_width_temp; } else { $valid_req_spamshield_options['form_message_width'] = $spamshield_default['form_message_width']; } if (!empty($_REQUEST['form_message_height'])) { $form_message_height_temp = trim(stripslashes($_REQUEST['form_message_height'])); if ($form_message_height_temp < 5) { $form_message_height_temp = 5; } $valid_req_spamshield_options['form_message_height'] = $form_message_height_temp; } else { $valid_req_spamshield_options['form_message_height'] = $spamshield_default['form_message_height']; } if (!empty($_REQUEST['form_message_min_length'])) { $form_message_min_length_temp = trim(stripslashes($_REQUEST['form_message_min_length'])); if ($form_message_min_length_temp < 15) { $form_message_min_length_temp = 15; } elseif ($form_message_min_length_temp > 150) { $form_message_min_length_temp = 150; } $valid_req_spamshield_options['form_message_min_length'] = $form_message_min_length_temp; } else { $valid_req_spamshield_options['form_message_min_length'] = $spamshield_default['form_message_min_length']; } if (!empty($_REQUEST['form_message_recipient'])) { $form_message_recipient_temp = trim(stripslashes($_REQUEST['form_message_recipient'])); if (is_email($form_message_recipient_temp)) { $valid_req_spamshield_options['form_message_recipient'] = $form_message_recipient_temp; } else { $valid_req_spamshield_options['form_message_recipient'] = $wpss_admin_email; } } else { $valid_req_spamshield_options['form_message_recipient'] = $wpss_admin_email; } $spamshield_options['form_include_website'] = $valid_req_spamshield_options['form_include_website']; $spamshield_options['form_require_website'] = $valid_req_spamshield_options['form_require_website']; $spamshield_options['form_include_phone'] = $valid_req_spamshield_options['form_include_phone']; $spamshield_options['form_require_phone'] = $valid_req_spamshield_options['form_require_phone']; $spamshield_options['form_include_company'] = $valid_req_spamshield_options['form_include_company']; $spamshield_options['form_require_company'] = $valid_req_spamshield_options['form_require_company']; $spamshield_options['form_include_drop_down_menu'] = $valid_req_spamshield_options['form_include_drop_down_menu']; $spamshield_options['form_require_drop_down_menu'] = $valid_req_spamshield_options['form_require_drop_down_menu']; $spamshield_options['form_drop_down_menu_title'] = $valid_req_spamshield_options['form_drop_down_menu_title']; $spamshield_options['form_drop_down_menu_item_1'] = $valid_req_spamshield_options['form_drop_down_menu_item_1']; $spamshield_options['form_drop_down_menu_item_2'] = $valid_req_spamshield_options['form_drop_down_menu_item_2']; $spamshield_options['form_drop_down_menu_item_3'] = $valid_req_spamshield_options['form_drop_down_menu_item_3']; $spamshield_options['form_drop_down_menu_item_4'] = $valid_req_spamshield_options['form_drop_down_menu_item_4']; $spamshield_options['form_drop_down_menu_item_5'] = $valid_req_spamshield_options['form_drop_down_menu_item_5']; $spamshield_options['form_drop_down_menu_item_6'] = $valid_req_spamshield_options['form_drop_down_menu_item_6']; $spamshield_options['form_drop_down_menu_item_7'] = $valid_req_spamshield_options['form_drop_down_menu_item_7']; $spamshield_options['form_drop_down_menu_item_8'] = $valid_req_spamshield_options['form_drop_down_menu_item_8']; $spamshield_options['form_drop_down_menu_item_9'] = $valid_req_spamshield_options['form_drop_down_menu_item_9']; $spamshield_options['form_drop_down_menu_item_10'] = $valid_req_spamshield_options['form_drop_down_menu_item_10']; $spamshield_options['form_message_width'] = $valid_req_spamshield_options['form_message_width']; $spamshield_options['form_message_height'] = $valid_req_spamshield_options['form_message_height']; $spamshield_options['form_message_min_length'] = $valid_req_spamshield_options['form_message_min_length']; $spamshield_options['form_message_recipient'] = $valid_req_spamshield_options['form_message_recipient']; $spamshield_options['form_response_thank_you_message'] = $valid_req_spamshield_options['form_response_thank_you_message']; $spamshield_options['form_include_user_meta'] = $valid_req_spamshield_options['form_include_user_meta']; $spamshield_options['install_date'] = $install_date; if (!empty($spamshield_options['comment_logging_all'])) { $spamshield_options['comment_logging'] = 1; } if (empty($spamshield_options['comment_logging'])) { $spamshield_options['comment_logging_all'] = 0; } update_option('spamshield_options', $spamshield_options); spamshield_update_session_data($spamshield_options); $ip = spamshield_get_ip_addr(); if (!empty($ip)) { update_option('spamshield_last_admin', $ip); } } if (!spamshield_is_lang_en_us()) { $wpss_info_box_height = '335'; } else { $wpss_info_box_height = '315'; } $wordpress_comment_blacklist = spamshield_get_bw_list_keys('black'); $wpss_whitelist = spamshield_get_bw_list_keys('white'); ?> <div style="width:375px;height:<?php echo $wpss_info_box_height; ?> px;border-style:solid;border-width:1px;border-color:#003366;background-color:#DDEEFF;padding:0px 15px 0px 15px;margin-top:<?php echo $wpss_vert_margins; ?> px;margin-right:<?php echo $wpss_horz_margins; ?> px;float:left;clear:left;"> <p><a name="wpss_top"><h3><?php _e('Quick Navigation - Contents', WPSS_PLUGIN_NAME); ?> </h3></a></p> <ol style="list-style-type:decimal;padding-left:30px;"> <li><a href="#wpss_general_options"><?php _e('General Settings', WPSS_PLUGIN_NAME); ?> </a></li> <li><a href="#wpss_contact_form_options"><?php _e('Contact Form Settings', WPSS_PLUGIN_NAME); ?> </a></li> <li><a href="<?php echo WPSS_HOME_URL; ?> #wpss_installation_instructions" target="_blank" rel="external" ><?php _e('Installation Instructions', WPSS_PLUGIN_NAME); ?> </a></li> <li><a href="<?php echo WPSS_HOME_URL; ?> #wpss_displaying_stats" target="_blank" rel="external" ><?php _e('Displaying Spam Stats on Your Blog', WPSS_PLUGIN_NAME); ?> </a></li> <li><a href="<?php echo WPSS_HOME_URL; ?> #wpss_adding_contact_form" target="_blank" rel="external" ><?php _e('Adding a Contact Form to Your Blog', WPSS_PLUGIN_NAME); ?> </a></li> <li><a href="<?php echo WPSS_HOME_URL; ?> #wpss_configuration" target="_blank" rel="external" ><?php _e('Configuration Information', WPSS_PLUGIN_NAME); ?> </a></li> <li><a href="<?php echo WPSS_HOME_URL; ?> #wpss_known_conflicts" target="_blank" rel="external" ><?php _e('Known Plugin Conflicts', WPSS_PLUGIN_NAME); ?> </a></li> <li><a href="<?php echo WPSS_HOME_URL; ?> #wpss_troubleshooting" target="_blank" rel="external" ><?php _e('Troubleshooting Guide / Support', WPSS_PLUGIN_NAME); ?> </a></li> <li><a href="#wpss_let_others_know"><?php _e('Let Others Know About WP-SpamShield', WPSS_PLUGIN_NAME); ?> </a></li> <li><a href="#wpss_download_plugin_documentation"><?php echo spamshield_doc_txt(); ?> </a></li> </ol> </div> <div style="width:375px;height:<?php echo $wpss_info_box_height; ?> px;border-style:solid;border-width:1px;border-color:#003366;background-color:#DDEEFF;padding:0px 15px 0px 15px;margin-top:<?php echo $wpss_vert_margins; ?> px;margin-right:<?php echo $wpss_horz_margins; ?> px;float:left;"> <p> <?php if ($spamshield_count > 100) { ?> <a name="wpss_rate"><h3><?php _e('Happy with WP-SpamShield?', WPSS_PLUGIN_NAME); ?> </h3></a></p> <p><img src='<?php echo WPSS_PLUGIN_IMG_URL; ?> /5-stars-rating.png' alt='' width='99' height='19' align='right' style='border-style:none;padding:3px 0 20px 20px;float:right;' /><a href="<?php echo WPSS_WP_RATING_URL; ?> " target="_blank" rel="external" ><?php _e('Let others know by giving it a good rating on WordPress.org!', WPSS_PLUGIN_NAME); ?> </a><br /><br /> <?php } ?> <strong><?php echo spamshield_doc_txt(); ?> :</strong> <a href="<?php echo WPSS_HOME_URL; ?> " target="_blank" rel="external" ><?php _e('Plugin Homepage', WPSS_PLUGIN_NAME); ?> </a><br /> <strong><?php _e('Tech Support', WPSS_PLUGIN_NAME); ?> :</strong> <a href="<?php echo WPSS_HOME_URL; ?> support/" target="_blank" rel="external" ><?php _e('WP-SpamShield Support', WPSS_PLUGIN_NAME); ?> </a><br /> <strong><?php _e('Follow on Twitter', WPSS_PLUGIN_NAME); ?> :</strong> <a href="http://twitter.com/WPSpamShield" target="_blank" rel="external" >@WPSpamShield</a><br /> <strong><?php _e('Let Others Know', WPSS_PLUGIN_NAME); ?> :</strong> <a href="http://www.redsandmarketing.com/blog/wp-spamshield-wordpress-plugin-released/#comments" target="_blank" rel="external" ><?php _e('Leave a Comment'); ?> </a><br /> <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank" style="margin-top:10px;"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="DFMTNHJEPFFUL"> <input type="image" src="<?php echo WPSS_PLUGIN_IMG_URL; ?> /btn-donate-sm.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" /> <img alt="" border="0" src="<?php echo WPSS_PLUGIN_IMG_URL; ?> /spacer.gif" width="1" height="1" /> </form> </p> <?php echo '<p><strong><a href="http://bit.ly/wp-spamshield-donate" title="' . __('WP-SpamShield is provided for free.', WPSS_PLUGIN_NAME) . ' ' . __('If you like the plugin, consider a donation to help further its development.', WPSS_PLUGIN_NAME) . '" target="_blank" rel="external" >' . __('Donate to WP-SpamShield', WPSS_PLUGIN_NAME) . '</a></strong></p>'; ?> </div> <div style='width:797px;border-style:solid;border-width:1px;border-color:#333333;background-color:#FEFEFE;padding:0px 15px 0px 15px;margin-top:<?php echo $wpss_vert_margins; ?> px;margin-right:<?php echo $wpss_horz_margins; ?> px;float:left;clear:left;'> <p><a name="wpss_general_options"><h3><?php _e('General Settings', WPSS_PLUGIN_NAME); ?> </h3></a></p> <form name="wpss_general_options" method="post"> <input type="hidden" name="submitted_wpss_general_options" value="1" /> <?php wp_nonce_field('wpss_update_general_options_token', 'ugo_tkn'); /* TO DO: Roll up to improve efficiency of code */ ?> <fieldset class="options"> <ul style="list-style-type:none;padding-left:30px;"> <li> <label for="comment_logging"> <input type="checkbox" id="comment_logging" name="comment_logging" <?php echo $spamshield_options['comment_logging'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php echo __('Blocked Comment Logging Mode', WPSS_PLUGIN_NAME) . ' — ' . __('See what spam has been blocked!', WPSS_PLUGIN_NAME); ?> </strong><br /><?php _e('Temporary diagnostic mode that logs blocked comment submissions for 7 days, then turns off automatically.', WPSS_PLUGIN_NAME); ?> <br /><?php _e('Log is cleared each time this feature is turned on.', WPSS_PLUGIN_NAME); ?> </label> <?php if (!empty($spamshield_options['comment_logging'])) { // If comment logging is on, check file permissions and attempt to fix. Reset .htaccess file for data dir, to allow IP of current admin to view log file. Let user know if not set correctly. $wpss_hta_reset = spamshield_log_reset(NULL, TRUE, TRUE); if (empty($wpss_hta_reset)) { echo '<br />' . "\n" . '<span style="color:red;"><strong>' . sprintf(__('The log file may not be writeable. You may need to manually correct the file permissions.<br />Set the permission for the "%1$s" directory to "%2$s" and all files within it to "%3$s".</strong><br />If that doesn\'t work, then please read the <a href="%4$s" %5$s>FAQ</a> for this topic.', WPSS_PLUGIN_NAME), WPSS_PLUGIN_DATA_PATH, '755', '644', WPSS_HOME_URL . '#wpss_faqs_5', 'target="_blank"') . '</span><br />' . "\n"; } } else { spamshield_log_reset(NULL, FALSE, FALSE, TRUE); /* Create log file if it doesn't exist */ } $wpss_log_key = spamshield_get_log_key(); $wpss_log_filename = strpos(RSMP_SERVER_NAME_REV, RSMP_MDBUG_SERVER_NAME_REV) === 0 ? 'temp-comments-log.txt' : 'temp-comments-log-' . $wpss_log_key . '.txt'; ?> <br /><strong><a href="<?php echo WPSS_PLUGIN_DATA_URL . '/' . $wpss_log_filename; ?> " target="_blank"><?php _e('Download Comment Log File', WPSS_PLUGIN_NAME); ?> </a> - <?php _e('Right-click, and select "Save Link As"', WPSS_PLUGIN_NAME); ?> </strong><br /> </li> <li> <label for="comment_logging_all"> <input type="checkbox" id="comment_logging_all" name="comment_logging_all" <?php echo $spamshield_options['comment_logging_all'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Log All Comments', WPSS_PLUGIN_NAME); ?> </strong><br /><?php _e('Requires that Blocked Comment Logging Mode be engaged. Instead of only logging blocked comments, this will allow the log to capture all comments while logging mode is turned on. This provides more technical data for comment submissions than WordPress provides, and helps us improve the plugin.<br />If you plan on submitting spam samples to us for analysis, it\'s helpful for you to turn this on, otherwise it\'s not necessary.', WPSS_PLUGIN_NAME); ?> </label> <br /><a href="<?php echo WPSS_HOME_URL; ?> #wpss_configuration_log_all_comments" target="_blank" rel="external" ><?php _e('For more about this, see the documentation.', WPSS_PLUGIN_NAME); ?> </a><br /> </li> <li> <label for="enhanced_comment_blacklist"> <input type="checkbox" id="enhanced_comment_blacklist" name="enhanced_comment_blacklist" <?php echo $spamshield_options['enhanced_comment_blacklist'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Enhanced Comment Blacklist', WPSS_PLUGIN_NAME); ?> </strong><br /><?php _e('Enhances WordPress\'s Comment Blacklist - instead of just sending comments to moderation, they will be completely blocked. Also adds a link in the comment notification emails that will let you blacklist a commenter\'s IP with one click.<br />(Useful if you receive repetitive human spam or harassing comments from a particular commenter.)', WPSS_PLUGIN_NAME); ?> </label> <br /><a href="<?php echo WPSS_HOME_URL; ?> #wpss_configuration_enhanced_comment_blacklist" target="_blank" rel="external" ><?php _e('For more about this, see the documentation.', WPSS_PLUGIN_NAME); ?> </a><br /> </li> <label for="wordpress_comment_blacklist"> <strong><?php _e('Your current WordPress Comment Blacklist', WPSS_PLUGIN_NAME); ?> </strong><br /><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be completely blocked, not just marked as spam. One word or IP per line. It is not case-sensitive and will match included words, so "press" on your blacklist will block "WordPress" in a comment.', WPSS_PLUGIN_NAME); ?> <br /> <textarea id="wordpress_comment_blacklist" name="wordpress_comment_blacklist" cols="80" rows="8" /><?php echo $wordpress_comment_blacklist; ?> </textarea><br /> </label> <?php _e('You can update this list here.', WPSS_PLUGIN_NAME); ?> <a href="<?php echo RSMP_ADMIN_URL; ?> /options-discussion.php"><?php _e('You can also update it on the WordPress Discussion Settings page.', WPSS_PLUGIN_NAME); ?> </a><br /> <li> <label for="enable_whitelist"> <input type="checkbox" id="enable_whitelist" name="enable_whitelist" <?php echo $spamshield_options['enable_whitelist'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Enable WP-SpamShield Whitelist', WPSS_PLUGIN_NAME); ?> </strong><br /><?php _e('Enables WP-SpamShield\'s Whitelist - for comments and contact form submissions. When a comment or contact form is submitted from an e-mail address on the whitelist, it will bypass spam filters and be allowed through.<br />(Useful if you have specific users that you want to let bypass the filters.)', WPSS_PLUGIN_NAME); ?> </label> <br /><a href="<?php echo WPSS_HOME_URL; ?> #wpss_configuration_enable_whitelist" target="_blank" rel="external" ><?php _e('For more about this, see the documentation.', WPSS_PLUGIN_NAME); ?> </a><br /> </li> <label for="wpss_whitelist"> <strong><?php _e('Your current WP-SpamShield Whitelist', WPSS_PLUGIN_NAME); ?> </strong><br /><?php _e('One email address per line. Each entry must be a valid and complete email address, like <em>user@yourwebsite.com</em>. It is not case-sensitive and will only make exact matches, not partial matches.', WPSS_PLUGIN_NAME); ?> <br /> <textarea id="wpss_whitelist" name="wpss_whitelist" cols="80" rows="8" /><?php echo $wpss_whitelist; ?> </textarea><br /> </label> <li> <label for="comment_min_length"> <?php $comment_min_length = trim(stripslashes($spamshield_options['comment_min_length'])); ?> <input type="number" size="4" id="comment_min_length" name="comment_min_length" value="<?php if (!empty($comment_min_length) && $comment_min_length >= 1) { echo $comment_min_length; } elseif (empty($form_message_width)) { echo '15'; } else { echo '1'; } ?> " min="1" max="30" step="1" /> <strong><?php echo sprintf(__('Minimum comment length (# of characters). (Minimum %1$s, Default %2$s)', WPSS_PLUGIN_NAME), '1', '15'); ?> </strong><br /> </label> </li> <label for="block_all_trackbacks"> <input type="checkbox" id="block_all_trackbacks" name="block_all_trackbacks" <?php echo $spamshield_options['block_all_trackbacks'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Disable trackbacks.', WPSS_PLUGIN_NAME); ?> </strong><br /><?php _e('Use if trackback spam is excessive. (Not recommended)', WPSS_PLUGIN_NAME); ?> <br /> </label> </li> <li> <label for="block_all_pingbacks"> <input type="checkbox" id="block_all_pingbacks" name="block_all_pingbacks" <?php echo $spamshield_options['block_all_pingbacks'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Disable pingbacks.', WPSS_PLUGIN_NAME); ?> </strong><br /><?php _e('Use if pingback spam is excessive. Disadvantage is reduction of communication between blogs. (Not recommended)', WPSS_PLUGIN_NAME); ?> <br /> </label> </li> <li> <label for="allow_proxy_users"> <input type="checkbox" id="allow_proxy_users" name="allow_proxy_users" <?php echo $spamshield_options['allow_proxy_users'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Allow users behind proxy servers to comment?', WPSS_PLUGIN_NAME); ?> </strong><br /><?php _e('Many human spammers hide behind proxies, so you can uncheck this option for extra protection. (For highest user compatibility, leave it checked.)', WPSS_PLUGIN_NAME); ?> <br /> </label> </li> <li> <label for="hide_extra_data"> <input type="checkbox" id="hide_extra_data" name="hide_extra_data" <?php echo $spamshield_options['hide_extra_data'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Hide extra technical data in comment notifications.', WPSS_PLUGIN_NAME); ?> </strong><br /><?php _e('This data is helpful if you need to submit a spam sample. If you dislike seeing the extra info, you can use this option.', WPSS_PLUGIN_NAME); ?> <br /> </label> </li> <li> <label for="registration_shield_disable"> <input type="checkbox" id="registration_shield_disable" name="registration_shield_disable" <?php echo $spamshield_options['registration_shield_disable'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Disable Registration Spam Shield.', WPSS_PLUGIN_NAME); ?> </strong><br /><?php _e('This option will disable the anti-spam shield for the WordPress registration form only. While not recommended, this option is available if you need it. Anti-spam will still remain active for comments, pingbacks, trackbacks, and contact forms.', WPSS_PLUGIN_NAME); ?> <br /> </label> </li> <li> <label for="disable_cf7_shield"> <input type="checkbox" id="disable_cf7_shield" name="disable_cf7_shield" <?php echo $spamshield_options['disable_cf7_shield'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Disable anti-spam for Contact Form 7.', WPSS_PLUGIN_NAME); ?> </strong><br /><?php _e('This option will disable anti-spam protection for Contact Form 7 forms.', WPSS_PLUGIN_NAME); ?> <br /> </label> </li> <li> <label for="disable_gf_shield"> <input type="checkbox" id="disable_gf_shield" name="disable_gf_shield" <?php echo $spamshield_options['disable_gf_shield'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Disable anti-spam for Gravity Forms.', WPSS_PLUGIN_NAME); ?> </strong><br /><?php _e('This option will disable anti-spam protection for Gravity Forms.', WPSS_PLUGIN_NAME); ?> <br /> </label> </li> <li> <label for="disable_misc_form_shield"> <input type="checkbox" id="disable_misc_form_shield" name="disable_misc_form_shield" <?php echo $spamshield_options['disable_misc_form_shield'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Disable anti-spam for miscellaneous forms.', WPSS_PLUGIN_NAME); ?> </strong><br /><?php _e('This option will disable anti-spam protection for custom and miscellaneous forms on your site. (All forms that are not from WP-SpamShield, Contact Form 7, or Gravity Forms.)', WPSS_PLUGIN_NAME); ?> <br /> </label> </li> <li> <label for="allow_comment_author_keywords"> <input type="checkbox" id="allow_comment_author_keywords" name="allow_comment_author_keywords" <?php echo $spamshield_options['allow_comment_author_keywords'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Allow Keywords in Comment Author Names.', WPSS_PLUGIN_NAME); ?> </strong><br /><?php echo sprintf(__('This will allow some keywords to be used in comment author names. By default, WP-SpamShield blocks many common spam keywords from being used in the comment "%1$s" field. This option is useful for sites with users that use pseudonyms, or for sites that simply want to allow business names and keywords to be used in the comment "%2$s" field. This option is not recommended, as it can potentially allow more human spam, but it is available if you choose. Your site will still be protected against all automated comment spam.', WPSS_PLUGIN_NAME), __('Name'), __('Name')); ?> <br /> </label> </li> <li> <label for="promote_plugin_link"> <input type="checkbox" id="promote_plugin_link" name="promote_plugin_link" <?php echo $spamshield_options['promote_plugin_link'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Help promote WP-SpamShield?', WPSS_PLUGIN_NAME); ?> </strong><br /><?php _e('This places a small link under the comments and contact form, letting others know what\'s blocking spam on your blog.', WPSS_PLUGIN_NAME); ?> <br /> </label> </li> </ul> </fieldset> <p class="submit"> <input type="submit" name="submit_wpss_general_options" value="<?php _e('Save Changes'); ?> " class="button-primary" style="float:left;" /> </p> </form> <p> </p> <p><div style="float:right;font-size:12px;">[ <a href="#wpss_top"><?php _e('BACK TO TOP', WPSS_PLUGIN_NAME); ?> </a> ]</div></p> <p> </p> </div> <div style='width:797px;border-style:solid;border-width:1px;border-color:#003366;background-color:#DDEEFF;padding:0px 15px 0px 15px;margin-top:<?php echo $wpss_vert_margins; ?> px;margin-right:<?php echo $wpss_horz_margins; ?> px;float:left;clear:left;'> <p><a name="wpss_contact_form_options"><h3><?php _e('Contact Form Settings', WPSS_PLUGIN_NAME); ?> </h3></a></p> <form name="wpss_contact_options" method="post"> <input type="hidden" name="submitted_wpss_contact_options" value="1" /> <?php wp_nonce_field('wpss_update_contact_options_token', 'uco_tkn'); /* TO DO: Roll up to improve efficiency of code */ ?> <fieldset class="options"> <ul style="list-style-type:none;padding-left:30px;"> <li> <label for="form_include_website"> <input type="checkbox" id="form_include_website" name="form_include_website" <?php echo $spamshield_options['form_include_website'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Include "Website" field.', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_require_website"> <input type="checkbox" id="form_require_website" name="form_require_website" <?php echo $spamshield_options['form_require_website'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Require "Website" field.', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_include_phone"> <input type="checkbox" id="form_include_phone" name="form_include_phone" <?php echo $spamshield_options['form_include_phone'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Include "Phone" field.', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_require_phone"> <input type="checkbox" id="form_require_phone" name="form_require_phone" <?php echo $spamshield_options['form_require_phone'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Require "Phone" field.', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_include_company"> <input type="checkbox" id="form_include_company" name="form_include_company" <?php echo $spamshield_options['form_include_company'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Include "Company" field.', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_require_company"> <input type="checkbox" id="form_require_company" name="form_require_company" <?php echo $spamshield_options['form_require_company'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Require "Company" field.', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_include_drop_down_menu"> <input type="checkbox" id="form_include_drop_down_menu" name="form_include_drop_down_menu" <?php echo $spamshield_options['form_include_drop_down_menu'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Include drop-down menu select field.', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_require_drop_down_menu"> <input type="checkbox" id="form_require_drop_down_menu" name="form_require_drop_down_menu" <?php echo $spamshield_options['form_require_drop_down_menu'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Require drop-down menu select field.', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_drop_down_menu_title"> <?php $form_drop_down_menu_title = trim(stripslashes($spamshield_options['form_drop_down_menu_title'])); ?> <input type="text" size="40" id="form_drop_down_menu_title" name="form_drop_down_menu_title" value="<?php if (!empty($form_drop_down_menu_title)) { echo $form_drop_down_menu_title; } else { echo ''; } ?> " /> <strong><?php _e('Title of drop-down select menu. (Menu won\'t be shown if empty.)', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_drop_down_menu_item_1"> <?php $form_drop_down_menu_item_1 = trim(stripslashes($spamshield_options['form_drop_down_menu_item_1'])); ?> <input type="text" size="40" id="form_drop_down_menu_item_1" name="form_drop_down_menu_item_1" value="<?php if (!empty($form_drop_down_menu_item_1)) { echo $form_drop_down_menu_item_1; } else { echo ''; } ?> " /> <strong><?php _e('Drop-down select menu item 1. (Menu won\'t be shown if empty.)', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_drop_down_menu_item_2"> <?php $form_drop_down_menu_item_2 = trim(stripslashes($spamshield_options['form_drop_down_menu_item_2'])); ?> <input type="text" size="40" id="form_drop_down_menu_item_2" name="form_drop_down_menu_item_2" value="<?php if (!empty($form_drop_down_menu_item_2)) { echo $form_drop_down_menu_item_2; } else { echo ''; } ?> " /> <strong><?php _e('Drop-down select menu item 2. (Menu won\'t be shown if empty.)', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_drop_down_menu_item_3"> <?php $form_drop_down_menu_item_3 = trim(stripslashes($spamshield_options['form_drop_down_menu_item_3'])); ?> <input type="text" size="40" id="form_drop_down_menu_item_3" name="form_drop_down_menu_item_3" value="<?php if (!empty($form_drop_down_menu_item_3)) { echo $form_drop_down_menu_item_3; } else { echo ''; } ?> " /> <strong><?php _e('Drop-down select menu item 3. (Leave blank if not using.)', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_drop_down_menu_item_4"> <?php $form_drop_down_menu_item_4 = trim(stripslashes($spamshield_options['form_drop_down_menu_item_4'])); ?> <input type="text" size="40" id="form_drop_down_menu_item_4" name="form_drop_down_menu_item_4" value="<?php if (!empty($form_drop_down_menu_item_4)) { echo $form_drop_down_menu_item_4; } else { echo ''; } ?> " /> <strong><?php _e('Drop-down select menu item 4. (Leave blank if not using.)', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_drop_down_menu_item_5"> <?php $form_drop_down_menu_item_5 = trim(stripslashes($spamshield_options['form_drop_down_menu_item_5'])); ?> <input type="text" size="40" id="form_drop_down_menu_item_5" name="form_drop_down_menu_item_5" value="<?php if (!empty($form_drop_down_menu_item_5)) { echo $form_drop_down_menu_item_5; } else { echo ''; } ?> " /> <strong><?php _e('Drop-down select menu item 5. (Leave blank if not using.)', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_drop_down_menu_item_6"> <?php $form_drop_down_menu_item_6 = trim(stripslashes($spamshield_options['form_drop_down_menu_item_6'])); ?> <input type="text" size="40" id="form_drop_down_menu_item_6" name="form_drop_down_menu_item_6" value="<?php if (!empty($form_drop_down_menu_item_6)) { echo $form_drop_down_menu_item_6; } else { echo ''; } ?> " /> <strong><?php _e('Drop-down select menu item 6. (Leave blank if not using.)', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_drop_down_menu_item_7"> <?php $form_drop_down_menu_item_7 = trim(stripslashes($spamshield_options['form_drop_down_menu_item_7'])); ?> <input type="text" size="40" id="form_drop_down_menu_item_7" name="form_drop_down_menu_item_7" value="<?php if (!empty($form_drop_down_menu_item_7)) { echo $form_drop_down_menu_item_7; } else { echo ''; } ?> " /> <strong><?php _e('Drop-down select menu item 7. (Leave blank if not using.)', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_drop_down_menu_item_8"> <?php $form_drop_down_menu_item_8 = trim(stripslashes($spamshield_options['form_drop_down_menu_item_8'])); ?> <input type="text" size="40" id="form_drop_down_menu_item_8" name="form_drop_down_menu_item_8" value="<?php if (!empty($form_drop_down_menu_item_8)) { echo $form_drop_down_menu_item_8; } else { echo ''; } ?> " /> <strong><?php _e('Drop-down select menu item 8. (Leave blank if not using.)', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_drop_down_menu_item_9"> <?php $form_drop_down_menu_item_9 = trim(stripslashes($spamshield_options['form_drop_down_menu_item_9'])); ?> <input type="text" size="40" id="form_drop_down_menu_item_9" name="form_drop_down_menu_item_9" value="<?php if (!empty($form_drop_down_menu_item_9)) { echo $form_drop_down_menu_item_9; } else { echo ''; } ?> " /> <strong><?php _e('Drop-down select menu item 9. (Leave blank if not using.)', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_drop_down_menu_item_10"> <?php $form_drop_down_menu_item_10 = trim(stripslashes($spamshield_options['form_drop_down_menu_item_10'])); ?> <input type="text" size="40" id="form_drop_down_menu_item_10" name="form_drop_down_menu_item_10" value="<?php if (!empty($form_drop_down_menu_item_10)) { echo $form_drop_down_menu_item_10; } else { echo ''; } ?> " /> <strong><?php _e('Drop-down select menu item 10. (Leave blank if not using.)', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_message_width"> <?php $form_message_width = trim(stripslashes($spamshield_options['form_message_width'])); ?> <input type="number" size="4" id="form_message_width" name="form_message_width" value="<?php if (!empty($form_message_width) && $form_message_width >= 40) { echo $form_message_width; } else { echo '40'; } ?> " min="40" max="400" step="1" /> <strong><?php echo sprintf(__('"Message" field width. (Minimum %s)', WPSS_PLUGIN_NAME), '40'); ?> </strong><br /> </label> </li> <li> <label for="form_message_height"> <?php $form_message_height = trim(stripslashes($spamshield_options['form_message_height'])); ?> <input type="number" size="4" id="form_message_height" name="form_message_height" value="<?php if (!empty($form_message_height) && $form_message_height >= 5) { echo $form_message_height; } elseif (empty($form_message_height)) { echo '10'; } else { echo '5'; } ?> " min="5" max="100" step="1" /> <strong><?php echo sprintf(__('"Message" field height. (Minimum %1$s, Default %2$s)', WPSS_PLUGIN_NAME), '5', '10'); ?> </strong><br /> </label> </li> <li> <label for="form_message_min_length"> <?php $form_message_min_length = trim(stripslashes($spamshield_options['form_message_min_length'])); ?> <input type="number" size="4" id="form_message_min_length" name="form_message_min_length" value="<?php if (!empty($form_message_min_length) && $form_message_min_length >= 15) { echo $form_message_min_length; } elseif (empty($form_message_width)) { echo '25'; } else { echo '15'; } ?> " min="15" max="150" step="1" /> <strong><?php echo sprintf(__('Minimum message length (# of characters). (Minimum %1$s, Default %2$s)', WPSS_PLUGIN_NAME), '15', '25'); ?> </strong><br /> </label> </li> <li> <label for="form_message_recipient"> <?php $form_message_recipient = trim(stripslashes($spamshield_options['form_message_recipient'])); ?> <input type="email" size="40" id="form_message_recipient" name="form_message_recipient" value="<?php if (empty($form_message_recipient)) { echo $wpss_admin_email; } else { echo $form_message_recipient; } ?> " /> <strong><?php _e('Optional: Enter alternate form recipient. Default is blog admin email.', WPSS_PLUGIN_NAME); ?> </strong><br /> </label> </li> <li> <label for="form_response_thank_you_message"> <?php $form_response_thank_you_message = trim(stripslashes($spamshield_options['form_response_thank_you_message'])); ?> <?php _e('<strong>Enter message to be displayed upon successful contact form submission.</strong><br />Can be plain text, HTML, or an ad, etc.', WPSS_PLUGIN_NAME); ?> <br /> <textarea id="form_response_thank_you_message" name="form_response_thank_you_message" cols="80" rows="3" /><?php if (empty($form_response_thank_you_message)) { _e('Your message was sent successfully. Thank you.', WPSS_PLUGIN_NAME); } else { echo $form_response_thank_you_message; } ?> </textarea><br /> </label> </li> <li> <label for="form_include_user_meta"> <input type="checkbox" id="form_include_user_meta" name="form_include_user_meta" <?php echo $spamshield_options['form_include_user_meta'] == TRUE ? "checked=\"checked\"" : ""; ?> value="1" /> <strong><?php _e('Include user technical data in email.', WPSS_PLUGIN_NAME); ?> </strong><br /><?php _e('This adds some extra technical data to the end of the contact form email about the person submitting the form.<br />It includes: <strong>Browser / User Agent</strong>, <strong>Referrer</strong>, <strong>IP Address</strong>, <strong>Server</strong>, etc.<br />This is helpful for dealing with abusive or threatening comments. You can use the IP address provided to identify or block trolls from your site with whatever method you prefer.', WPSS_PLUGIN_NAME); ?> <br /> </label> </li> </ul> </fieldset> <p class="submit"> <input type="submit" name="submit_wpss_contact_options" value="<?php _e('Save Changes'); ?> " class="button-primary" style="float:left;" /> </p> </form> <p> </p> <p><div style="float:right;font-size:12px;">[ <a href="#wpss_top"><?php _e('BACK TO TOP', WPSS_PLUGIN_NAME); ?> </a> ]</div></p> <p> </p> </div> <div style='width:797px;border-style:solid;border-width:1px;border-color:#333333;background-color:#FEFEFE;padding:0px 15px 0px 15px;margin-top:<?php echo $wpss_vert_margins; ?> px;margin-right:<?php echo $wpss_horz_margins; ?> px;float:left;clear:left;'> <p><a name="wpss_let_others_know"><h3><?php _e('Let Others Know About WP-SpamShield', WPSS_PLUGIN_NAME); ?> </h3></a></p> <p><?php _e('<strong>How does it feel to blog without being bombarded by automated comment spam?</strong> If you\'re happy with WP-SpamShield, there\'s a few things you can do to let others know:', WPSS_PLUGIN_NAME); ?> </p> <ul style="list-style-type:disc;padding-left:30px;"> <li><a href="http://www.redsandmarketing.com/blog/wp-spamshield-wordpress-plugin-released/#comments" target="_blank" rel="external" ><?php _e('Leave a Comment'); ?> </a></li> <li><a href="<?php echo WPSS_WP_RATING_URL; ?> " target="_blank" rel="external" ><?php _e('Give WP-SpamShield a good rating on WordPress.org.', WPSS_PLUGIN_NAME); ?> </a></li> <li><a href="<?php echo WPSS_HOME_URL; ?> end-blog-spam/" target="_blank" rel="external" ><?php _e('Place a graphic link on your site.', WPSS_PLUGIN_NAME); ?> </a> <?php _e('Let others know how they can help end blog spam.', WPSS_PLUGIN_NAME); ?> ( </BLOGSPAM> )</li> </ul> <p><a href="<?php echo WPSS_HOME_URL; ?> " style="border-style:none;text-decoration:none;" target="_blank" rel="external" ><img src="<?php echo WPSS_PLUGIN_IMG_URL; ?> /end-blog-spam-button-01-black.png" alt="End Blog Spam! WP-SpamShield Comment Spam Protection for WordPress" width="140" height="66" style="border-style:none;text-decoration:none;margin-top:15px;margin-left:15px;" /></a></p> <p><div style="float:right;font-size:12px;">[ <a href="#wpss_top"><?php _e('BACK TO TOP', WPSS_PLUGIN_NAME); ?> </a> ]</div></p> <p> </p> </div> <div style='width:797px;border-style:solid;border-width:1px;border-color:#003366;background-color:#DDEEFF;padding:0px 15px 0px 15px;margin-top:<?php echo $wpss_vert_margins; ?> px;margin-right:<?php echo $wpss_horz_margins; ?> px;float:left;clear:left;'> <p><a name="wpss_download_plugin_documentation"><h3><?php echo spamshield_doc_txt(); ?> </h3></a></p> <p><?php echo __('Plugin Homepage', WPSS_PLUGIN_NAME) . ' / ' . spamshield_doc_txt(); ?> : <a href="<?php echo WPSS_HOME_URL; ?> " target="_blank" rel="external" >WP-SpamShield</a><br /> <?php _e('Leave a Comment'); ?> : <a href="http://www.redsandmarketing.com/blog/wp-spamshield-wordpress-plugin-released/" target="_blank" rel="external" ><?php _e('WP-SpamShield Release Announcement Blog Post', WPSS_PLUGIN_NAME); ?> </a><br /> <?php _e('WordPress.org Page', WPSS_PLUGIN_NAME); ?> : <a href="<?php echo WPSS_WP_URL; ?> " target="_blank" rel="external" >WP-SpamShield</a><br /> <?php _e('Tech Support / Questions', WPSS_PLUGIN_NAME); ?> : <a href="<?php echo WPSS_HOME_URL; ?> support/" target="_blank" rel="external" ><?php _e('WP-SpamShield Support Page', WPSS_PLUGIN_NAME); ?> </a><br /> <?php _e('End Blog Spam', WPSS_PLUGIN_NAME); ?> : <a href="<?php echo WPSS_HOME_URL; ?> end-blog-spam/" target="_blank" rel="external" ><?php _e('Let Others Know About WP-SpamShield', WPSS_PLUGIN_NAME); ?> !</a><br /> Twitter: <a href="http://twitter.com/WPSpamShield" target="_blank" rel="external" >@WPSpamShield</a><br /> <?php if (spamshield_is_lang_en_us()) { echo 'Need WordPress Consulting? <a href="http://www.redsandmarketing.com/web-design/wordpress-consulting/" target="_blank" rel="external" >We can help.</a><br />'; } ?> <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank" style="margin-top:10px;"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="DFMTNHJEPFFUL"> <input type="image" src="<?php echo WPSS_PLUGIN_IMG_URL; ?> /btn-donate-sm.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" /> <img alt="" border="0" src="<?php echo WPSS_PLUGIN_IMG_URL; ?> /spacer.gif" width="1" height="1" /> </form> </p> <?php echo '<p><strong><a href="http://bit.ly/wp-spamshield-donate" target="_blank" rel="external" >' . __('Donate to WP-SpamShield', WPSS_PLUGIN_NAME) . '</a></strong><br />' . __('WP-SpamShield is provided for free.', WPSS_PLUGIN_NAME) . ' ' . __('If you like the plugin, consider a donation to help further its development.', WPSS_PLUGIN_NAME) . '</p>'; ?> <p><div style="float:right;font-size:12px;">[ <a href="#wpss_top"><?php _e('BACK TO TOP', WPSS_PLUGIN_NAME); ?> </a> ]</div></p> <p> </p> </div> <?php // Recommended Partners - BEGIN - Added in 1.6.9 if (spamshield_is_lang_en_us()) { ?> <div style='width:797px;border-style:solid;border-width:1px;border-color:#333333;background-color:#FEFEFE;padding:0px 15px 0px 15px;margin-top:<?php echo $wpss_vert_margins; ?> px;margin-right:<?php echo $wpss_horz_margins; ?> px;float:left;clear:left;'> <p><h3>Recommended Partners</h3></p> <p>Each of these products or services are ones that we highly recommend, based on our experience and the experience of our clients. We do receive a commission if you purchase one of these, but these are all products and services we were already recommending because we believe in them. By purchasing from these providers, you get quality and you help support the further development of WP-SpamShield.</p></div> <?php $wpss_rpd = array(array('clear:left;', 'RSM_Genesis', 'Genesis WordPress Framework', 'Other themes and frameworks have nothing on Genesis. Optimized for site speed and SEO.', 'Simply put, the Genesis framework is one of the best ways to design and build a WordPress site. Built-in SEO and optimized for speed. Create just about any kind of design with child themes.'), array('', 'RSM_AIOSEOP', 'All in One SEO Pack Pro', 'The best way to manage the code-related SEO for your WordPress site.', 'Save time and effort optimizing the code of your WordPress site with All in One SEO Pack. One of the top rated, and most downloaded plugins on WordPress.org, this time-saving plugin is incredibly valuable. The pro version provides powerful features not available in the free version.')); foreach ($wpss_rpd as $i => $v) { echo '<div style="width:375px;height:280px;border-style:solid;border-width:1px;border-color:#333333;background-color:#FEFEFE;padding:0px 15px 0px 15px;margin-top:' . $wpss_vert_margins . 'px;margin-right:' . $wpss_horz_margins . 'px;float:left;' . $v[0] . '">' . "\n" . '<p><strong><a href="http://bit.ly/' . $v[1] . '" target="_blank" rel="external" >' . $v[2] . '</a></strong></p>' . "\n" . '<p><strong>' . $v[3] . '</strong></p>' . "\n" . '<p>' . $v[4] . '</p>' . "\n" . '<p><a href="http://bit.ly/' . $v[1] . '" target="_blank" rel="external" >Click here to find out more. »</a></p>' . "\n" . '</div>' . "\n"; } } // Recommended Partners - END - Added in 1.6.9 ?> <p style="clear:both;"> </p> <p style="clear:both;"><em><?php $this->wpss_settings_ver_ftr(); ?> </em></p> <p><div style="float:right;clear:both;font-size:12px;">[ <a href="#wpss_top"><?php _e('BACK TO TOP', WPSS_PLUGIN_NAME); ?> </a> ]</div></p> <p> </p> </div> <?php }
public function widget($args, $instance) { $title = !empty($instance['title']) ? sanitize_text_field($instance['title']) : __('Spam', WPSS_PLUGIN_NAME); $style = !empty($instance['style']) ? sanitize_text_field($instance['style']) : '6'; global $wpss_wid_inst; if (!isset($wpss_wid_inst)) { $wpss_wid_inst = 0; } ++$wpss_wid_inst; $style_max = 10; $style_min = 1; if (empty($style) || $style > $style_max || $style < $style_min) { $style = 1; } if ($style > 5) { $size = 's'; $imgn = $style - 5; $ht_x_diff = 7; } else { $size = 'lg'; $imgn = $style; $ht_x_diff = 0; } $count = spamshield_number_format(spamshield_count()); //$count = spamshield_number_format( 1000000 ); /* FOR TESTING & SCREEN SHOTS ONLY */ $byline = spamshield_promo_text(1); $sip1c = substr(RSMP_SERVER_ADDR, 0, 1); $ht_x = $sip1c > '5' ? 2 + $ht_x_diff : 3 + $ht_x_diff; $hreftitle_txt = spamshield_promo_text($ht_x); $blocked_txt = spamshield_blocked_txt(); $blocked_txt_len = spamshield_strlen($blocked_txt); echo $args['before_widget']; echo $args['before_title'] . $title . $args['after_title']; if ($size == 's') { /* Small */ /* Set dynamic CSS values */ $l1_let_spac = '1'; $l2_let_spac = '1'; /* Default Letter Spacing */ $l1_fnt_sz = '18'; $l2_fnt_sz = '10'; /* Default Font Size */ /* Check string length so we can adjust letter spacing and font size to make everything fit nicely, without JS */ if ($blocked_txt_len > 18) { $blocked_txt = 'SPAM BLOCKED'; } elseif ($blocked_txt_len > 16) { $l2_fnt_sz = '7'; } elseif ($blocked_txt_len > 14) { $l2_fnt_sz = '8'; } elseif ($blocked_txt_len > 13) { $l2_fnt_sz = '9'; } ?> <style type="text/css"> .wpsslstatssm_<?php echo $wpss_wid_inst; ?> { width: 120px; height: 50px; overflow: hidden; } .wpsslstatssm_<?php echo $wpss_wid_inst; ?> a { background: transparent; background:url(<?php echo WPSS_PLUGIN_COUNTER_URL; ?> /spamshield-counter-<?php echo $size; ?> -bg-<?php echo $imgn; ?> .png) no-repeat top left; background-position: 0px 0px; border-style: none; color: #FFF !important; cursor: pointer; display: block; font-family: Arial, Helvetica, sans-serif !important; font-weight: bold !important; padding: none; text-align: center; text-decoration: none; width: 120px; height: 50px; padding: 8px 0 0 0; transition: none !important; -moz-transition: none !important; -webkit-transition: none !important; } .wpsslstatssm_<?php echo $wpss_wid_inst; ?> a:hover { text-decoration: none; background:url(<?php echo WPSS_PLUGIN_COUNTER_URL; ?> /spamshield-counter-<?php echo $size; ?> -bg-<?php echo $imgn; ?> .png) no-repeat top left; background-position: 0px -50px; transition: none !important; -moz-transition: none !important; -webkit-transition: none !important; } .wpsslstatssm_<?php echo $wpss_wid_inst; ?> a:active { text-decoration: none; background:url(<?php echo WPSS_PLUGIN_COUNTER_URL; ?> /spamshield-counter-<?php echo $size; ?> -bg-<?php echo $imgn; ?> .png) no-repeat top left; background-position: 0px -100px; transition: none !important; -moz-transition: none !important; -webkit-transition: none !important; } .wpsslstatssm_<?php echo $wpss_wid_inst; ?> .wpsslcountsm_<?php echo $wpss_wid_inst; ?> { color: #FFF !important; display: block; font-family: Arial, Helvetica, sans-serif !important; font-weight: bold !important; font-size: <?php echo $l1_fnt_sz; ?> px; line-height: 140% !important; letter-spacing: <?php echo $l1_let_spac; ?> px !important; padding: 0 0 0 0; white-space: nowrap; } .wpsslstatssm_<?php echo $wpss_wid_inst; ?> .wpsslcountsm2_<?php echo $wpss_wid_inst; ?> { color: #FFF !important; display: block; font-family: Arial, Helvetica, sans-serif !important; font-weight: bold !important; font-size: <?php echo $l2_fnt_sz; ?> px; line-height: 70% !important; letter-spacing: <?php echo $l2_let_spac; ?> px !important; padding: 0 0 0 0; white-space: nowrap; } </style> <div class="wpsslstatssm_<?php echo $wpss_wid_inst; ?> "> <a href="<?php echo WPSS_HOME_URL; ?> " target="_blank" rel="external" title="<?php echo $hreftitle_txt; ?> "><?php printf(__('<strong class="wpsslcountsm_%1$s">%2$s</strong> <strong class="wpsslcountsm2_%3$s">%4$s</strong>', WPSS_PLUGIN_NAME), $wpss_wid_inst, $count, $wpss_wid_inst, $blocked_txt); ?> </a> </div> <?php } else { /* Large */ /* Set dynamic CSS values */ $l1_let_spac = '2'; $l2_let_spac = '1'; $l3_let_spac = '1'; /* Default Letter Spacing */ $l1_fnt_sz = '19'; $l2_fnt_sz = '12'; $l3_fnt_sz = '9'; /* Default Font Size */ /* Check string length so we can adjust letter spacing and font size to make everything fit nicely, without JS */ if ($blocked_txt_len > 18) { $blocked_txt = 'SPAM BLOCKED'; $byline = 'BY WP-SPAMSHIELD'; } elseif ($blocked_txt_len > 16) { $l2_let_spac = 1; $l3_let_spac = 1; $l2_fnt_sz = '9'; $l3_fnt_sz = '7'; } elseif ($blocked_txt_len > 14) { $l2_let_spac = 1; $l3_let_spac = 1; $l2_fnt_sz = '10'; $l3_fnt_sz = '8'; } elseif ($blocked_txt_len > 13) { $l2_let_spac = 1; $l3_let_spac = 1; $l2_fnt_sz = '11'; } ?> <style type="text/css"> .wpsslstats_<?php echo $wpss_wid_inst; ?> { width: 140px; height: 66px; overflow: hidden; } .wpsslstats_<?php echo $wpss_wid_inst; ?> a { background: transparent; background:url(<?php echo WPSS_PLUGIN_COUNTER_URL; ?> /spamshield-counter-<?php echo $size; ?> -bg-<?php echo $imgn; ?> .png) no-repeat top left; background-position: 0px 0px; border-style: none; color: #FFF !important; cursor: pointer; display: block; font-family: Arial, Helvetica, sans-serif !important; font-weight: bold !important; padding: none; text-align: center; text-decoration: none; width: 140px; height: 66px; padding: 8px 0 0 0; transition: none !important; -moz-transition: none !important; -webkit-transition: none !important; } .wpsslstats_<?php echo $wpss_wid_inst; ?> a:hover { text-decoration: none; background:url(<?php echo WPSS_PLUGIN_COUNTER_URL; ?> /spamshield-counter-<?php echo $size; ?> -bg-<?php echo $imgn; ?> .png) no-repeat top left; background-position: 0px -66px; transition: none !important; -moz-transition: none !important; -webkit-transition: none !important;} .wpsslstats_<?php echo $wpss_wid_inst; ?> a:active { text-decoration: none; background:url(<?php echo WPSS_PLUGIN_COUNTER_URL; ?> /spamshield-counter-<?php echo $size; ?> -bg-<?php echo $imgn; ?> .png) no-repeat top left; background-position: 0px -132px; transition: none !important; -moz-transition: none !important; -webkit-transition: none !important; } .wpsslstats_<?php echo $wpss_wid_inst; ?> .wpsslcount_<?php echo $wpss_wid_inst; ?> { color: #FFF !important; display: block; font-family: Arial, Helvetica, sans-serif !important; font-weight: bold !important; font-size: <?php echo $l1_fnt_sz; ?> px; line-height: 140% !important; letter-spacing: <?php echo $l1_let_spac; ?> px !important; padding: 0 0 0 0; white-space: nowrap; } .wpsslstats_<?php echo $wpss_wid_inst; ?> .wpsslcount2_<?php echo $wpss_wid_inst; ?> { color: #FFF !important; display: block; font-family: Arial, Helvetica, sans-serif !important; font-weight: bold !important; font-size: <?php echo $l2_fnt_sz; ?> px; line-height: 80% !important; letter-spacing: <?php echo $l2_let_spac; ?> px !important; padding: 1px 0 0 0; white-space: nowrap; } .wpsslstats_<?php echo $wpss_wid_inst; ?> .wpsslcount3_<?php echo $wpss_wid_inst; ?> { font-family: Arial, Helvetica, sans-serif !important; font-weight: bold !important; font-size: <?php echo $l3_fnt_sz; ?> px; line-height: 70% !important; letter-spacing: <?php echo $l3_let_spac; ?> px !important; padding: 0 0 0 0; white-space: nowrap; position: relative; top: -2px; } </style> <div class="wpsslstats_<?php echo $wpss_wid_inst; ?> "> <a href="<?php echo WPSS_HOME_URL; ?> " target="_blank" rel="external" title="<?php echo $hreftitle_txt; ?> "><?php printf(__('<strong class="wpsslcount_%1$s">%2$s</strong> <strong class="wpsslcount2_%3$s">%4$s</strong> <span class="wpsslcount3_%5$s">%6$s</span>', WPSS_PLUGIN_NAME), $wpss_wid_inst, $count, $wpss_wid_inst, $blocked_txt, $wpss_wid_inst, $byline); ?> </a> </div> <?php } echo $args['after_widget']; }