Advertisement
plas71k

php-lockit file decoded

Dec 7th, 2012
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.88 KB | None | 0 0
  1. <?php
  2. if ($auto_gonews == 'manual') {
  3.     $jumpost = get_option('feedcyborg_nump');
  4.     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>';
  5.     include_once(ABSPATH . WPINC . '/feed.php');
  6.     $source_news = urlencode('http://news.google.com/news?ned=us&topic=h&output=rss');
  7.     $rss         = fetch_feed('http://full-text-rss.aws.af.cm/makefulltextfeed.php?url=' . $source_news . '&max=10&links=remove&exc=&submit=Create+Feed');
  8.     $jumpost     = get_option('feedcyborg_nump');
  9.     for ($i = 0; $i < $jumpost; $i++) {
  10.         if (!is_wp_error($rss)) {
  11.             $maxitems  = $rss->get_item_quantity($i);
  12.             $rss_items = $rss->get_items(0, $maxitems);
  13.         }
  14.         if ($maxitems == 0);
  15.         else
  16.             foreach ($rss_items as $item) {
  17.                 $link_googlenews = $item->get_permalink();
  18.                 $item->get_date('j F Y | g:i a');
  19.                 $titl = $item->get_title();
  20.                 $cont = $item->get_content();
  21.             }
  22.         $fullpost     = get_option('feedcyborg_fullpost');
  23.         $title_news   = re_char($item->get_title());
  24.         $content_news = re_char($item->get_content());
  25.         $rewrit       = get_option('feedcyborg_rewrite');
  26.         if ($rewrit == 'false') {
  27.             $title_news = re_adds(wp_strip_all_tags(re_char($titl))) AND $content_news = re_adds(re_char($cont));
  28.         }
  29.         ;
  30.         $catnya      = get_option('feedcyborg_catnews');
  31.         $status_post = get_option('feedcyborg_status');
  32.         if (!empty($post_category))
  33.             $post_category = array_filter($post_category);
  34.         if (empty($author)) {
  35.             $author = 1;
  36.         }
  37. //============================================= PAYMENT ====================================================//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement