Advertisement
Th3-822

[rapidleech][d] 4sync_com

Jan 21st, 2017
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.81 KB | None | 0 0
  1. <?php
  2.  
  3. if (!defined('RAPIDLEECH')) {
  4.     require_once('index.html');
  5.     exit;
  6. }
  7.  
  8. class d4sync_com extends DownloadClass {
  9.     public function Download($link) {
  10.         if (!preg_match('@(https?://www\.4sync\.com)/file/([\w\-\.]+)/@i', preg_replace('@://(?:[\w\-]+\.)*4sync\.com/\w+/@i', '://www.4sync.com/file/', $link, 1), $fid)) html_error('Invalid link?.'); // [^/\"\'\s<>?]+
  11.         $link = $GLOBALS['Referer'] = $fid[0];
  12.         $fid = empty($fid[3]) ? $fid[2] : $fid[3];
  13.  
  14.         $DL_regexp = '@https?://dc\d+\.4sync\.com/download/[^/\"\'\s<>]+/[^/\"\'\s<>]+@i';
  15.         $cookie = array('4langcookie' => 'en');
  16.  
  17.         $page = $this->GetPage($link, $cookie);
  18.         if (!preg_match($DL_regexp, $page, $DL)) html_error('Download-Link Not Found.');
  19.  
  20.         return $this->RedirectDownload($DL[0], '4sync_placeholder');
  21.     }
  22. }
  23.  
  24. // [21-1-2017] Written by Th3-822
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement