Advertisement
Th3-822

[rapidleech][d] novafile_com

May 17th, 2015
609
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.37 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 novafile_com extends GenericXFS_DL {
  12.     public $pluginVer = 18;
  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->httpsOnly = true; // Force https on all the site, supersedes $this->sslLogin when true
  17.         $this->sslLogin = false; // Force https on login post only.
  18.         $this->embedDL = false; // Try to unpack player's js for finding download link. (Only hosts with video player)
  19.         $this->unescaper = false; // Enable JS unescape decoder.
  20.  
  21.         // Custom Download Regexp
  22.         $this->DLregexp = '@https?://s\d+\.novafile\.com/\w{72}/[^\t\r\n<>\'\"\?\&]+@i';
  23.  
  24.         // Extra FreeDL Error Messages.
  25.         $this->cErrsFDL = array('This file can only be downloaded by Premium Members');
  26.  
  27.         $this->Start($link);
  28.     }
  29.  
  30.     // Edited to fix login url
  31.     protected function sendLogin($post) {
  32.         $page = $this->GetPage((!empty($this->sslLogin) ? 'https://'.$this->host.'/' : $this->purl) . 'login', $this->cookie, $post);
  33.         return $page;
  34.     }
  35. }
  36.  
  37. // Written by Th3-822.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement