Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] logowanie na strone Megaupload
matx132
post
Post #1





Grupa: Zarejestrowani
Postów: 243
Pomógł: 19
Dołączył: 12.09.2005

Ostrzeżenie: (0%)
-----


Witam,
chciałem sobie dokończyć robić skrypt i dodać jeszcze logowanie do Megaupload
czy pomoze ktos mi w tym bo nie wiem jak zrobic aby po podnaiu hasła i loginu logowac sie na strone megaupload:)
w rapidshare zrobiłem ale na MU niestety nie umię:(
chodzi o php
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
matx132
post
Post #2





Grupa: Zarejestrowani
Postów: 243
Pomógł: 19
Dołączył: 12.09.2005

Ostrzeżenie: (0%)
-----


a więc tak mój skrypt uploadu wygląda tak
  1. if ($fsize > 1024*1024*500)
  2. {
  3. html_error("Prevyshen possible size of the downloaded file");
  4. }
  5. ?>
  6. <table width=600 align=center>
  7. </td></tr>
  8. <tr><td align=center>
  9.  
  10. <div id=info width=100% align=center>Retrive upload ID</div>
  11. <?
  12. $page = geturl("www.megaupload.com", 80, "/en/", 0, 0, 0, 0, "");
  13. ?>
  14. <script>document.getElementById('info').style.display='none';</script>
  15. <?
  16. is_page($page);
  17.  
  18. $url_action=cut_str($page,'"multipart/form-data" action="','"');
  19. $sessionid=cut_str($page,'name="sessionid" value="','"');
  20. $UPLOAD_IDENTIFIER=cut_str($page,'name="UPLOAD_IDENTIFIER" value="','"');
  21.  
  22. if (!$url_action || !$sessionid || !$UPLOAD_IDENTIFIER)
  23. {
  24. html_error("Error retrive upload id".pre($page));
  25. }
  26.  
  27. $post["sessionid"]=$sessionid;
  28. $post["UPLOAD_IDENTIFIER"]=$UPLOAD_IDENTIFIER;
  29. $post["accept"]=1;
  30. $post["message"]=$descript;
  31.  
  32. $url=parse_url($url_action);
  33. $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");
  34.  
  35. ?>
  36. <script>document.getElementById('progressblock').style.display='none';</script>
  37. <?
  38. is_page($upfiles);
  39.  
  40. is_notpresent($upfiles,"downloadurl = '","File not upload");
  41.  
  42. $download_link=cut_str($upfiles,"downloadurl = '","'");
  43. break;



  1. <form action="http://www.megaupload.com/pl/" method="POST" name="loginform">
  2. <input name="login" type="text" value="login">
  3. <input name="password" type="password" value="haslo">
  4. <input name="submit" value="Zaloguj się!" type="submit">
  5. </form>

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

  1. $rapidlogin_coll=$_REQUEST["rapidalogin_coll"] ? $_REQUEST["rapidalogin_coll"] : false ;
  2. $rapidpass_coll=$_REQUEST["rapidapassword_coll"] ? $_REQUEST["rapidapassword_coll"] : false ;
  3.  
  4. if ($rapidlogin_coll && $rapidpass_coll)
  5. {
  6. $post["freeaccountid"]=$rapidlogin_coll;
  7. $post["password"]=$rapidpass_coll;
  8.  
  9. echo "<b><center>USE COLLECTOR ZONE ACCOUNT.</center></b>\n";
  10.  
  11. }
  12. else
  13. {
  14. echo "<b><center>Login or Password not entered.<br>USE FREE ACCOUNT.</center></b>\n";
  15. }
  16. }
  17.  
  18. $url=parse_url($url_action);
  19.  
  20. $upfiles=upfile($url["host"],$url["port"] ? $url["port"] : 80, $url["path"].($url["query"] ? "?".$url["query"] : ""),"http://rapidshare.com/", 0, $post, $lfile, $lname, "filecontent");
  21.  
  22. ?>
  23. <script>document.getElementById('progressblock').style.display='none';</script>
  24. <?
  25. if ($lastError)
  26. {
  27. html_error($lastError);
  28. }
  29.  
  30. $tmp=cut_str($upfiles,'Download-Link','</a>');
  31. $download_link=trim(cut_str($tmp,'<a href="','"'));
  32.  
  33. $tmp=cut_str($upfiles,'Delete-Link','</a>');
  34. $delete_link=trim(cut_str($tmp,'<a href="','"'));
  35.  
  36. $alert="<script>alert('".cut_str($upfiles,"<script>alert('","')</script>")."')</script>";
  37.  
  38. if (!strstr($upfiles,'uploaded'))
  39. {
  40. if ($rapidlogin_com && $rapidpass_com) 
  41. {
  42. die("<center><b>See URL in you rapidshare Premium page.</b></center>\n</td></tr></table><p><center>DONE</center>\n</html>");
  43. }
  44. if ($rapidlogin_coll && $rapidpass_coll)
  45. {
  46. die("<center><b>See URL in you rapidshare Collector's zone page.</b></center>\n");
  47. }
  48. echo $alert;
  49. }
  50. break;


Ten post edytował matx132 22.12.2007, 09:57:39
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 10.10.2025 - 23:33