Advertisement
Th3-822

[rapidleech][d] filejoker_net

Jun 25th, 2016
618
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.36 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 filejoker_net 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?://(?:[\w\-]+\.)+[\w\-]+(?:\:\d+)?/\w{72}/[^\t\r\n<>\'\"\?\&]+@i';
  23.  
  24.         $this->Start($link);
  25.     }
  26.  
  27.     protected function sendLogin($post) {
  28.         html_error('This Plugin Only Supports Login With Cookies.');
  29.     }
  30.  
  31.     protected function isLoggedIn() {
  32.         $page = $this->GetPage($this->purl.'profile', $this->cookie, 0, $this->purl.'login');
  33.         if (stripos($page, '>Logout</a>') === false) return false;
  34.         return $page;
  35.     }
  36. }
  37.  
  38. // Written by Th3-822.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement