Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class dl_yunfile_com extends Download {
- public function CheckAcc($cookie){
- $data = $this->lib->curl("http://www.yunfile.com/user/edit.html", "language=en_us;{$cookie}", "");
- if(stristr($data, 'bottom ">Premium Member')) return array(true, "Until ".$this->lib->cut_str($data, '(Expire:',')'));
- else if(stristr($data, 'Current Password:') && !stristr($data, 'bottom ">Premium Member')) return array(false, "accfree");
- else return array(false, "accinvalid");
- }
- public function Login($user, $pass){
- $data = $this->lib->curl("http://www.yunfile.com/view", "language=en_us", "module=member&action=validateLogin&username={$user}&password={$pass}&remember=1");
- $cookie = "language=en_us;{$this->lib->GetCookies($data)}";
- return $cookie;
- }
- public function Leech($url) {
- $url = preg_replace("@https?:\/\/(yfdisk|filemarkets|yunfile)\.com@", "http://page2.yunfile.com", $url);
- $data = $this->lib->curl($url, $this->lib->cookie, "");
- if(preg_match('%down_url_table_td_table.*href="(.*)".*setCookie.*\'(.*)\'.*\'(.*)\'%imsU', $data, $matches)){
- $fcookie = $this->lib->cookie.$matches[2].'='.$matches[3];
- echo $fcookie;
- $this->save($fcookie);
- return trim($matches[1]);
- }
- return false;
- }
- }
- /*
- * Open Source Project
- * Vinaget by ..::[H]::..
- * Version: 2.7.0
- * yunfile Download Plugin by giaythuytinh176 [13.8.2013]
- * Downloader Class By [FZ]
- */
- ?>
Add Comment
Please, Sign In to add comment