Advertisement
Th3-822

[rapidleech][d] junocloud_me

Jan 11th, 2016
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.14 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 junocloud_me extends GenericXFS_DL {
  12.     public $pluginVer = 10;
  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.  
  20.         // Fix link and check for the dlX. redirect
  21.         $link = preg_replace('@(?<=://)dl\d*\.(junocloud\.me)(?=/)@i', '$1', $link);
  22.         $test = explode("\r\n\r\n", $this->GetPage($link), 2);
  23.         if (preg_match('@\nLocation: (https?://dl\d*\.junocloud\.me/\w{12}(?=(?:[/\.]|(?:\.html?))?))@i', $test[0], $redir)) $link = $redir[1];
  24.  
  25.         $this->Start($link);
  26.     }
  27. }
  28.  
  29. // Written by Th3-822.
  30.  
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement