archived == '1' ) { if ( file_exists( WP_CONTENT_DIR . '/blog-suspended.php' ) ) return WP_CONTENT_DIR . '/blog-suspended.php'; else wp_die( __( 'This site has been archived or suspended.' ), '', array( 'response' => 410 ) ); } 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 $email_sent = $error1 = $error2 = $reason = false; if ( isset( $_POST['wp-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'] ) { $resp = ust_recaptcha_check_answer( $recaptcha['privkey'], $_SERVER["REMOTE_ADDR"], $_POST["g-recaptcha-response"] ); if ( ! $resp ) { $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"; $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 ); 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' ); //fixes css urls to be from home site so they are not blocked function override_css_url( $url ) { return str_replace( site_url( '/' ), network_site_url( '/' ), $url ); } add_filter( 'style_loader_src', 'override_css_url' ); /** * Output the login page header. * * @param string $title Optional. WordPress Log In Page title to display in