archived == '1') graceful_fail(__('This blog has been archived.')); require_once( ABSPATH . WPINC . '/pluggable.php' ); //setup proper urls if ( version_compare($wp_version, '3.0.9', '>') ) { $ust_admin_url = network_admin_url('settings.php?page=ust'); } else { $ust_admin_url = network_admin_url('ms-admin.php?page=ust'); } //process form if (isset($_POST['spam-submit']) && !get_option('ust_email_sent')) { $reason = wp_filter_nohtml_kses(stripslashes(trim($_POST['reason']))); if (strlen($reason) < 20) $error1 = '

'.__("Please enter a valid reason.", 'ust').'

'; //check reCAPTCHA $recaptcha = get_site_option('ust_recaptcha'); if ($recaptcha['privkey']) { require_once(WP_PLUGIN_DIR . '/anti-splog/includes/recaptchalib.php'); $resp = rp_recaptcha_check_answer($recaptcha['privkey'], $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { $error2 = '

'.__("The reCAPTCHA wasn't entered correctly. Please try again.", 'ust').'

'; } } if (!$error1 && !$error2) { $admin_email = get_site_option( "admin_email" ); $user_email = get_option('admin_email'); $review_url = $ust_admin_url . "&tab=splogs&bid=$blog_id"; $unspam_url = network_admin_url("edit.php?action=confirm&action2=unspamblog&id=$blog_id&ref=" . urlencode($ust_admin_url) . "&msg=" . urlencode( sprintf( __( "You are about to unspam the blog %s" ), get_bloginfo('name') ) ) ); $message_headers = "MIME-Version: 1.0\n" . "From: $user_email\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n"; $subject = sprintf(__('Splog Review Request: %s', 'ust'), get_bloginfo('url')); $message = sprintf(__("Someone is disputing the spam status for the blog %s (%s).\nHere is their reason:\n_______________________\n\n%s\n\n_______________________\n", 'ust'), get_bloginfo('name'), get_bloginfo('url'), $reason); $message .= sprintf(__("Review: %s\n", 'ust'), $review_url); $message .= sprintf(__("Unspam: %s\n", 'ust'), $unspam_url); wp_mail($admin_email, $subject, $message, $message_headers); //save that the email was sent update_option('ust_email_sent', '1'); $email_sent = true; } } $auto_spammed = get_option('ust_auto_spammed'); ?> > <?php echo $current_site->site_name; ?> › <?php _e('Blog Spammed') ?>

detailed reasons using the form below:', 'ust'); ?>

var RecaptchaOptions = { theme : 'white', lang : '{$recaptcha['lang']}' , tabindex : 30 };"; echo '

'; echo $error2; echo '
'; echo rp_recaptcha_get_html($recaptcha['pubkey']); echo '
 
'; } ?>

site_name); ?>