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" : ""));
?>
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" : ""));
?>
















