Advertisement
Guest User

depfile_com.php

a guest
Sep 10th, 2014
2,097
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. <?php
  2.  
  3. class dl_depfile_com extends Download {
  4.  
  5. public function CheckAcc($cookie) {
  6. $data = $this->lib->curl("https://depfile.com/", $cookie, "");
  7. preg_match("/<a class='ok' href='\/myspace\/space\/premium'>(.*)<img src=(.*) title='(.*)' align='absmiddle'><\/a>/", $data, $invo);
  8. if ($invo[3]=="Premium") return array(true, "Until ".$invo[1]);
  9. elseif ($invo[3]=="Premium account expired") return array(false, "Expired Account");
  10. else return array(false, "accinvalid");
  11. }
  12.  
  13. public function Login($user, $pass) {
  14.  
  15. $data = $this->lib->curl("https://depfile.com/", "sdlanguageid=2", "login=login&loginemail=".urlencode($user)."&loginpassword=".urlencode($pass)."&submit=login&rememberme=on");
  16. $cookie = "sdlanguageid=2".$this->lib->GetCookies($data);
  17. return $cookie;
  18. }
  19.  
  20. public function Leech($url) {
  21.  
  22. if (!stristr($url, "https")) $url = str_replace('http', 'https', $url);
  23.  
  24. $data = $this->lib->curl($url, "sdlanguageid=2; " .$this->lib->cookie, "");
  25.  
  26. if (stristr($data, 'Page Not Found!') || stristr($data,'File was not found in the') || stristr($data,'Provided link contains errors')) $this->error("dead", true, false, 2);
  27.  
  28. elseif (stristr($data, 'You spent limit on links')) $this->error("You spent limit on links (files) per 24 hours. 300 links.", true, false);
  29.  
  30. else return trim($this->lib->cut_str($this->lib->cut_str($data, '<th>A link for 24 hours:</th>', '<th>Download:</th>'), 'this.select();" value="', '"></td>'));
  31. return false;
  32. }
  33.  
  34. }
  35.  
  36. /*
  37. * Open Source Project
  38. * Vinaget by ..::[H]::..
  39. * Version: 2.7.0
  40. * depfile.com Download Plugin
  41. * Downloader Class By [FZ]
  42. * Download plugin by giaythuytinh176 [11.8.2013]
  43. * Fix check acc by invokermoney 11.09.2014
  44. */
  45. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement