Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class dl_depfile_com extends Download {
- public function CheckAcc($cookie) {
- $data = $this->lib->curl("https://depfile.com/", $cookie, "");
- preg_match("/<a class='ok' href='\/myspace\/space\/premium'>(.*)<img src=(.*) title='(.*)' align='absmiddle'><\/a>/", $data, $invo);
- if ($invo[3]=="Premium") return array(true, "Until ".$invo[1]);
- elseif ($invo[3]=="Premium account expired") return array(false, "Expired Account");
- else return array(false, "accinvalid");
- }
- public function Login($user, $pass) {
- $data = $this->lib->curl("https://depfile.com/", "sdlanguageid=2", "login=login&loginemail=".urlencode($user)."&loginpassword=".urlencode($pass)."&submit=login&rememberme=on");
- $cookie = "sdlanguageid=2".$this->lib->GetCookies($data);
- return $cookie;
- }
- public function Leech($url) {
- if (!stristr($url, "https")) $url = str_replace('http', 'https', $url);
- $data = $this->lib->curl($url, "sdlanguageid=2; " .$this->lib->cookie, "");
- 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);
- elseif (stristr($data, 'You spent limit on links')) $this->error("You spent limit on links (files) per 24 hours. 300 links.", true, false);
- 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>'));
- return false;
- }
- }
- /*
- * Open Source Project
- * Vinaget by ..::[H]::..
- * Version: 2.7.0
- * depfile.com Download Plugin
- * Downloader Class By [FZ]
- * Download plugin by giaythuytinh176 [11.8.2013]
- * Fix check acc by invokermoney 11.09.2014
- */
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement