Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dom = new DOMDocument();
- $dom -> loadHTMLFile('http://sakhalin.name/g.php');
- $img_a = $dom -> getElementsByTagName('img');
- if (empty($img_a)) {
- return;
- }
- echo '<html><head><meta charset="utf-8"></head><body>';
- foreach ($img_a as $img) {
- $src = $img->getAttribute('src');
- $alt = $img->getAttribute('alt');
- echo '<p><img src="http://lunach.ru/?cum=&url=' . htmlentities($src). '&tpl=vk"><br /><i>' . $alt . '</i></p>';
- }
- echo '</body></html>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement