PageRenderTime 55ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/pluginz/upload/fshare.vn_member.php

http://rapidleech36b.googlecode.com/
PHP | 83 lines | 76 code | 4 blank | 3 comment | 10 complexity | f8fa0b394899c270913d39c71ce45f50 MD5 | raw file
  1. <?php
  2. ####### Account Info. ###########
  3. $upload_acc['fshare_vn']['user'] = ""; //Set you username
  4. $upload_acc['fshare_vn']['pass'] = ""; //Set your password
  5. ##############################
  6. $not_done = true;
  7. $continue_up = false;
  8. if ($upload_acc['fshare_vn']['user'] && $upload_acc['fshare_vn']['pass']) {
  9. $_REQUEST['up_login'] = $upload_acc['fshare_vn']['user'];
  10. $_REQUEST['up_pass'] = $upload_acc['fshare_vn']['pass'];
  11. $_REQUEST['action'] = "FORM";
  12. echo "<b><center>Using Default Login and 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;User*<td>&nbsp;<input type='text' name='up_login' value='' style='width:160px;' />&nbsp;</tr>
  22. <tr><td nowrap>&nbsp;Password*<td>&nbsp;<input type='password' name='up_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["fshare.vn_member"]; ?></b></small></tr>
  25. </table>
  26. </form>
  27. <?php
  28. }
  29. if ($continue_up) {
  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 Putlocker</div>
  36. <?php
  37. if (!empty($_REQUEST['up_login']) && !empty($_REQUEST['up_pass'])) {
  38. $post = array();
  39. $post['login_useremail'] = $_REQUEST['up_login'];
  40. $post['login_password'] = $_REQUEST['up_pass'];
  41. $post['url_refe'] = "http%3A%2F%2Fwww.fshare.vn%2Findex.php";
  42. $Url = parse_url("http://www.fshare.vn/login.php");
  43. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), "http://www.fshare.vn/index.php", 0, $post, 0, $_GET["proxy"], $pauth);
  44. is_page($page);
  45. $cookie = GetCookies($page);
  46. } else {
  47. echo "<b><center>Login not found or empty, using non member upload.</center></b>\n";
  48. }
  49. ?>
  50. <script type='text/javascript'>document.getElementById('login').style.display='none';</script>
  51. <div id='info' width='100%' align='center'>Retrive upload ID</div>
  52. <?php
  53. $Url = parse_url("http://upload.fshare.vn/");
  54. $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 0, $cookie, 0, 0, $_GET["proxy"], $pauth);
  55. is_page($page);
  56. $SESSID = cut_str($page, '"SESSID" : "', '"');
  57. unset($post);
  58. $post['Filename'] = $lname;
  59. $post['SESSID'] = $SESSID;
  60. $post['folderid'] = "-1";
  61. $post['desc'] = "Upload from rapidleech - Plugin make by vdhdevil"; //please dont remove this line thanks
  62. $up_loc = "http://upload.fshare.vn/upload.php";
  63. ?>
  64. <script type='text/javascript'>document.getElementById('info').style.display='none';</script>
  65. <?php
  66. $url = parse_url($up_loc);
  67. $upagent = "Shockwave Flash";
  68. $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 0, $cookie, $post, $lfile, $lname, "fileupload", "", $_GET["proxy"], $pauth, $upagent);
  69. ?>
  70. <script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>
  71. <?php
  72. is_page($upfiles);
  73. if (!preg_match("#http://www.fshare.vn/file/[A-Z0-9]+/#", $upfiles, $dlink)) {
  74. html_error("Upload failed or Plugin is out of date");
  75. }
  76. $download_link = $dlink[0];
  77. }
  78. //by vdhdevil
  79. ?>