" . sprintf( __( 'Anti-Splog is not fully enabled. You must enter your WPMU DEV Premium API key to enable the powerful blog and signup checking. More info»', 'ust' ), "$ust_admin_url-settings", 'http://premium.wpmudev.org/project/anti-splog' ) . ' ' . __( 'Dismiss', 'ust' ) . "
' . $errmsg . '
'; } echo ''; echo '' . $errmsg . '
'; } else { echo ''; } echo ''; echo ''; } else if ( $ust_settings['signup_protect'] == 'questions' ) { $ust_qa = get_site_option( "ust_qa" ); if ( is_array( $ust_qa ) && count( $ust_qa ) ) { $qkey = rand( 0, count( $ust_qa ) - 1 ); //encrypt the answer field name to make it harder for sploggers to guess. Changes every hour & different for every site. $salt = get_site_option( "ust_salt" ); $datesalt = strtotime( date( 'Y-m-d H:00:00' ) ); $field_name = 'qa_' . md5( $qkey . $salt . $datesalt ); echo ''; if ( $errmsg = $errors->get_error_message( 'qa' ) ) { echo '
' . $errmsg . '
'; } echo stripslashes( $ust_qa[ $qkey ][0] ); echo ' . ')
' . __( 'For more information:' ) . '
' . '' . __( 'Usage Instructions', 'ust' ) . '
' . '' . __( 'Register Site', 'ust' ) . '
' ); } function ust_test_regex() { global $wpdb; $response = ''; if ( false === @preg_match( stripslashes( $_POST['regex'] ), 'thisisjustateststring' ) ) { die( json_encode( array( 'status' => 0, 'data' => __( 'Please enter a valid PCRE Regular Expression with delimiters.', 'ust' ) ) ) ); } if ( $_POST['type'] == 'domain' ) { $domains = $wpdb->get_col( "SELECT SUBSTRING_INDEX(domain, '.', 1) as domain FROM $wpdb->blogs ORDER BY registered DESC LIMIT 10000" ); $result = preg_grep( stripslashes( $_POST['regex'] ), $domains ); if ( count( $result ) ) { $response = '