Advertisement
Th3-822

[rapidleech][d] d_h_st

Jul 26th, 2015
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. <?php
  2.  
  3. if (!defined('RAPIDLEECH')) {
  4.     require_once('index.html');
  5.     exit();
  6. }
  7.  
  8. class d_h_st extends DownloadClass {
  9.     public function Download($link) {
  10.         if (stripos($link, '://d-h.st/') === false) {
  11.             $link = parse_url($link);
  12.             $link['host'] = 'd-h.st';
  13.             $link = rebuild_url($link);
  14.         }
  15.         $page = $this->GetPage($link);
  16.         is_present($page, 'The file you were looking for could not be found', 'File Not Found.');
  17.  
  18.         if (!preg_match('@https?://fs\d*\.d-h\.st/download/\w+/\w+/[^\s<>\'\"]+@i', $page, $dl)) html_error('Download Link Not Found');
  19.         return $this->RedirectDownload($dl[0], basename(urldecode(parse_url($dl[0], PHP_URL_PATH))), 0, 0, $link);
  20.     }
  21. }
  22.  
  23. // [26-7-2015] Rewritten by Th3-822.
  24.  
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement