Advertisement
Th3-822

[rapidleech][d] mightyupload_com.php

Sep 3rd, 2013
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.26 KB | None | 0 0
  1. <?php
  2.  
  3. if (!defined('RAPIDLEECH')) {
  4.     require_once('index.html');
  5.     exit();
  6. }
  7.  
  8. if (!file_exists(HOST_DIR . 'download/GenericXFS_DL.php')) html_error('Cannot load "'.htmlentities(HOST_DIR).'download/GenericXFS_DL.php" (File doesn\'t exists)');
  9. require_once(HOST_DIR . 'download/GenericXFS_DL.php');
  10.  
  11. class mightyupload_com extends GenericXFS_DL {
  12.     public $pluginVer = 6;
  13.     public function Download($link) {
  14.         $this->wwwDomain = false; // Switch to true if filehost forces it's domain with www.
  15.         $this->cname = 'xfss'; // Session cookie name
  16.         $this->sslLogin = false; // Force https on login.
  17.         $this->embedDL = false; // Try to unpack player's js for finding download link. (Only hosts with video player)
  18.         $this->unescaper = false; // Enable JS unescape decoder.
  19.         $this->customDecoder = true; // Enable pageDecoder()
  20.  
  21.         $this->Start($link);
  22.     }
  23.  
  24.     // Remove player links
  25.     protected function pageDecoder() {
  26.         if (strpos($this->page, "jwplayer('container').setup({") !== false) {
  27.             // Removing the http will avoid to be catched by the download regexp and download with a wrong name.
  28.             $this->page = str_replace("file: 'http", "file: 'xxxx", $this->page, $count);
  29.             return ($count > 0 ? true : false);
  30.         }
  31.         return false;
  32.     }
  33. }
  34.  
  35. // Written by Th3-822.
  36.  
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement