domain; $register_url = "http://premium.wpmudev.org/wp-admin/profile.php?page=ustapi&domain=$domain"; function ust_trim_array( $input ) { if ( ! is_array( $input ) ) { return trim( $input ); } return array_map( 'ust_trim_array', $input ); } //handle notice dismissal if ( isset( $_GET['dismiss'] ) ) { update_site_option( 'ust_key_dismiss', strtotime( "+1 month" ) ); ?>

' . __( sprintf( 'There was a problem with the API key you entered: "%s" Fix it here»', $api_response, $register_url ), 'ust' ) . '

'; } else if ( ! $api_response ) { $_POST['ust']['api_key'] = ''; echo '

' . __( 'There was a problem connecting to the API server. Please try again later.', 'ust' ) . '

'; } $_POST['ust']['hide_adminbar'] = isset( $_POST['ust']['hide_adminbar'] ) ? 1 : 0; //handle checkbox if ( isset( $_POST['ust']['keywords'] ) && trim( $_POST['ust']['keywords'] ) ) { $_POST['ust']['keywords'] = explode( "\n", trim( $_POST['ust']['keywords'] ) ); } else { $_POST['ust']['keywords'] = ''; } update_site_option( "ust_settings", $_POST['ust'] ); $ust_signup['active'] = isset( $_POST['ust_signup'] ) ? 1 : 0; $ust_signup['expire'] = time() + 86400; //extend 24 hours $ust_signup['slug'] = 'signup-' . substr( md5( time() ), rand( 0, 30 ), 3 ); //create new random signup url update_site_option( 'ust_signup', $ust_signup ); update_site_option( "ust_recaptcha", ust_trim_array( $_POST['recaptcha'] ) ); //process user questions $qa['questions'] = explode( "\n", trim( $_POST['ust_qa']['questions'] ) ); $qa['answers'] = explode( "\n", trim( $_POST['ust_qa']['answers'] ) ); $i = 0; foreach ( $qa['questions'] as $question ) { if ( trim( $qa['answers'][ $i ] ) ) { $ust_qa[] = array( trim( $question ), trim( $qa['answers'][ $i ] ) ); } $i ++; } update_site_option( "ust_qa", $ust_qa ); do_action( 'ust_settings_process' ); echo '

' . __( 'Settings Saved!', 'ust' ) . '

'; } $ust_settings = get_site_option( "ust_settings" ); $ust_signup = get_site_option( 'ust_signup' ); $ust_recaptcha = get_site_option( "ust_recaptcha" ); $ust_qa = get_site_option( "ust_qa" ); if ( ! $ust_qa ) { $ust_qa = array( array( 'What is the answer to "Ten times Two" in word form?', 'Twenty' ), array( 'What is the last name of the current US president?', 'Obama' ) ); } if ( is_array( $ust_qa ) && count( $ust_qa ) ) { foreach ( $ust_qa as $pair ) { $questions[] = $pair[0]; $answers[] = $pair[1]; } } //create salt if not set if ( ! get_site_option( "ust_salt" ) ) { update_site_option( "ust_salt", substr( md5( time() ), rand( 0, 15 ), 10 ) ); } if ( ! $ust_settings['api_key'] ) { $style = ' style="background-color:#FF7C7C;"'; } else { $style = ' style="background-color:#ADFFAA;"'; } ?>

$domain) of this server to enable live splog checking. Get your API key and register your server here. You must be a current WPMU DEV Premium subscriber to use our API.", 'ust' ) ?>

How It Works - When a user completes the signup for a blog (email activated) or publishes a blog post it will send all kinds of blog and signup info to our server here where we will rate it based on our secret ever-adjusting logic. Our API will then return a splog Certainty number (0%-100%) to your server. If that number is greater than the sensitivity preference you set in the plugin settings (80% default) then the blog gets auto-spammed. Since the blog was actually created, it will still show up in the site admin (as spammed) so you can unspam later if there was a mistake (and our service will learn from that). The API (especially the post checking part) has proven to be more than 98% effective at removing splogs. Enable it today to save countless hours managing your network!", 'ust' ) ?>

* size="45" value=""/>


-






http://$domain/signup-XXX/. To use this you may need to make some slight edits to your main theme's template files. Replace any hardcoded links to wp-signup.php with this function: <?php ust_wpsignup_url(); ?> Within post or page content you can insert the [ust_wpsignup_url] shortcode, usually in the href of a link.", 'ust' ); ?>



uggestion".', 'ust' ); ?>

Post Indexer plugin to enable keyword flagging.', 'ust' ); ?>



reCAPTCHA website.', 'ust' ) ?>

NOTE: Even if you don\'t use reCAPTCHA on the signup form, you should setup an API key anyway to prevent spamming from the splog review forms.', 'ust' ) ?>

* free reCAPTCHA key.', 'ust' ) ?>