Languges | ßçûê]*/ if ($langpack="langpack.php") { $langpack="langpack.php"; include $langpack; $langcheck='1'; if ($avtorLP=='TRiTON'){$langcheck++;if ($lang=='for version 0.84'){$langcheck++;if ($langcheck=='3');else exit(CRC);}else exit(CRC);}else exit(CRC); } /*[settings < Languges | ßçûê]*/ if (version_compare(phpversion(), "4.3.0", "<")) { ?>
Connected to proxy : ".$_GET["proxy"]."...
\n";
echo "GET : ".$_GET["link"]."...
\n";
}
else
{
echo "
$langconnectedto ".$ftp[host].":$ports...
";
}
switch (strtolower($ftp["scheme"]))
{
case "ftp":
if (!$_GET["proxy"])
{
if ($AUTH)
{
list($plog,$ppass) = explode(':',base64_decode($AUTH["str"]),2);
}
else
{
$plog=$ppass='';
}
$AUTH["ftp"]['login']=($plog ? urldecode($plog) : "anonymous");
$AUTH["ftp"]['password']=($ppass ? urldecode($ppass) : "admin@microsoft.com");
$file = getftpurl($_GET["host"],$ports , $_GET[path], $pathWithName);
}
else
{
$file = geturl($_GET["host"], $ports, $_GET[path], $_GET[referer], $cookies, $postquery, $pathWithName, $_GET["proxy"],$pauth, strtolower($ftp["scheme"]));
}
break;
case "http":
case "https":
$file = geturl($_GET["host"], $ports, $_GET[path], $_GET[referer], $cookies, $postquery, $pathWithName, $_GET["proxy"],$pauth,strtolower($ftp["scheme"]));
break;
}
if($redir && $lastError && strstr($lastError,"it is redirected to ["))
{
$redirectto=trim(cut_str($lastError,"it is redirected to [","]"));
echo "Redirecting to: $redirectto ...
";
if ($_REQUEST["fixcookies"] != "yes") { $cookies=GetCookies($file); }
$redirectto = ($redirectto[0] == '.' && $redirectto[1] == '/') ? strtolower($ftp["scheme"])."://".$ftp["host"].dirname($ftp["path"]).substr($redirectto,1) : $redirectto;
$redirectto = $redirectto[0] == '/' ? strtolower($ftp["scheme"])."://".$ftp["host"].$redirectto : $redirectto;
$_GET["link"]=urldecode(urldecode($redirectto));
$purl=parse_url($redirectto);
list($_GET["FileName"],$tmp) = explode('?',basename($redirectto));
$_GET["path"] = $purl["path"].($purl["query"] ? "?".$purl["query"] : "");
$_GET["host"] = $purl["host"];
$auth=($purl["user"] && $purl["pass"]) ? base64_encode($purl["user"].":".$purl["pass"]) : "";
$AUTH = ($auth) ? array('use' => true, 'str' =>$auth) : false;
$postquery=0;
$lastError="";
}
} while ($redirectto && !$lastError);
if ($lastError)
{
echo $lastError;
}
elseif (($file[bytesReceived] == $file[bytesTotal]) or (($file[bytesReceived] > 0) && !$file[bytesTotal]))
{
$inCurrDir = (HOSTROOT != '') && (strpos(dirname($file["file"]), HOSTROOT.DIRECTORY_SEPARATOR) == 0) ? TRUE : FALSE;
if($inCurrDir)
{
$Path = dirname(substr($file["file"],strlen(HOSTROOT)));
$Path=str_replace(DIRECTORY_SEPARATOR,'/',$Path);
$Path = str_replace("'","\\'",$Path == '/' ? "" : $Path);
}
echo "_\r\n";
echo "$langfile ".($inCurrDir ? "" : "").basename($file["file"]).($inCurrDir ? "" : "")." (".$file[size].") $langsaved!
$langtime ".$file[time]."
$langaveragespeed ".$file[speed]." KB/s
";
if(!write_file($workpath.DIRECTORY_SEPARATOR."files.lst", serialize(array("name" => $file["file"], "size" => $file["size"], "date" => time(), "link" => $_GET["orlink"], "comment" => str_replace("\n", "\\n", str_replace("\r", "\\r", $_GET["comment"]))))."\r\n", 0))
{
echo "Couldn't update the files list
";
}
if($_GET["email"])
{
echo "
\n"; echo "
| Part | Status |
|---|