function deleteFeeds($feed_ids, $delete_posts = false, $defele_feeds = false)
 {
     global $wpdb;
     $feeds_cnt = count($feed_ids);
     if ($feeds_cnt > 0) {
         @set_time_limit(60 * 60);
         ob_end_flush();
         ob_implicit_flush();
         echo "<div id=\"message\" class=\"updated fade\"><p>\n";
         echo "Deleting. Please wait...";
         flush();
         if ($delete_posts) {
             $to_delete = "(";
             $cnt = count($feed_ids);
             for ($i = 0; $i < $cnt; $i++) {
                 $to_delete .= "'" . $this->feeds[$feed_ids[$i]]['url'] . "', ";
             }
             $to_delete .= ")";
             $to_delete = str_replace(", )", ")", $to_delete);
             $post_ids = $wpdb->get_col("SELECT post_id FROM {$wpdb->postmeta} WHERE meta_key = 'cyberseo_rss_source' AND meta_value IN {$to_delete}");
             if (count($post_ids) > 0) {
                 foreach ($post_ids as $post_id) {
                     @wp_delete_post($post_id, true);
                     echo str_repeat(' ', 512);
                     flush();
                 }
             }
         }
         if ($defele_feeds) {
             $feeds = array();
             $feeds_cnt = count($this->feeds);
             for ($i = 0; $i < $feeds_cnt; $i++) {
                 if (!in_array($i, $feed_ids)) {
                     $feeds[] = $this->feeds[$i];
                 }
             }
             $this->feeds = $feeds;
             sort($this->feeds);
         }
         csyn_set_option(CSYN_SYNDICATED_FEEDS, $this->feeds, '', 'yes');
         echo " Done!</p></div>\n";
     }
 }
    }
    $csyn_syndicator->global_options['interval'] = abs((int) $_POST['update_interval']);
    $csyn_syndicator->global_options['post_status'] = $_POST['post_status'];
    $csyn_syndicator->global_options['comment_status'] = $_POST['post_comments'];
    $csyn_syndicator->global_options['ping_status'] = $_POST['post_pings'];
    $csyn_syndicator->global_options['post_author'] = intval($_POST['post_author']);
    $csyn_syndicator->global_options['base_date'] = $_POST['post_publish_date'];
    $csyn_syndicator->global_options['max_items'] = abs((int) $_POST['max_items']);
    $csyn_syndicator->global_options['post_category'] = @$_POST['post_category'];
    $csyn_syndicator->global_options['duplicate_check_method'] = $_POST['duplicate_check_method'];
    $csyn_syndicator->global_options['undefined_category'] = $_POST['undefined_category'];
    $csyn_syndicator->global_options['date_min'] = $date_min;
    $csyn_syndicator->global_options['date_max'] = $date_max;
    $csyn_syndicator->global_options['insert_media_attachments'] = $_POST['insert_media_attachments'];
    $csyn_syndicator->global_options['convert_encoding'] = @$_POST['convert_encoding'];
    $csyn_syndicator->global_options['store_images'] = @$_POST['store_images'];
    $csyn_syndicator->global_options['include_post_footers'] = @$_POST['include_post_footers'];
    $csyn_syndicator->global_options['embed_videos'] = @$_POST['embed_videos'];
    $csyn_syndicator->global_options['create_tags'] = @$_POST['create_tags'];
    $csyn_syndicator->global_options['post_tags'] = $_POST['post_tags'];
    $csyn_syndicator->global_options['post_footer'] = $_POST['post_footer'];
    csyn_set_option(CSYN_FEED_OPTIONS, $csyn_syndicator->global_options, '', 'yes');
    $csyn_syndicator->showMainPage(false);
} elseif (isset($_POST["alter_default_settings"])) {
    $csyn_syndicator->showSettings(false, $csyn_syndicator->global_options);
} else {
    $csyn_syndicator->showMainPage(false);
}
?>
</div>