waptik

view.php

May 16th, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.32 KB | None | 0 0
  1. <?php
  2. // Start Creating Curl Functions
  3.  
  4. include'functions.php';
  5.  
  6. if(isset($_GET['view'])&&($_GET['id'])){
  7. $dir = htmlspecialchars($_GET['cat']);
  8. $nama = htmlspecialchars($_GET['view']);
  9. $id = htmlspecialchars($_GET['id']);
  10. $scrid = htmlspecialchars($_GET['scr']);
  11. $judul = htmlspecialchars($_GET['view']);
  12. $judul = ucfirst(str_replace('_',' ',$judul));
  13. $htitle = "".ucwords($judul)." Download - NuDeCitY.Tk";
  14.  
  15. // End of Curl Functions!
  16.  
  17. include 'head.php';
  18. // Now Start to Grab!
  19. $url = 'http://mobile.spankwire.com/video/show/title/'.$nama.'/id/'.$id.'';
  20. $result = get_contents($url);
  21. $hasil = cut($result,'<div class="thumb" style="margin-top: 10px;">','<div class="clear"></div>');
  22. $konten = $hasil[0];
  23. preg_match("#http://cdn[^\.]+\.image.spankwire.phncdn.com/[^\.]+\.jpg#",$konten,$thumb);
  24. $img = $thumb[0];
  25. $scr = str_replace(array('1.jpg', '2.jpg', '3.jpg', '4.jpg', '5.jpg', '6.jpg', '7.jpg', '8.jpg', '9.jpg', '10.jpg'), '', $img);
  26. $body = explode('</div>',$konten);
  27. $length = strip_tags($body[1]);
  28. $rate = strip_tags($body[2]);
  29. $views = strip_tags($body[3]);
  30. $mp = explode('<a href="',$body[4]);
  31. $mpe = explode('"',$mp[1]);
  32. $gp = explode('<a href="',$body[5]);
  33. $gpe = explode('"',$gp[1]);
  34. $link1 = $mpe[0];
  35. $link2 = $gpe[0];
  36. if($nama=="")
  37. {
  38. header('Location: http://gumchat.net/?ref=ghana');
  39. }
  40.  
  41. elseif("$nama")
  42. {
  43. echo '<div class="title" align="center">Download '.$judul.'</div>';
  44. if($_GET['scr']=="")
  45. {
  46. echo '<div class="border" align="center"><img src="'.$thumb[0].'" alt="'.$judul.'" style="border:2px solid #ececec;padding:2px;border-radius:12px;"/></div>';
  47.  
  48. }
  49. $topl=$tops[rand(0,count($tops)-1)];
  50.  
  51. echo '<div class="title" align="center">Video Details</div><div class="menu">&#187; '.$rate.'<br/>&#187; '.$length.'<br/>&#187; '.$views.'<br/><center>&#187;Server1(Fast and Secure): <a href="'.$topl.'>Download in 3GP</a> - <a href="'.$topl.'">Download in MP4</a> - <a href="'.$topl.'">Download in HD</a><br/>&#187;Server2(High Resolution): <a href="'.$link2.'">Download in 3GP</a> - <a href="'.$link1.'">Download in MP4</a> - <a href="'.$topl.'">Download in HD</a></center>';
  52. echo '<center><div class="fb-like" data-href="" data-send="true" data-width="450" data-show-faces="false"></div></center>';
  53. echo'</div>';
  54.  
  55. }
  56. include 'foot.php';
  57. }else{
  58. header('Location: http://gumchat.net/?ref=ghana');
  59.  
  60. }
  61.  
  62. ?>
Advertisement
Add Comment
Please, Sign In to add comment