Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Pomoc]Pomoc przy Skrypcie


krychap

Rekomendowane odpowiedzi

Opublikowano

Witam

 

Chcę otworzyć portal do Darmowego ściągania plików z turbobit.net i rapidgator.net. Ale mam taki problem że mam solidy serwer vps a nie mam do tego skryptu. Znalazłem łatwy skrypt do ściągania plików ale z rapidshare. Wie ktoś jak go przerobić aby ściągał z turbobit.net i rapidgator.

 

Skrypt:

 

http://www.sendspace.com/file/awzuvs

 

premium.php

 

<?php
/* -
$limit=10;
$rellimit=10;
$used=0;
$total=0;
*/
$accounts = array(
'enc=8JJDJDJDKSWJKJSKJDS8777GDJDNDJJ3U848448IDKDJDJNCDJNBDJSNDFJRJHJSHDSJNCJNJDNJDNFD84');
foreach ($accounts as $account){
$u = leftmb($account);
$leftmb[] = $u;
$used+=$u;
$total+=25*1024;
}
if (!isset($_POST['_user'])){
header("location: index.html");
/* TODO */
}else{
$url = $_POST['_user'];
if (preg_match('/^http:\/\/rapidshare.com\/files/',$url)){
$cookie=$accounts[min_key($leftmb)];
$url_parsed = parse_url($url);
$host = $url_parsed['host'];
$path = $url_parsed['path'];
$out = "GET $path HTTP/1.0\r\nHost: $host\r\nCookie: user=$cookie\r\n\r\n";
$fp = fsockopen($host, 80, $errno, $errstr, 30) or die("<script>alert('File not Found.')</script>");
fwrite($fp, $out);
while (!feof($fp)) {
 $page .= fgets($fp, 128);
}
fclose($fp);
preg_match ('/Location: ([^ ]*)\r\n/',$page, $matches);
$url = $matches[1];
$url_parsed = parse_url($url);
$host = $url_parsed['host'];
$path = $url_parsed['path'];
if ($url_parsed['query'] != '') $path .= "?".$url_parsed['query'];
$out = "GET $path HTTP/1.1\r\nHost: $host\r\nCookie: user=$cookie\r\n\r\n";
$fp = @fsockopen($host, 80, $errno, $errstr, 30) or die("<script>alert('File not found.')</script>");
fwrite($fp, $out);
$ok = 0;
while (!feof($fp)) {
$line = fgets($fp, 8192);
if ($ok==1){
echo $line;
}else{
if (preg_match('/(HTTP\/1)|(Date:)|(Connection:)|(Content-Type:)|(Accept-Ranges:)|(Content-Disposition:)|(Content-Length:)/', $line)){
If (preg_match('/Content-Type: text\/html/', $line)){
die ("<script>alert('Over Bandwidth. We are sorry ')</script>");
}
header ("$line\r\n");
}
if ($line=="\r\n") $ok=1;
}
}
fclose($fp);
//
}
}
function leftmb($cookie){
preg_match('/In the last 5 days you have downloaded <b>([0-9]*) MB<\/b>./', shell_exec("echo $(wget --no-cookies --header \"Cookie: user=$cookie\" --no-check-certificate -O /dev/stdout -q https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi)"), $left);
return $left[1];
}
function min_key($array) {
foreach ($array as $key=>$el) {
if ($el==min($array)) return $key;
}
}
?>

 

index.html

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>

 <title>Rapidshare Premium Links Maker</title>

<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>

 <table class="bg" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
 <tbody><tr>
  <td align="center" height="100%" valign="middle" width="100%">
   <div id="loginfield">
<form name="form" action="premium.php" method="post">
<div class="login-title">RapidShare Premium Link Maker</div>
<table summary="" border="0"><tbody><tr><td class="title"></td>
<td><br /><input name="_user" id="rcmloginuser" sizee="30" value="Insert here the link" type="text" onclick="this.value=''"></td>
</tr>

</tbody>
</table>

  <div id="logmsg"><div id="loginmessage"></div></div>
  <div id="keepme">
   Insert the link rapidshare.com <br />
  </div>
  <div id="forgot">

   <div class="left">
    <input class="button" value="Download" type="submit">
   </div>
  </div>
 </form>
   </div>
  </td>
 </tr>
 </tbody></table>
 <div class="canvas"></div>
</body></html>

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...