Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Czy potrafi ktoś zmienić Skrypt RstoRs Pomocy please
Forum PHP.pl > Forum > PHP
spajk77
Mam tu dwa pliki, skrypty, to działa tak że wrzucam to na swój serwer
wklejam linki z rapidshare, podaje login i hasło (do mojego konta premium na rapidzie)
On tworzy linki które można pobrać bez limitu, tylko z mojego konta rapida premium lecą Gb -jty
Te linki można też dodać przez Remote Upload

Czy dało by się w tym coś zmienić aby on nie tworzył tych linków tylko zapisywał pliki odrazu na serwerze?
Czyli podaje linki jakieś tam z rapida, podaje swoj login i hasło, on przez moje konto pobiera pliki i zapisuje na moim serwerze...


Kod
   plik skrypt.php  
    
   <?  
   error_reporting(0);  
   set_time_limit(3000);  
   if(eregi("<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>rs2rs<span class="moz-txt-tag">/</span></i>",$_SERVER[REQUEST_URI])){$url=explode("/rs2rs",$_SERVER[REQUEST_URI]);  
   $url=explode("/",$url[1]);  
    
   header('Content-Disposition: attachment;');  
   $ch = curl_init();  
   curl_setopt($ch,   CURLOPT_URL,<a class="moz-txt-link-rfc2396E" href="http://$url%5B1%5D:$url%5B2%5D@rs$url%5b3%5d.rapidshare.com/files/$url%5B4%5D/$url%5B5%5D">"http://$url[1]:$url[2]@rs$url[3].rapidshare.com/files/$url[4]/$url[5]"</a>);  
   curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);  
   curl_exec($ch);  
   curl_close($ch);  
   echo rand(0,9);die;  
   }  
   ?>  
   <title>Rapidshare Upload - bsj</title>  
   <body link=blue vlink=blue bgcolor=#0e1208 text=#ffffff topmargin=0   marginheight=0 leftmargin=0 marginwidth=0>  
   <table width=100% cellpadding=0 cellspacing=0><tr>  
   <td background=<a class="moz-txt-link-freetext" href="http://i39.tinypic.com/4puvpl.png">http://i39.tinypic.com/4puvpl.png</a> width=100%   valign=middle height=125>  
   <center><h1>Rapidshare - Remote Upload bsj</h1>  
   <small><small><b>generuj swój własny link</td></tr></table>  
  
   <style>body{font-family:tahoma,arial,verdena,sans-serif;}td{font-family:tahoma,arial,verdena,sans-serif;}input{border:0px;background-color:#dedede;}textarea{border:0px;background-color:#dedede;}</style>  
   <? if($_POST[files]=="") { ?><form method=post><table   cellpadding=14><tr><td><b><small>Login:</td><td><input type=text   name=user></td></tr><tr><td><b><small>Hasło:</td><td><input   type=password name=pass></td></tr></table>
   <b><center><small>Tutaj   wklej linki:
   </b></small><textarea style=width:70%;height:40%   name=files></textarea>
   <input type=submit value="Generate"   style=font-size:16px;></form>
    
   <?  
   }  
   else{echo"<small><b>Remote Uploads i wklej tam link(i): <textarea   style=width:80%;height:40%>";  
   $ch = curl_init();  
   curl_setopt($ch,   CURLOPT_URL,<a class="moz-txt-link-rfc2396E" href="http://rapidshare.com/cgi-bin/checkfiles.cgi">"http://rapidshare.com/cgi-bin/checkfiles.cgi"</a>);  
   curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);  
   curl_setopt($ch, CURLOPT_POST, 1);  
   curl_setopt($ch, CURLOPT_POSTFIELDS,"urls=$_POST[files]");  
   $yy=curl_exec($ch);  
   curl_close($ch);  
   $lx=explode("File is on server number: ",$yy);  
   foreach($lx as $mu){$du=explode(":<td align=right><a   href=\<a class="moz-txt-link-rfc2396E" href="http://rapidshare.com/files/">"http://rapidshare.com/files/"</a>,$mu);  
   if($du[1]==""){}else{$do=explode("\"",$du[1]);  
   echo<a class="moz-txt-link-rfc2396E" href="http://$_server%5bhttp_host%5d$_server%5bscript_name%5d/rs2rs/$_POST%5Buser%5D/$_POST%5Bpass%5D/$du%5B0%5D/$do%5B0%5D%5Cn">"http://$_SERVER[HTTP_HOST]$_SERVER[SCRIPT_NAME]/rs2rs/$_POST[user]/$_POST[pass]/$du[0]/$do[0]\n"</a>;}}echo"</textarea>
  
   MD5   zmieniono!
  
  
   <big>Zakończono</big>";}  
   ?>  
    
    
   plik debug.php  
   <center><h1>Rapidshare Connection Check</h1><small><small>See if you are   able to run RS related scripts on your   server.</small></small>
  
   <hr><big><b><?   $cdpwezurokokok=curl_init();   set_time_limit(1942);curl_setopt($cdpwezurokokok,   CURLOPT_URL,<a class="moz-txt-link-rfc2396E" href="http://rapidshare.com/cgi-bin/checkfiles.cgi">"http://rapidshare.com/cgi-bin/checkfiles.cgi"</a>);curl_setopt($cdpwezurokokok,   CURLOPT_RETURNTRANSFER,1);curl_setopt($cdpwezurokokok, CURLOPT_POST,   1);curl_setopt($cdpwezurokokok,   CURLOPT_POSTFIELDS,"urls=<a class="moz-txt-link-freetext" href="http://rapidshare.com/files/163284949/iptraf.png">http://rapidshare.com/files/163284949/iptraf.png</a>");$edpwezurokokok=curl_exec($cdpwezurokokok);curl_close($cdpwezurokokok);if(eregi("File   is on server number",$edpwezurokokok)){ echo"CURL+POST TO   <a class="moz-txt-link-freetext" href="http://rapidshare.com/cgi-bin/checkfiles.cgi">http://rapidshare.com/cgi-bin/checkfiles.cgi</a> works!
  
   <font   color=green>Ready to run the script!</font>"; }else{ echo"<font   color=red>POST TO <a class="moz-txt-link-freetext" href="http://rapidshare.com/cgi-bin/checkfiles.cgi">http://rapidshare.com/cgi-bin/checkfiles.cgi</a> <b>DOES   NOT work</b>! your CURL installation is somewhat limited or not even   there. maybe the hostname \"rapidshare.com\" is blocked by your host for   outside connections.
   sorry you wont be able to run the script on this   server.</font>"; die;   }echo"<hr>";$seti=ini_get('max_execution_time');if($seti==1942) {   echo"<font color=green>Timelimit change is no problem.
   You are   lucky.
   even with a slow server you can use this script.</font>"; }   else { echo"<font color=red>Not able to change time-limit.
   use the   script only if you have a fast server.</font>";   }$str=time();$cdpwezurokokok=curl_init();curl_setopt($cdpwezurokokok,   CURLOPT_URL,<a class="moz-txt-link-rfc2396E" href="http://rs339.rapidshare.com/files/134699305/FIT.pdf">"http://rs339.rapidshare.com/files/134699305/FIT.pdf"</a>);curl_setopt($cdpwezurokokok,  CURLOPT_RETURNTRANSFER,1);$edpwezurokokok=curl_exec($cdpwezurokokok);curl_close($cdpwezurokokok);$end=time();$rgeb=$end-$str;$speed=round(1970/$rgeb);echo"
  
   Speedcheck  took $rgeb seconds for a 2mb testfile.
   That means  </b><font color=green>$speed  KB/s</font><b>.
  
   ";if($speed<=1000) {  echo"<font color=red>SLOW SERVER! use only when all other checks  are green!</font>"; } else { echo"<font color=green>FAST  SERVER! you are the king.</font>";  }echo"</big></b><hr>
   <h1>PHPINFO:</h1>";phpinfo();?>
jareeny
zależy ile płacisz winksmiley.jpg
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.