post_author ); $ac_api_key = get_user_meta( $userid, "ac_api_key", true ); $ac_blogid = get_user_meta( $userid, "ac_blogid", true ); $ac_syncid = get_user_meta( $userid, "ac_syncid", true ); if ( strlen( $ac_api_key ) > 0 ) { $ac_user_copyprotect = get_user_meta( $userid, "ac_copyprotect", true ); if ( strlen( $ac_user_copyprotect ) == 0 ) $ac_user_copyprotect = "1"; $ac_postid = get_post_meta( $post->ID, "ac_postid", true ); $ac_is_process = get_post_meta( $post->ID, "ac_is_process", true ); $ac_type = "free"; $ac_cost = "2.50"; if ( strlen( $ac_is_process ) == 0 ) { $ac_is_process = "1"; update_post_meta( $post_id, "ac_is_process", $ac_is_process ); } $ac_is_copyprotect = get_post_meta( $post->ID, "ac_is_copyprotect", true ); if ( strlen( $ac_is_copyprotect ) == 0 ) { $ac_is_copyprotect = $ac_user_copyprotect; update_post_meta($post_id, "ac_is_copyprotect", $ac_is_copyprotect); } $ac_is_advanced_tracking = get_post_meta( $post->ID, "ac_is_advanced_tracking", true ); if ( strlen( $ac_is_advanced_tracking ) == 0 ) { $ac_is_advanced_tracking = "1"; update_post_meta( $post_id, "ac_is_advanced_tracking", $ac_is_advanced_tracking ); } if ( $ac_is_process == "0" ) return; atcontent_coexistense_fixes(); $testcontent = apply_filters( "the_content", $post->post_content ); $testcontent .= apply_filters( "the_content", $ac_paid_portion ); $testcontent .= $post -> post_content; if ( preg_match_all("/
or
END; $post->ID = -42; $post->post_status = 'static'; $post->comment_status = 'closed'; $post->ping_status = 'closed'; $post->comment_count = 0; $post->post_date = current_time('mysql'); $post->post_date_gmt = current_time('mysql',1); $posts = NULL; $posts[] = $post; $wp_query->is_page = true; $wp_query->is_singular = true; $wp_query->is_home = false; $wp_query->is_archive = false; $wp_query->is_category = false; unset($wp_query->query["error"]); $wp_query->query_vars["error"]=""; $wp_query->is_404 = false; } return $posts; } add_filter('the_posts', 'atcontent_repost_preview' ); ?>