Guest User

Untitled

a guest
Nov 29th, 2016
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. <?php
  2.  
  3. class dl_yunfile_com extends Download {
  4.  
  5. public function CheckAcc($cookie){
  6. $data = $this->lib->curl("http://www.yunfile.com/user/edit.html", "language=en_us;{$cookie}", "");
  7. if(stristr($data, 'bottom ">Premium Member')) return array(true, "Until ".$this->lib->cut_str($data, '(Expire:',')'));
  8. else if(stristr($data, 'Current Password:') && !stristr($data, 'bottom ">Premium Member')) return array(false, "accfree");
  9. else return array(false, "accinvalid");
  10. }
  11.  
  12. public function Login($user, $pass){
  13. $data = $this->lib->curl("http://www.yunfile.com/view", "language=en_us", "module=member&action=validateLogin&username={$user}&password={$pass}&remember=1");
  14. $cookie = "language=en_us;{$this->lib->GetCookies($data)}";
  15. return $cookie;
  16. }
  17.  
  18. public function Leech($url) {
  19. $url = preg_replace("@https?:\/\/(yfdisk|filemarkets|yunfile)\.com@", "http://page2.yunfile.com", $url);
  20. $data = $this->lib->curl($url, $this->lib->cookie, "");
  21. if(preg_match('%down_url_table_td_table.*href="(.*)".*setCookie.*\'(.*)\'.*\'(.*)\'%imsU', $data, $matches)){
  22. $fcookie = $this->lib->cookie.$matches[2].'='.$matches[3];
  23. echo $fcookie;
  24. $this->save($fcookie);
  25. return trim($matches[1]);
  26. }
  27. return false;
  28. }
  29.  
  30. }
  31.  
  32. /*
  33. * Open Source Project
  34. * Vinaget by ..::[H]::..
  35. * Version: 2.7.0
  36. * yunfile Download Plugin by giaythuytinh176 [13.8.2013]
  37. * Downloader Class By [FZ]
  38. */
  39. ?>
Add Comment
Please, Sign In to add comment