Jump to content

uploaded.to

Problems With Adrive Dl Script


2 replies to this topic

#1 Jacky99

    Rapidleecher

  • Members
  • PipPipPipPip
  • 235 posts

Posted 23 November 2010 - 12:29 PM

Hello all,

I had troubled downloading adrive.com on RL v3.20 (just get html only). But if I move the download script to the old RL rev.42 Upd 30/01/2010, there's working good with no errors.

I know there have a different template to each other. Is it possible to add another or edit the script so that it can work in RL v3.20?
But sorry, I don't know how to get it up? Please help me. I am a complete newbie in this case.

Thanks in advance.
For details, I quote the script as shown below:

Quote

<?php
if (!defined('RAPIDLEECH'))
{
require_once("index.html");
exit;
}
$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], 0, 0, 0, 0, $_GET["proxy"],$pauth);
is_page($page);
if(preg_match('/Location: *(.*)/i', $page, $redir)){
$href = trim($redir[1]);
$Url = parse_url($href);
$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], 0, 0, 0, 0, $_GET["proxy"],$pauth);
is_page($page);
}
if(preg_match('/location="(.*)"/i', $page, $redir)){
$href = 'http://www.adrive.com'.trim($redir[1]);
$Url = parse_url($href);
$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"], 0, 0, 0, 0, $_GET["proxy"],$pauth);
is_page($page);
}
if(preg_match_all('/Set-Cookie: *(.+?);/', $page, $cook)){
$cookie = implode(";", $cook[1]);
}else{
html_error("Cookie not found.", 0);
}
if(preg_match('/location\.href *= *"(.+)"/i', $page, $redir)){
$href = trim($redir[1]);
}else{
html_error("URL not found.", 0);
}
$Url = parse_url($href);
$FileName = !$FileName ? basename($Url["path"]) : $FileName;

insert_location("$PHP_SELF?filename=".urlencode($FileName)."&host=".$Url["host"]."&path=".urlencode($Url["path"].($Url["query"] ? "?".$Url["query"] : ""))."&referer=".urlencode($Referer)."&cookie=".urlencode($cookie)."&email=".($_GET["domail"] ? $_GET["email"] : "")."&partSize=".($_GET["split"] ? $_GET["partSize"] : "")."&method=".$_GET["method"]."&proxy=".($_GET["useproxy"] ? $_GET["proxy"] : "")."&saveto=".$_GET["path"]."&link=".urlencode($LINK).($_GET["add_comment"] == "on" ? "&comment=".urlencode($_GET["comment"]) : "").($pauth ? "&pauth=$pauth" : "").(isset($_GET["audl"]) ? "&audl=doum" : ""));
?>


#2 Th3-822

    Rapidleecher

  • Members
  • PipPipPipPip
  • 568 posts
  • Gender:Male
  • Location:Venezuela

Awards

Contributer

Posted 23 November 2010 - 10:20 PM

Add this before 'insert_location'.

if (function_exists('encrypt')) {
	$cookie = encrypt($cookie);
}

I will post each new plugin at pastebin


My Pastebin


Congratulations... You've readed my signature XD


#3 Jacky99

    Rapidleecher

  • Members
  • PipPipPipPip
  • 235 posts

Posted 24 November 2010 - 04:22 AM

View PostTh3-822, on 23 November 2010 - 10:20 PM, said:

Add this before 'insert_location'.

if (function_exists('encrypt')) {
	$cookie = encrypt($cookie);
}



Wow...so nicely. Its greatly worked like a charm - its so simple, mate!
Well, you've saved me from a lot of frustration to download from my host.

You're the best, Th3-822. My problem solved now. Thanks SO muchh..!!

Attached File  adrive_com.php (1.75K)
Number of downloads: 73

Edited by __S_e7e_N.7x__, 22 March 2011 - 03:45 PM.
Add attachment