Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 2nd, 2012  |  syntax: PHP  |  size: 2.53 KB  |  views: 308  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <body>
  2.  
  3. <br /><br /><div align="center">
  4.    
  5.     <h1>ALL THE JIZZ!</h1>
  6.    
  7.     <form name="x" method="POST" action="<?php echo $_SERVER['PHP SELF'] ?>">  
  8.        
  9.                 <input name="url" placeholder="Url..." type="text" />
  10.                 <input type="checkbox" name="down" class="checkbox" value="1" />
  11.          
  12.                 <input type="submit" name="submit"  class="search" value="    Search    " />
  13.            
  14.      </table>
  15.      </form>
  16.  
  17. </div>
  18.  
  19. <br /><br />
  20. <?php
  21. ini_set('memory_limit', '-1');
  22.  
  23. if ($_GET["url"]) {
  24.  
  25.    
  26.   $url = $_GET['url'];
  27.   $limit = strip_tags($_GET['limit']);
  28.   $type = strip_tags($_POST['type']);
  29.   $x = 0;
  30.   $start = 0;
  31.  
  32.   if (!$limit) { $limit = 100; }
  33.  
  34.     $url = 'http://www.youjizz.com';
  35.     $data = file_get_contents($url);
  36.  
  37.  
  38.         $pattern = "/cdna.pics.youjizz.com[\"']*([^\"\']*(.jpg|.gif|jpeg))[\"']?/i";
  39.         preg_match_all($pattern, $data, $videos);
  40.  
  41.     echo "<div align='center'>";
  42.  
  43.    
  44.     foreach ($videos[1] as $vid) {
  45.        
  46.        
  47.       $part1 = explode ("/", $vid);
  48.       $part2 = explode (".", $part1[2]);
  49.          
  50.       if ($part2[0] == 'xhamster' || $part2[0] == 'tube8' || $part2[0] == 'upload' || $part2[0] == 'vid2c')  {
  51.          
  52.           $link = "http://cdnb.videos.youjizz.com/$part2[0].$part2[1].flv"; }
  53.           else { $link = "http://cdnb.videos.youjizz.com/$part2[0].flv"; }
  54.      
  55.      
  56.      if ($part2[0] != 'images' && $part2[0] != 'spankwire') {
  57.      
  58.      if ($x > $start) {    
  59.      $data = file_get_contents($link);
  60.      $new_flv_path = "download/download-$x.flv";
  61.      file_put_contents($new_flv_path, $data); }
  62.      
  63.      
  64.      
  65.       if ($x == $limit) { break; }
  66.       $x++; }}
  67.    
  68.     echo "</div>"; }
  69.    
  70.    
  71.    
  72.    
  73. if ($_POST["submit"]) {
  74.  
  75.   $url = strip_tags($_POST['url']);
  76.   $down = strip_tags($_POST['down']);
  77.  
  78.   $x = 0;
  79.  
  80.   if (!$limit) { $limit = 1; }
  81.  
  82.  
  83.     $data = file_get_contents($url);
  84.  
  85.  
  86.         $pattern = "/xmoov test: file=[\"']?([^\"']?.*(flv))[\"']?/i";
  87.         preg_match_all($pattern, $data, $videos);
  88.  
  89.     echo "<div align='center'>";
  90.  
  91.    
  92.     $link2 =  $videos[1][0];
  93.        
  94.       $link = "http://cdnb.videos.youjizz.com/$link2";
  95.         echo "Link: <a href='$link'>$link</a>";
  96.      
  97.    if ($down == '1') {
  98.       $data = file_get_contents($link);
  99.       $new_flv_path = "download/$link2";
  100.       file_put_contents($new_flv_path, $data); }
  101.      
  102.        
  103.      
  104.      
  105.    
  106.    
  107.     echo "</div>";  }
  108.    
  109.     ?>
  110.  
  111. </body>