a więc tak mój skrypt uploadu wygląda tak
if ($fsize > 1024*1024*500)
{
html_error("Prevyshen possible size of the downloaded file");
}
?>
<table width=600 align=center>
</td></tr>
<tr><td align=center>
<div id=info width=100% align=center>Retrive upload ID</div>
<?
$page = geturl("www.megaupload.com", 80, "/en/", 0, 0, 0, 0, "");
?>
<script>document.getElementById('info').style.display='none';</script>
<?
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 || !$sessionid || !$UPLOAD_IDENTIFIER)
{
html_error("Error retrive upload id".pre($page));
}
$post["sessionid"]=$sessionid;
$post["UPLOAD_IDENTIFIER"]=$UPLOAD_IDENTIFIER;
$post["accept"]=1;
$post["message"]=$descript;
$upfiles=upfile($url["host"],$url["port"] ? $url["port"] : 80, $url["path"].($url["query"] ? "?".$url["query"] : ""),"http://www.megaupload.com/en/", 0, $post, $lfile, $lname, "file");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?
is_page($upfiles);
is_notpresent($upfiles,"downloadurl = '","File not upload");
$download_link=cut_str($upfiles,"downloadurl = '","'");
break;
<form action="http://www.megaupload.com/pl/" method="POST" name="loginform"> <input name="login" type="text" value="login"> <input name="password" type="password" value="haslo"> <input name="submit" value="Zaloguj się!" type="submit">
i wiem że z takiego formularza idzie sie zalogować na MU
ale jak to teraz połączyć żeby zalogował sie i zrobił upload??
wiec jak pomoże ktoś?
PS.
przykład logowania się na RS.com
$rapidlogin_coll=$_REQUEST["rapidalogin_coll"] ? $_REQUEST["rapidalogin_coll"] : false ;
$rapidpass_coll=$_REQUEST["rapidapassword_coll"] ? $_REQUEST["rapidapassword_coll"] : false ;
if ($rapidlogin_coll && $rapidpass_coll)
{
$post["freeaccountid"]=$rapidlogin_coll;
$post["password"]=$rapidpass_coll;
echo "<b><center>USE COLLECTOR ZONE ACCOUNT.</center></b>\n";
}
else
{
echo "<b><center>Login or Password not entered.<br>USE FREE ACCOUNT.</center></b>\n";
}
}
$url=parse_url($url_action);
$upfiles=upfile($url["host"],$url["port"] ? $url["port"] : 80, $url["path"].($url["query"] ? "?".$url["query"] : ""),"http://rapidshare.com/", 0, $post, $lfile, $lname, "filecontent");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?
if ($lastError)
{
html_error($lastError);
}
$tmp=cut_str($upfiles,'Download-Link','</a>');
$download_link=trim(cut_str
($tmp,'<a href="','"'));
$tmp=cut_str($upfiles,'Delete-Link','</a>');
$delete_link=trim(cut_str
($tmp,'<a href="','"'));
$alert="<script>alert('".cut_str($upfiles,"<script>alert('","')</script>")."')</script>";
if (!strstr($upfiles,'uploaded')) {
if ($rapidlogin_com && $rapidpass_com)
{
die("<center><b>See URL in you rapidshare Premium page.</b></center>\n</td></tr></table><p><center>DONE</center>\n</html>"); }
if ($rapidlogin_coll && $rapidpass_coll)
{
die("<center><b>See URL in you rapidshare Collector's zone page.</b></center>\n"); }
}
break;