PageRenderTime 50ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/pluginz/upload/ezyfile.net_member.php

http://rapidleech36b.googlecode.com/
PHP | 105 lines | 97 code | 5 blank | 3 comment | 5 complexity | dd06950bca8f88f0dafb8561a2c0a1a3 MD5 | raw file
  1. <?
  2. ####### Free Account Info. ###########
  3. $ezy_login = "";
  4. $ezy_pass = "";
  5. ##############################
  6. $not_done=true;
  7. $continue_up=false;
  8. if ($ezy_login & $ezy_pass){
  9. $_REQUEST['username'] = $ezy_login;
  10. $_REQUEST['password'] = $ezy_pass;
  11. $_REQUEST['action'] = "FORM";
  12. echo "<b><center>Use Default login/pass.</center></b>\n";
  13. }
  14. if ($_REQUEST['action'] == "FORM")
  15. $continue_up=true;
  16. else{
  17. ?>
  18. <table border=0 style="width:270px;" cellspacing=0 align=center>
  19. <form method=post>
  20. <input type=hidden name=action value='FORM' />
  21. <tr><td nowrap>&nbsp;Login*<td>&nbsp;<input type=text name=login value='' style="width:160px;" />&nbsp;</tr>
  22. <tr><td nowrap>&nbsp;Password*<td>&nbsp;<input type=password name=password value='' style="width:160px;" />&nbsp;</tr>
  23. <tr><td colspan=2 align=center><input type=submit value='Upload' /></tr>
  24. </table>
  25. </form>
  26. <?php
  27. }
  28. if ($continue_up)
  29. {
  30. $not_done=false;
  31. ?>
  32. <table width=600 align=center>
  33. </td></tr>
  34. <tr><td align=center>
  35. <div id=login width=100% align=center>Login to ezyfile.net</div>
  36. <?php
  37. $post['op'] = "login" ;
  38. $post['redirect'] = "" ;
  39. $post['login'] = $_REQUEST['login'];
  40. $post['password'] = $_REQUEST['password'];
  41. $post['x'] = "0" ;
  42. $post['y'] = "0" ;
  43. $page = geturl("ezyfile.net", 80, "/login.html", 0, 0, $post, 0, $_GET["proxy"], $pauth);
  44. is_page($page);
  45. is_notpresent($page, 'HTTP/1.1 302 Moved', 'Error logging in - are your logins correct? First');
  46. preg_match_all('/Set-Cookie: (.*);/U',$page,$temp);
  47. $cookie = $temp[1];
  48. $cookies = implode(';',$cookie);
  49. $xfss=cut_str($cookies,'xfss=',' ');
  50. $page = geturl("ezyfile.net", 80, "/?op=my_files", "http://ezyfile.net/login.html", $cookies, 0, 0, "");
  51. is_page($page);
  52. is_notpresent($page, 'HTTP/1.1 200 OK', 'Error logging in - are your logins correct?Second');
  53. ?>
  54. <script>document.getElementById('login').style.display='none';</script>
  55. <div id=info width=100% align=center>Retrive upload ID</div>
  56. <?php
  57. $ref='http://ezyfile.net/';
  58. $Url=parse_url($ref);
  59. $page = geturl($Url["host"], defport($Url), $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), 0, 0, 0, 0, $_GET["proxy"],$pauth);
  60. is_page($page);
  61. $upfrm = cut_str($page,'form-data" action="','up');
  62. $uid = $i=0; while($i<12){ $i++;}
  63. $uid += floor(rand() * 10);
  64. $sessid = $xfss;
  65. if (!$sessid) html_error ('Error get sessid');
  66. $servid = cut_str($page,'.ezyfile.net/upload/','"');
  67. $post['srv_id']=$servid;
  68. $post['sess_id']=$sessid;
  69. $post['file_0_descr']=$_REQUEST['descript'];
  70. $post['file_0_public']='1';
  71. $post['file_0_keyword']='';
  72. $post['link_rcpt']='';
  73. $post['link_pass']='';
  74. $post['tos']='1';
  75. $post['submit']=' Upload! ';
  76. $uurl=$upfrm.'/upload/'.$servid.'/?X-Progress-ID='.$uid;
  77. $url=parse_url($upfrm.'/upload/'.$servid.'/?X-Progress-ID='.$uid);
  78. ?>
  79. <script>document.getElementById('info').style.display='none';</script>
  80. <?
  81. $upfiles=upfile($url["host"],defport($url), $url["path"].($url["query"] ? "?".$url["query"] : ""),$ref, $cookies, $post, $lfile, $lname, "file_0");
  82. ?>
  83. <script>document.getElementById('progressblock').style.display='none';</script>
  84. <?
  85. is_page($upfiles);
  86. $locat=cut_str($upfiles,"name='fn' value='","'");
  87. unset($post);
  88. $gpost['op'] = "upload_result" ;
  89. $gpost['fn'] = "$locat" ;
  90. $gpost['st'] = "OK" ;
  91. $Url=parse_url($ref);
  92. $page = geturl($Url["host"], defport($Url), $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $uurl, $cookies, $gpost, 0, $_GET["proxy"],$pauth);
  93. is_page($page);
  94. $ddl=cut_str($page,'Direct Link:</b></td><td><input type="text" onfocus="copy(this);" value="','"');
  95. $del=cut_str($page,'Delete Link:</b></td><td><input type="text" onfocus="copy(this);" value="','"');
  96. $download_link=$ddl;
  97. $delete_link=$del;
  98. }
  99. // Made by Baking 27/06/2009 19:49
  100. ?>