Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. <center>
  2.  
  3. <?php
  4.  
  5. $form = '
  6. <form action="scrap-teks-img-video-audio.php" method="POST">
  7. <input type="transparent" name="anti"><br>
  8. <input type="hidden" name="f">
  9. </center>
  10. </form>';
  11.  
  12. print $form;
  13. ?>
  14. <div id="spoiler">
  15. <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>
  16. <div id="show" style="border: px solid white; display: none; margin: 2px; padding: 2px; width: 98%;">
  17. <?php
  18.  
  19. function sedx($t)
  20. {
  21. $sed = $t;
  22. $sed = str_replace('<span class="author vcard">', '<p hidden>', $sed);
  23. return $sed;
  24. }
  25.  
  26. if(isset($_POST['f'])){
  27. $anti = $_POST['anti'];
  28. $curl = curl_init($anti);
  29. curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
  30. $page = curl_exec($curl);
  31. if(curl_errno($curl))
  32. {
  33. echo 'error: ' . curl_error($curl);
  34. exit;
  35. }
  36. curl_close($curl);
  37.  
  38.  
  39. $regex = '/<h1 class="entry-title">(.*?)<h3 class="jp-relatedposts-headline">/s';
  40. if ( preg_match($regex, $page, $hasil) )
  41.  
  42. echo sedx($hasil[0]);
  43.  
  44. else
  45. print "gagal";
  46.  
  47. ?></div></div></div>
  48. <div id="spoiler">
  49. <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>
  50. <div id="show" style="border: px solid white; display: none; margin: 2px; padding: 2px; width: 98%;">
  51. <?php
  52.  
  53. #gambar
  54. print '<hr>';
  55. $html = file_get_contents($anti);
  56. preg_match( '@data-orig-file="([^"]+)"@' , $html, $match );
  57. $gambar = array_pop($match);
  58.  
  59. echo $gambar;
  60. }
  61.  
  62.  
  63.  
  64. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement