[upload] Rapidshare.com for rapidleech

Status
Not open for further replies.

Halcyon

Active Member
1,306
2009
343
15
PHP:
<?php

/** Author        : Halcyon aka V3g3t4
 *  Description   : Rapidleech plugin for Rapidshare.com
 *
 *  Date           : 3-Sept-2011
 */

####### Premium Account Info. ###########
$rapidshare_login = ""; //Set your username
$rapidshare_pass = ""; //Set your password
##############################

$not_done=true;
$continue_up=false;
if ($rapidshare_login & $rapidshare_pass){
    $_REQUEST['my_login'] = $rapidshare_login;
    $_REQUEST['my_pass'] = $rapidshare_pass;
    $_REQUEST['action'] = "FORM";
    echo "<b><center>Use Default login/pass.</center></b>\n";
}
if ($_REQUEST['action'] == "FORM")
    $continue_up=true;
else{
?>
<table border=0 style="width:270px;" cellspacing=0 align=center>
<form method=post>
<input type=hidden name=action value='FORM' />
<tr><td nowrap>&nbsp;Login*<td>&nbsp;<input type=text name=my_login value='' style="width:160px;" />&nbsp;</tr>
<tr><td nowrap>&nbsp;Password*<td>&nbsp;<input type=password name=my_pass value='' style="width:160px;" />&nbsp;</tr>
<tr><td colspan=2 align=center><input type=submit value='Upload' /></tr>
<tr><td colspan=2 align=center><small>*You can set it as default in <b><?php echo $page_upload["rapidshare.com_premium"]; ?></b></small></tr>
</table>
</form>

<?php
    }

if ($continue_up)
    {
        $not_done=false;
?>
<table width=600 align=center>
</td></tr>
<tr><td align=center>
<div id=login width=100% align=center>Login to Rapidshare Premium</div>
<?php

?>
<script>document.getElementById('login').style.display='none';</script>
<div id=info width=100% align=center>Retrive upload ID</div>
<?php
            $nextsrv = 'http://rapidshare.com/cgi-bin/rsapi.cgi?sub=nextuploadserver';
            if (!$rsrv = @file_get_contents($nextsrv))
            {
                $ch = curl_init();
                curl_setopt ($ch, CURLOPT_URL, $nextsrv);
                curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 15);
                curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
                $rsrv = curl_exec($ch);
                curl_close($ch);
            }
                        $uploadId = rndNum(10);
            $url_action = "http://rs{$rsrv}.rapidshare.com/cgi-bin/rsapi.cgi?uploadid=$uploadId";
            $post['login'] = $_REQUEST['my_login'];
            $post['password'] = $_REQUEST['my_pass'];
            $post['sub'] = 'upload';
?>
<script>document.getElementById('info').style.display='none';</script>
<?php        
            $url = parse_url($url_action);
            $upfiles = upfile($url["host"],$url["port"] ? $url["port"] : 80, $url["path"].($url["query"] ? "?".$url["query"] : ""),0, 0, $post, $lfile, $lname, "filecontent", "", $proxy, $pauth);
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php    
            is_page($upfiles);

        preg_match('#COMPLETE\n([0-9]*),(.*),(.*),#si', $upfiles, $flink);
            $download_link = "http://rapidshare.com/files/$flink[1]/$flink[2]";
    }

function rndNum($lg){
    $str="0123456789";
    for ($i=1;$i<=$lg;$i++){
    $st=rand(1,9);
    $pnt.=substr($str,$st,1);}
    return $pnt;
}
?>

There's no premium/collector account now, So it's better if you guys remove all the other plugins and just keep one -_-

Also, Increase it's max file-size to 2000Mb.



Cheers!
 
Last edited:
4 comments
Status
Not open for further replies.
Back
Top