Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ($auto_gonews == 'manual') {
- $jumpost = get_option('feedcyborg_nump');
- echo '<div style="margin: 10px 0 10px 0; max-width:720px;"><div id="message" class="updated fade"><p><strong>' . $jumpost . ' Post created for Google News successfully.</strong></p></div></div>';
- include_once(ABSPATH . WPINC . '/feed.php');
- $source_news = urlencode('http://news.google.com/news?ned=us&topic=h&output=rss');
- $rss = fetch_feed('http://full-text-rss.aws.af.cm/makefulltextfeed.php?url=' . $source_news . '&max=10&links=remove&exc=&submit=Create+Feed');
- $jumpost = get_option('feedcyborg_nump');
- for ($i = 0; $i < $jumpost; $i++) {
- if (!is_wp_error($rss)) {
- $maxitems = $rss->get_item_quantity($i);
- $rss_items = $rss->get_items(0, $maxitems);
- }
- if ($maxitems == 0);
- else
- foreach ($rss_items as $item) {
- $link_googlenews = $item->get_permalink();
- $item->get_date('j F Y | g:i a');
- $titl = $item->get_title();
- $cont = $item->get_content();
- }
- $fullpost = get_option('feedcyborg_fullpost');
- $title_news = re_char($item->get_title());
- $content_news = re_char($item->get_content());
- $rewrit = get_option('feedcyborg_rewrite');
- if ($rewrit == 'false') {
- $title_news = re_adds(wp_strip_all_tags(re_char($titl))) AND $content_news = re_adds(re_char($cont));
- }
- ;
- $catnya = get_option('feedcyborg_catnews');
- $status_post = get_option('feedcyborg_status');
- if (!empty($post_category))
- $post_category = array_filter($post_category);
- if (empty($author)) {
- $author = 1;
- }
- //============================================= PAYMENT ====================================================//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement