Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <center>
- <?php
- $form = '
- <form action="scrap-teks-img-video-audio.php" method="POST">
- <input type="transparent" name="anti"><br>
- <input type="hidden" name="f">
- </center>
- </form>';
- print $form;
- ?>
- <div id="spoiler">
- <div><input onclick="if (this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = ''; this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = 'none'; this.innerText = ''; this.value = 'hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = 'none'; this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = ''; this.innerText = ''; this.value = 'open'; }" name="button" type="button" value="text" /></div>
- <div id="show" style="border: px solid white; display: none; margin: 2px; padding: 2px; width: 98%;">
- <?php
- function sedx($t)
- {
- $sed = $t;
- $sed = str_replace('<span class="author vcard">', '<p hidden>', $sed);
- return $sed;
- }
- if(isset($_POST['f'])){
- $anti = $_POST['anti'];
- $curl = curl_init($anti);
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
- $page = curl_exec($curl);
- if(curl_errno($curl))
- {
- echo 'error: ' . curl_error($curl);
- exit;
- }
- curl_close($curl);
- $regex = '/<h1 class="entry-title">(.*?)<h3 class="jp-relatedposts-headline">/s';
- if ( preg_match($regex, $page, $hasil) )
- echo sedx($hasil[0]);
- else
- print "gagal";
- ?></div></div></div>
- <div id="spoiler">
- <div><input onclick="if (this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = ''; this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = 'none'; this.innerText = ''; this.value = 'hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = 'none'; this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = ''; this.innerText = ''; this.value = 'open'; }" name="button" type="button" value="gambar"" /></div>
- <div id="show" style="border: px solid white; display: none; margin: 2px; padding: 2px; width: 98%;">
- <?php
- #gambar
- print '<hr>';
- $html = file_get_contents($anti);
- preg_match( '@data-orig-file="([^"]+)"@' , $html, $match );
- $gambar = array_pop($match);
- echo $gambar;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement