[new] Filesonic Plugin For Free And Premium
#137
Posted 17 May 2011 - 04:08 AM
make this plugin broken
Edited by onel0ve, 17 May 2011 - 04:08 AM.
|| Shared , Reseller Hosting Sales Thread
|| Rapidleech Hosting Sales Thread
|| Current Promotion
#138
Posted 17 May 2011 - 04:39 AM
filesonic_com.php (13.27K)
Number of downloads: 1762
Edited by kolp, 17 May 2011 - 05:52 AM.
#139
Posted 17 May 2011 - 04:52 AM
#141
#142
#144
Posted 17 May 2011 - 06:48 AM
kolp, on 17 May 2011 - 05:56 AM, said:
Remove line 193 to 246 (it doesn't needed)
private function DownloadFree_Try($link) {
global $Referer,$options;
$page = $this->GetPage( $link, 0, 0, 0);
$cookie = GetCookies($page);
if (stristr ( $page, "Location:" ))
{
$link = trim(cut_str($page, "Location:","\n"));
}
preg_match('/\/file\/(\d+)/i', $link, $mh);
$id = $mh[1];
$FileName = basename ($link);
$page = $this->GetPage($link,$cookie,0,0);
is_page($page);
preg_match('/<a class="downloadNow" href="(.*)" id="free_download">/', $page, $match);
$linkcd = "http://www.filesonic.com/file/$id/$match[1]";
$page = $this->GetPage($linkcd,$cookie,0,$Referer);
is_page($page);
if(strpos ( $page ,'<h3><span>Download Error</span></a></h3>' )){
html_error("Download link error by parallel downloads", 0);
}
preg_match ( '/var countDownDelay = (.*);/', $page, $count );
$countDown = trim($count [1]);
insert_timer( $countDown, "Waiting link timelock","",true );
preg_match('/<form action="(.*)" method="post" id="captchaForm">/', $page, $match);
$linkstart = "$link$match[1]";
$ch = cut_str ( $page ,'Recaptcha.create("' ,'"' );
$cachestop = rand();
$linkcaptcha ="http://www.google.com/recaptcha/api/challenge?k=$ch&cachestop=".$cachestop."&ajax=1";
$page = $this->GetPage($linkcaptcha,0,0,0);
is_page($page);
$cookieApi = GetCookies($page);
$ch=cut_str ( $page ,"challenge : '" ,"'" );
if($ch) {
$linkch = "http://www.google.com/recaptcha/api/image?c=".$ch;
$page = $this->GetPage($linkch,$cookieApi,0,0);
$headerend = strpos($page,"\r\n\r\n");
$pass_img = substr($page,$headerend+4);
if($options["download_dir"]) {$imgfile=$options["download_dir"]."filesonic_captcha.jpg";
} else {$imgfile=download_dir."filesonic_captcha.jpg";}
if (file_exists($imgfile)) {unlink($imgfile);}
write_file($imgfile, $pass_img);
} else {html_error("Error get captcha. Please try again!", 0);}
$post['recaptcha_challenge_field']=$ch;
print "<form method=\"post\" action=\"".$PHP_SELF.(isset($_GET["audl"]) ? "?audl=doum" : "")."\">$nn";
print "<h4>Enter <img src=\"$imgfile\"> here:</h4><input name=\"capt\" type=\"text\" >$nn";
print "<input name=\"link\" value=\"$linkstart\" type=\"hidden\">$nn";
print '<input type="hidden" name="post" value="'.urlencode(serialize($post)).'">'.$nn;
print "<input name=\"captcha\" value=\"ok\" type=\"hidden\">$nn";
print "<input type=\"hidden\" name=\"cookie\" value=\"".urlencode($cookie)."\" >".$nn;
print "<input name=\"name\" value=\"$FileName\" type=\"hidden\">$nn";
print "<input type=\"hidden\" name=\"delete\" value=\"".urlencode($imgfile)."\" >".$nn;
print "<input name=\"Submit\" value=\"Submit\" type=\"submit\"></form>";
}
Add this credit name in the bottom of the plugin :
// rewrite & fixed by Ruud v.Tony 29-04-2011, special credit to Th3-882 & vdhdevil, thx mate for teach me... // fix cookie problem in premium code by Okoze/Kolp 17-05-2011
thx!
HOW TO REPORT BROKEN DOWNLOAD PLUGIN, CLICK THIS
USE YOUR EYES, YOUR BRAIN, YOUR HAND, MOVE YOUR FINGER AND TYPE ANYTHING YOU NEED IN SEARCH FUNCTION BEFORE YOU REQUEST SOME FEATURE, FIX OR ANYTHING RELATED TO RAPIDLEECH SCRIPT! IF YOU CAN'T FIND THINGS YOU NEED FOR, THEN YOU CAN POST THE THREAD ABOUT YOUR REQUEST/PROBLEM IN FORUM!
#146
Posted 17 May 2011 - 12:10 PM
vincentfkc, on 17 May 2011 - 12:00 PM, said:
which plugin vincentkfc? vinhatrang made 2 revision, 1 at 21-10-2010, another one at 21-11-2010.
I only fixed password form (premium & free) also captcha form since in some server the captcha cant display correctly.
As now kolp/okoze fix the cookie problem in premium download.
HOW TO REPORT BROKEN DOWNLOAD PLUGIN, CLICK THIS
USE YOUR EYES, YOUR BRAIN, YOUR HAND, MOVE YOUR FINGER AND TYPE ANYTHING YOU NEED IN SEARCH FUNCTION BEFORE YOU REQUEST SOME FEATURE, FIX OR ANYTHING RELATED TO RAPIDLEECH SCRIPT! IF YOU CAN'T FIND THINGS YOU NEED FOR, THEN YOU CAN POST THE THREAD ABOUT YOUR REQUEST/PROBLEM IN FORUM!




This topic is locked









