PageRenderTime 33ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/hosts/upload/dl.free.fr.php

http://rapidleech.googlecode.com/
PHP | 66 lines | 56 code | 9 blank | 1 comment | 5 complexity | 591c927d21da6ed6bf881f52b5e264eb MD5 | raw file
  1. <table width=600 align=center>
  2. </td></tr>
  3. <tr><td align=center>
  4. <div id=info width=100% align=center>Retrive upload ID</div>
  5. <?php
  6. $ref='http://dl.free.fr/';
  7. $page = geturl("dl.free.fr", 80, "/", "", 0, 0, 0, "");
  8. ?>
  9. <script>document.getElementById('info').style.display='none';</script>
  10. <table width=600 align=center>
  11. </td></tr>
  12. <tr><td align=center>
  13. <?php
  14. is_page($page);
  15. $url_action=cut_str($page,'/upload.pl?','"');
  16. if (!$url_action)
  17. {
  18. html_error("Error retrive upload id".$page);
  19. }
  20. $post["mail1"]='';
  21. $post["mail2"]='';
  22. $post["mail3"]='';
  23. $post["mail4"]='';
  24. $post["message"]=$descript;
  25. $post["password"]='';
  26. $url=parse_url($ref.'upload.pl?'.$url_action);
  27. $upfiles=upfile($url["host"],$url["port"] ? $url["port"] : 80, $url["path"].($url["query"] ? "?".$url["query"] : ""),$ref, 0, $post, $lfile, $lname, "ufile");
  28. ?>
  29. <script>document.getElementById('progressblock').style.display='none';</script>
  30. <div id=final width=100% align=center>Get final code</div>
  31. <?php
  32. is_page($upfiles);
  33. $locat=trim(cut_str($upfiles,'Location:',"\n"));
  34. if (!$locat) {html_error("Error get location".$upfiles);}
  35. $Url=parse_url($locat);
  36. echo "Pass: ";
  37. for ($i=1;$i<10;$i++)
  38. {
  39. sleep(3);
  40. $page = geturl($Url["host"], defport($Url), $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), $ref, 0, 0, 0, $_GET["proxy"],$pauth);
  41. is_page($page);
  42. echo "$i ";
  43. if (strpos($page,"proc&eacute;dure termin&eacute;e avec succ&egrave;s")){break;}
  44. }
  45. $tmp=cut_str($page,'adresse suivante',true);
  46. $download_link=cut_str($tmp,'<a href="','"');
  47. $tmpd=cut_str($tmp,'http://dl.free.fr/rm.pl?','"');
  48. if ($tmpd){
  49. $tmpd='http://dl.free.fr/rm.pl?'.$tmpd;
  50. $tmpd=str_replace("&amp;","&",$tmpd);
  51. }
  52. $delete_link=$tmpd;
  53. ?>
  54. <script>document.getElementById('final').style.display='none';</script>
  55. <?php
  56. // sert 30.07.2008
  57. ?>