PageRenderTime 60ms CodeModel.GetById 35ms RepoModel.GetById 1ms app.codeStats 0ms

/pluginz/upload/ziddu.com.php

http://rapidleech36b.googlecode.com/
PHP | 101 lines | 89 code | 6 blank | 6 comment | 6 complexity | 69c85ef8aa46632183771a0278a70e9c MD5 | raw file
  1. <?php
  2. ####### Account Info. ###########
  3. $ziddu_login = ""; //Set your Email Id
  4. $ziddu_pass = ""; //Set your password
  5. ##############################
  6. $not_done=true;
  7. $continue_up=false;
  8. if ($ziddu_login & $ziddu_pass){
  9. $_REQUEST['my_login'] = $ziddu_login;
  10. $_REQUEST['my_pass'] = $ziddu_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;Email Id*<td>&nbsp;<input type=text name=my_login value='' style="width:160px;" />&nbsp;</tr>
  22. <tr><td nowrap>&nbsp;Password*<td>&nbsp;<input type=password name=my_pass value='' style="width:160px;" />&nbsp;</tr>
  23. <tr><td colspan=2 align=center><input type=submit value='Upload' /></tr>
  24. <tr><td colspan=2 align=center><small>*You can set it as default in <b><?php echo $page_upload["ziddu.com_member"]; ?></b></small></tr>
  25. </table>
  26. </form>
  27. <?php
  28. }
  29. if ($continue_up)
  30. {
  31. $not_done=false;
  32. ?>
  33. <table width=600 align=center>
  34. </td></tr>
  35. <tr><td align=center>
  36. <div id=login width=100% align=center>Login to Ziddu</div>
  37. <?php
  38. if (!$_REQUEST['my_login'] || !$_REQUEST['my_pass']) html_error('You didn\'t enter any account login details!');
  39. $page = geturl("www.ziddu.com", 80, "/login.php", 0, 0, 0);
  40. $cookie = GetCookies($page);
  41. $post['email'] = $_REQUEST['my_login'];
  42. $post['password'] = $_REQUEST['my_pass'];
  43. $post['Submit'] = "&nbsp;Login&nbsp;";
  44. $post['action'] = "LOGIN";
  45. $post['cookie'] = "";
  46. $post['uid'] = "";
  47. $page = geturl("www.ziddu.com", 80, "/login.php", 0, $cookie, $post);
  48. is_page($page);
  49. is_present($page, 'Either Email or Password is Incorrect', 'Error Logging In - Check your login details');
  50. is_present($page, 'Your Account has been unsubscribed by your self', 'Error Logging In - Check your login details');
  51. ?>
  52. <script>document.getElementById('login').style.display='none';</script>
  53. <div id=info width=100% align=center>Retrive upload ID</div>
  54. <?php
  55. $upload_form0 = "http://www.ziddu.com/upload.php";
  56. $Url = parse_url($upload_form0);
  57. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), 0, $cookie, 0, 0, $_GET["proxy"],$pauth);
  58. is_page($page);
  59. preg_match('/name="mmemid".*value="(.*?)"/i', $page, $mmemid);
  60. preg_match('/name="mname".*value="(.*?)"/i', $page, $mname);
  61. $memail = cut_str ( $page ,'memail" value="' ,'"' );
  62. $post = array();
  63. $post['mmemid'] = $mmemid[1];
  64. $post['mname'] = $mname[1];
  65. $post["memail"]=$memail;
  66. $post['lang'] = 'english';
  67. $upload_form = 'http://uploads.ziddu.com/upload.php';
  68. $Url = parse_url($upload_form);
  69. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), 0, $cookie, $post, 0, $_GET["proxy"],$pauth);
  70. is_page($page);
  71. // $cookie2 = GetCookies($page);
  72. preg_match('%action="(cgi-bin/.*?)"%i', $page, $act);
  73. preg_match('/name="memail".*value="(.*?)"/i', $page, $memail);
  74. $url_action = 'http://uploads.ziddu.com/'.$act[1];
  75. $fpost = array();
  76. $fpost['memail'] = $memail[1];
  77. ?>
  78. <script>document.getElementById('info').style.display='none';</script>
  79. <?php
  80. $url = parse_url($url_action);
  81. $upfiles = upfile($url["host"],$url["port"] ? $url["port"] : 80, $url["path"].($url["query"] ? "?".$url["query"] : ""),$upload_form, $cookie, $fpost, $lfile, $lname, "upfile_0", "");
  82. ?>
  83. <script>document.getElementById('progressblock').style.display='none';</script>
  84. <?php
  85. is_page($upfiles);
  86. preg_match('%ocation:\s(.+)\r\n%', $upfiles, $fredir);
  87. $Url = parse_url($fredir[1]);
  88. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"].($Url["query"] ? "?".$Url["query"] : ""), 0, $cookie, $post, 0, $_GET["proxy"],$pauth);
  89. preg_match('%<a href="(http://www.ziddu.com/download/\d+/.+\.html)"\s+%i', $page, $flink);
  90. $download_link = $flink[1];
  91. }
  92. // szal 20-03-09
  93. // FIXED by kaox 26-sep-09
  94. // Fixed by Crashblack 24 April 2011 (http://crash-black.blogspot.com)
  95. ?>