Chciałem wykonać skrypt który by sie logowal na konto premium na storage.to i ściagał plik na serwer i wywalał linki do plików na serwerze.Mam procedure z pluginu do rl ) do logwania i do ściagania tylko jest 1 problem jestem zielony w tych sprawach i mam prosbe potrzebuje osobe która mi wytluamczy jakich komend itp uzyc
  1. <?php
  2. /*
  3. Coded by thanhquanky
  4. Date: 07/22/2009
  5. Filename: storage_to.php
  6. */
  7.  
  8. $page = geturl ( $Url ["host"], $Url ["port"] ? $Url ["port"] : 80, $Url ["path"] . ($Url ["query"] ? "?" . $Url ["query"] : ""), $Referer, $cookie, $post, 0, $_GET ["proxy"], $pauth );
  9. is_page ( $page );
  10.  
  11. if (($_GET["premium_acc"] == "on" && $_GET["premium_user"] && $_GET["premium_pass"]) || ($_GET["premium_acc"] == "on" && $premium_acc["storage_to"]["user"] && $premium_acc["storage_to"]["pass"])) {
  12. $post = Array();
  13. $post['email'] = $premium_acc["storage_to"]["user"];
  14. $post['password'] = $premium_acc["storage_to"]["pass"];
  15. $page = geturl ( $Url ["host"], $Url ["port"] ? $Url ["port"] : 80, "/login", 0, 0, $post, 0, $_GET ["proxy"], $pauth );
  16. is_page ( $page );
  17.  
  18. if(preg_match_all('/Set-Cookie: *(.+);/', $page, $cook)){
  19. $cookie = implode(';', $cook[1]);
  20. }
  21. else
  22. {
  23. html_error("Cookie not found.", 0);
  24. }
  25.  
  26. $page = geturl ( $Url ["host"], $Url ["port"] ? $Url ["port"] : 80, $Url ["path"] . ($Url ["query"] ? "?" . $Url ["query"] : ""), $Referer, $cookie, 0, 0, $_GET ["proxy"], $pauth );
  27.  
  28. is_page ( $page );
  29.  
  30. if (stristr($page, "Location:"))
  31. {
  32. $Href = trim(cut_str($page,"Location:","\n"));
  33. $Url = parse_url($Href);
  34. $FileName = !$FileName ? basename($Url["path"]) : $FileName;
  35. insert_location("$PHP_SELF?filename=".urlencode($FileName)."&auth=".$auth."&host=".$Url["host"]."&path=".urlencode($Url["path"].($Url["query"] ? "?".$Url["query"] : ""))."&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" : ""));
  36. }
  37. else {
  38. html_error("Can't login");
  39. }
  40. }
  41.  
  42. ?>


troche juz ogarniam ale i tka potrzebuje pomocy pisać na gg 2435481 później moge dać dostep do skryptu osobie która pomoze