Don't like ads? PRO users don't see any ads ;-)

[rapidleech] [UL] cloudnxt.net_member.php

By: bistro90 on Jul 3rd, 2012  |  syntax: PHP  |  size: 3.45 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?
  2. ######### Account Info #########
  3. $cloudnxt_login = ""; //Set your login
  4. $cloudnxt_pass = ""; //Set your password
  5. ##########################
  6.  
  7. $not_done=true;
  8. $continue_up=false;
  9. if ($cloudnxt_login & $cloudnxt_pass){
  10.         $_REQUEST['login'] = $cloudnxt_login;
  11.         $_REQUEST['password'] = $cloudnxt_pass;
  12.         $_REQUEST['action'] = "FORM";
  13.         echo "<b><center>Using your given Login Details</center></b>\n";
  14. }
  15. if ($_REQUEST['action'] == "FORM")
  16.     $continue_up=true;
  17. else{
  18. ?>
  19. <table border=0 style="width:270px;" cellspacing=0 align=center>
  20. <form method=post>
  21. <input type=hidden name=action value='FORM' />
  22. <tr><td nowrap>&nbsp;Login*<td>&nbsp;<input type=text name=login value='' style="width:160px;" />&nbsp;</tr>
  23. <tr><td nowrap>&nbsp;Password*<td>&nbsp;<input type=password name=password value='' style="width:160px;" />&nbsp;</tr>
  24. <tr><td colspan=2 align=center><input type=submit value='Upload' /></tr>
  25. </table>
  26. </form>
  27. <?php
  28. }
  29.  
  30. if ($continue_up)
  31.         {
  32.                 $not_done=false;
  33. ?>
  34. <table width=600 align=center>
  35. </td></tr>
  36. <tr><td align=center>
  37. <div id=login width=100% align=center>Login to cloudnxt.net</div>
  38. <?php
  39.                         $post['op'] = "login" ;
  40.                         $post['redirect'] = "http://cloudnxt.net/" ;
  41.                         $post['login'] = $_REQUEST['login'];
  42.                         $post['password'] = $_REQUEST['password'];
  43.                         $page = geturl("cloudnxt.net", 80, "/", 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("cloudnxt.net", 80, "/?op=my_files", "http://cloudnxt.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://cloudnxt.net/?op=upload_form';
  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,'multipart/form-data" action="','cgi-bin/upload.cgi?');
  62.         $uid = $i=0; while($i<12){ $i++;}
  63.         $uid += floor(rand() * 10);
  64.         $post['upload_type']= 'file';
  65.         $post['sess_id']= $xfss;
  66.         $post['file_0_descr']=$_REQUEST['descript'];
  67.         $post['file_0_public']='';
  68.         $post['link_rcpt']='';
  69.         $post['link_pass']='';
  70.         $post['tos']='1';
  71.         $post['submit_btn']=' Upload! ';
  72.         $uurl= $upfrm.'/cgi-bin/upload.cgi?upload_id='.$uid.'&js_on=1&utype=anon&upload_type=file';
  73.         $url=parse_url($upfrm.'/cgi-bin/upload.cgi?upload_id='.$uid.'&js_on=1&utype=anon&upload_type=file');
  74. ?>
  75. <script>document.getElementById('info').style.display='none';</script>
  76. <?
  77.  
  78.         $upfiles=upfile($url["host"],defport($url), $url["path"].($url["query"] ? "?".$url["query"] : ""),$ref, $cookies, $post, $lfile, $lname, "file_0");
  79.  
  80. ?>
  81. <script>document.getElementById('progressblock').style.display='none';</script>
  82. <?
  83.                 $status=cut_str($upfiles,'rea name=\'st\'>' ,'</textarea>');
  84.                 if ($status=='OK') {
  85.                         $locat=cut_str($upfiles,'rea name=\'fn\'>' ,'</textarea>');
  86.                         $download_link="http://cloudnxt.net/" . $locat . "/" . $lname . ".html";
  87.                 } else {
  88.                         html_error("Fail to upload! Reason : " . $status);
  89.                 }
  90.        
  91.        
  92.         }
  93.  
  94. // [29-April-2012] Written by bistarito
  95.        
  96. ?>