Автор: insanebroad
Дата сообщения: 22.02.2009 15:10
whats wrong with my megaupload member upload plugin???
Код:
<table width=600 align=center>
</td></tr>
<tr><td align=center>
<div id=info width=100% align=center>Retrive upload ID</div>
<?
$ref1='http://www.megaupload.com/?c=login';
$Url=parse_url($ref1);
$post["username"]=$megaupload_login;
$post["password"]=$megaupload_pass;
$page = geturl($Url["host"], defport($Url), $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), 0, $cookies, 0, 0, $_GET["proxy"],$pauth);
is_page($page);
$cookies=implode("; ", GetCookies($page, true));
}
?>
<?
$cookies='l=en';
$ref="http://www.megaupload.com/";
$Url=parse_url($ref);
$page = geturl($Url["host"], defport($Url), $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), 0, $cookies, 0, 0, $_GET["proxy"],$pauth);
is_page($page);
$url_action=cut_str($page,'"multipart/form-data" action="','"');
$sessionid=cut_str($page,'name="sessionid" value="','"');
$UPLOAD_IDENTIFIER=cut_str($page,'name="UPLOAD_IDENTIFIER" value="','"');
if (!$url_action) html_error("Error retrive upload url");
$post["message"]=$descript;
$post["trafficurl"]='http://';
$post["user"]='undefined';
$post["Upload"]='Submit Query';
$url=parse_url($url_action.'&user=undefined');
?>
<script>document.getElementById('info').style.display='none';</script>
<?
$upfiles=upfile($url["host"],$url["port"] ? $url["port"] : 80, $url["path"].($url["query"] ? "?".$url["query"] : ""),$ref, $cookies, $post, $lfile, $lname, "Filename");
?>
script>document.getElementById('progressblock').style.display='none';</script>
<?
is_page($upfiles);
is_notpresent($upfiles,"downloadurl = '","File not upload");
$download_link=cut_str($upfiles,"downloadurl = '","'");
// sert
?>