PDA

View Full Version : New Posting Features - Upload to a RAPIDSHARE PREMIUM ACCOUNT from a thread / newpost


technom8t
09-04-2008, 10:00 PM
*** FIRST OFF I DO NOT ACCEPT ANY RESPONSIBILITY FOR LOST / STOLEN RAPIDSHARE ACCOUNT, USE AT YOUR OWN JUDGMENT ***

Ok what this mod will do is insert a button on your NEWTHREAD / NEWPOST template that will allow you to upload to a chosen RAPIDSHARE PREMIUM ACCOUNT. it will open a small java script box were you can browse and upload your files.

before we start you will need three thing

1. your rapidshare user name
2. your rapidshare password
3 you rapidshare upload id ( this can be found by logging into your premium zone and viewing the page source and then search for rsuploadid= 123456789.....)( this is the number you need i have attached the the following screen shot to show were in the page source you must look , i have highlighted the username and password details also but you should have these already :-) :
https://vborg.vbsupport.ru/external/2008/09/61.jpg

once you have these 3 peices of info you now need to insert them in to the relevant parts of the encrypt.php ( inc in the download file) see section of code highlighted red below for were to insert your login details and upload id :


PLEASE UPLOAD ALL THE FILES ATTACHED INTO YOUR FORUMS ROUTE DIRECTORY
--------------------------------------------------------------------------------------------------

</script>

<form name="ul" method="post" action="http://rs170cg.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=0123456789012345678" enctype="multipart/form-data" onsubmit="return zeigeProcess();">
<input type="hidden" name="login" value="*******" />
<input type="hidden" name="password" value="**********" />
<center>
<div id="progbar" style="display:none;">
<div style="font-size:8pt;">You are uploading:</div>
<p style="margin-top:0px;color:#8E908F;font-size:16pt;" id="dname">.</p>

<iframe src="http://rs170l3.rapidshare.com/progress.html?uploadid=0123456789012345678" name="pframe" width="100%" height="120" frameborder=0 marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div>
<div id="dateiwahl">
<table style="font-size:8pt;color:#002760;"><tr><td align=left>
<div id="files">
<a href="javascript:switchfiles()" style="font-size:8pt;color:#002760;">Do you want to upload several files? Please click here</a>
| Maximum upload size 200 MB | Split archives allowed!<br />
<input type="file" size="65" id="dateiname" name="filecontent" onchange="zeigeUploadBtn();" /><br />
<input type="checkbox" name="norelocate" value="1"> SHOW ME THE DOWNLOAD LINK
</div>

</td></tr></table>
<div style="font-size:8pt;padding-bottom:20px;">Choose your preferred Carrier:
<input name="mirror" type="radio" onclick="document.ul.action='http://rs170cg.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=12345678901234';" /> Cogent |
<input checked name="mirror" type="radio" onclick="document.ul.action='http://rs170l3.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=2345678901234';" /> Level3 |
<input name="mirror" type="radio" onclick="document.ul.action='http://rs170tl.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=2345678901234';" /> TeliaSonera
</div>
<input type=image id="btnupload" name="u" src="http://www.hacked-downloads.co.uk/forums/upload_file.jpg" style="visibility:hidden;" />
</div>
</center>
</form>
</div>


</body>
</html>
-------------------------------------------------------------------------------------------------------- REMEBER TO SAVE THE ENCRYPT.PHP FILE BEFORE UPLOADING



Now upload the ENCRYPT.php file to your forums route directory ( forums/ ) AS WELL AS ALL OTHER ATTACHED FILES

now on your NEWTHREAD AND NEW POST TEMPLATE

FIND

<!-- / message area -->

AND UNDER IT ADD

<<P></P>
<div style="border: thin white solid;">
<P></P>
&nbsp;<!--Rapidshare-->
<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
<!--
var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*( screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.rand om()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status= no,menubar=no,toolbar=no,resizable=yes";win=window.open(mypage,myname,settings);
win.focus();}
// -->
</script>

<a href="javascript:NewWindow('rapidpremium.php','rapid','7 00','200','center','front');">
<img src="images/rapid.jpg" border="0"></a>
<!--Rapidshare finished--> &nbsp;&nbsp;<b><center><strong><font color="red">USE THIS BUTTON IF YOU WANT TO UPLOAD A FILE TO RAPIDSHARE, THEN POST THE LINK</font></strong></center></b>
<P></P>
</div>

PRESS SAVE

please note the above code can be altered to suit your preference and forum colour, below is what it looks like on my forum, it can also be inserted anywhere you wish to have the upload button, i prefer it here TBH :

https://vborg.vbsupport.ru/external/2008/09/62.jpg

instructions on how to use......................



it is really simple, once all code is inserted onto your newthread / newpost template, go to do a new thread / post, you will see the upload button underneath the message box, press the upload button and you will see a small javasript window appear, this is were yo can browse for your file and uplaod it, now please note in order to receive the download link then and there you will have to tick the small check box on the bottom left of this javascript window, if you don't the file will be uploaded directly to the account without a download link

see screen :

https://vborg.vbsupport.ru/external/2008/09/63.jpg

This mod does NOT store your rapidshare details within the page source and i believe it to be 100% safe, i am using it just now, but once again i do not accept any responsibility for any lost or stolen rapidshare account!

it is also not supported although i will answer any post / queries for a short time :-)

I MAKE THIS CODE OPEN SOURCE ON THE HOPE THAT SOMEONE MAY BE ABLE TO IMPROVE IT IN SOME WAY

OH AND IF YOU LIKE THIS CODE THEN ANY DONATION VIA PAYPAL OF ANY KIND IS WELCOME :paypal = technom8t@sky.com

Hornstar
09-06-2008, 02:08 AM
Sounds like a good idea to save bandwidth, and with everyone uploading to the same account, RS gives you benefits right? so it sounds like a win win situation. except lots of people dislike or cant use RS because of waiting times etc.

I might check it out during my holidays. thanks for sharing.

technom8t
09-06-2008, 04:20 PM
Yup i agree mate, win win situation with this, and the biggest file hoster on the net, is rapidshare so should be plenty of call for this.....

blaskow
09-06-2008, 06:45 PM
People have been asking for this forever! I'm installing it tonight! PROPS! Thanks!:up::up::up:

bhanuprasad1981
09-06-2008, 07:34 PM
can this be done to other file hosting sites, i want to use my own site :D

juan71287
09-07-2008, 02:40 AM
Thank you installed!

laurens800
09-07-2008, 09:59 AM
nice

edermix
09-07-2008, 01:47 PM
Thanks Dude!!!!

rapidshare.vn
09-07-2008, 02:01 PM
you will lost your RapidShare Premium Account if member view your code (view source HTML) ^_^

juan71287
09-07-2008, 03:32 PM
you will lost your RapidShare Premium Account if member view your code (view source HTML) ^_^

Lol yeah i just noticed that. Not very safe. However, i've encrypted the files a bit. If anyone needs it i can post it :)

technom8t
09-07-2008, 04:25 PM
you will lost your RapidShare Premium Account if member view your code (view source HTML) ^_^

how is this??

technom8t
09-07-2008, 04:31 PM
Lol yeah i just noticed that. Not very safe. However, i've encrypted the files a bit. If anyone needs it i can post it :)


can you post what you mean please?

juan71287
09-07-2008, 04:34 PM
can you post were you just noticed this in your page source please, because its impossible as the details arent stored on there, they are in php file you upload to your server??

see above!!!!

The php is not stored but the login details are in the javascript and javascript its client sided not server sided. Just click the "upload to rapidshare" button then right click the page -> View source and you can see the login details there unless you encrypt the files like i did :)

technom8t
09-07-2008, 04:35 PM
The php is not stored but the login details are in the javascript and javascript its client sided not server sided. Just click the "upload to rapidshare" button then right click the page -> View source and you can see the login details there unless you encrypt the files like i did :)


yes just noticed and edited above posts , can you post what you did for others please?

thanks for pointing it out, didn't realize javascript would have given them :-(

juan71287
09-07-2008, 04:42 PM
yes just noticed and edited, can you post what you did for others please?

Sure here:
save this as encrypt.js:

document.write('<title>RapidShare Upload</title>');
document.write('<frameset rows="100%,*" framespacing="0" border="0">');
document.write('<frame frameborder="0" name="topFrame" src="encrypt.php" noresize="noresize" />');
document.write('</frameset>');

Save this as encrypt.php:

<html>
<head><title>RapidShare Upload</title>
<Style>
body {
font-family: Verdana;
font-size: 12px;
}
table {
font-family: Verdana;
font-size: 12px;
}
</Style>
</head>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<html xmlns="http://www.w3.org/1999/xhtml">

<body>
<script language=JavaScript>m='%3Cscript%20language%3DJavaScript%3E%3C%21--%0D%0A%0D%0Avar%20message%3D%22Function%20Disabled %21%22%3B%0D%0A%0D%0Afunction%20clickIE%28%29%20%2 0%7Bif%20%28document.all%29%20%7Balert%28message%2 9%3Breturn%20false%3B%7D%7D%0D%0Afunction%20clickN S%28e%29%20%7Bif%20%0D%0A%28document.layers%7C%7C% 28document.getElementById%26%26%21document.all%29% 29%20%7B%0D%0Aif%20%28e.which%3D%3D2%7C%7Ce.which% 3D%3D3%29%20%7Balert%28message%29%3Breturn%20false %3B%7D%7D%7D%0D%0Aif%20%28document.layers%29%20%0D %0A%7Bdocument.captureEvents%28Event.MOUSEDOWN%29% 3Bdocument.onmousedown%3DclickNS%3B%7D%0D%0Aelse%7 Bdocument.onmouseup%3DclickNS%3Bdocument.oncontext menu%3DclickIE%3B%7D%0D%0A%0D%0Adocument.oncontext menu%3Dnew%20Function%28%22return%20false%22%29%0D %0A%0D%0A//%20--%3E%3C/script%3E';d=unescape(m);document.write(d);</script>
<script type="text/javascript">
<!--
var multi = false;
function switchfiles() {
alert("Please note, the total sum of the files simultaneously uploading, cannot exceed 200 MB.");
var text = "";
for (i=1;i<11;i++) {
if (i < 10)
text += '0';
text += i+'.';
text += '<input type="file" size="65" onchange="zeigeUploadBtn();"';
text += ' id="dateiname';
if (i > 1)
text += i;
text += '" name="filecontent';
if (i > 1)
text += i;
text += '"><br />';
}
document.getElementById('files').innerHTML = text;
multi = true;
}
var ok = false;
function zeigeUploadBtn()
{
var dn = document.getElementById("dateiname").value;
dn = dn.replace(/^\s+|\s+$/g, '');
var Woerter = dn.split("\\");
var dateiname = Woerter[Woerter.length-1];
if (dn.length < 1)
{
ok = false;
return false;
}
ok = true;
document.getElementById("btnupload").style.visibility = "visible";
var elem = document.getElementById("dname");
elem.firstChild.nodeValue = dateiname;
if (multi) {
for (i=2;i<11;i++) {
dn = document.getElementById("dateiname"+i).value;
dn = dn.replace(/^\s+|\s+$/g, '');
Woerter = dn.split("\\");
dateiname = Woerter[Woerter.length-1];
if (dn.length > 1) {
elem.firstChild.nodeValue += ", "+dateiname;
}
}
}
}
function zeigeProcess()
{
if (!ok)
return false;
document.getElementById("dateiwahl").style.display = "none";
document.getElementById("progbar").style.display = "block";
return true;
}
//-->
</script>

<form name="ul" method="post" action="http://rs170cg.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=124627680596212864" enctype="multipart/form-data" onsubmit="return zeigeProcess();">
<input type="hidden" name="login" value="login" />
<input type="hidden" name="password" value="pass" />
<center>
<div id="progbar" style="display:none;">
<div style="font-size:8pt;">You are uploading:</div>
<p style="margin-top:0px;color:#8E908F;font-size:16pt;" id="dname">.</p>

<iframe src="http://rs170l3.rapidshare.com/progress.html?uploadid=012345678901234567" name="pframe" width="100%" height="120" frameborder=0 marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div>
<div id="dateiwahl">
<table style="font-size:8pt;color:#002760;"><tr><td align=left>
<div id="files">
<a href="javascript:switchfiles()" style="font-size:8pt;color:#002760;">Do you want to upload several files? Please click here</a>
| Maximum upload size 200 MB | Split archives allowed!<br />
<input type="file" size="65" id="dateiname" name="filecontent" onchange="zeigeUploadBtn();" /><br />
<input type="checkbox" name="norelocate" value="1"> SHOW ME THE DOWNLOAD LINK
</div>

</td></tr></table>
<div style="font-size:8pt;padding-bottom:20px;">Choose your preferred Carrier:
<input name="mirror" type="radio" onclick="document.ul.action='http://rs170cg.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=124627680596212864';" /> Cogent |
<input checked name="mirror" type="radio" onclick="document.ul.action='http://rs170l3.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=124627680596212864';" /> Level3 |
<input name="mirror" type="radio" onclick="document.ul.action='http://rs170tl.rapidshare.com/cgi-bin/upload.cgi?rsuploadid=124627680596212864';" /> TeliaSonera
</div>
<input type=image id="btnupload" name="u" src="http://www.hacked-downloads.co.uk/forums/upload_file.jpg" style="visibility:hidden;" />
</div>
</center>
</form>
</div>


</body>
</html>

save this as rapidpremium.php:
*** Encrypted code removed. Only visible source allowed on vB.org. ***

Upload & Replace, and done. People shouldn't be able to see your source code.

technom8t
09-07-2008, 04:45 PM
thanks if it works ill put you as co author ;-) LOL

juan71287
09-07-2008, 04:49 PM
thanks if it works ill put you as co author ;-) LOL

No problem :)

technom8t
09-07-2008, 04:55 PM
edit : important PM at you mate.....

Marco van Herwaarden
09-07-2008, 05:19 PM
Please note that we do not allow encrypted files on vB.org.

technom8t
09-07-2008, 05:37 PM
Hi,

No files posted here are encrypted, we are posting how to encrypt them once they are on someones server, all files are currently viewable on here as you will see

Thanks

blaskow
09-07-2008, 05:57 PM
I'm having a problem installing this mod. Any chance you could help me out? When I try to install the product in Vbulletin (3.7.2) I get the following error.


vBulletin Message


XML Error: > required at Line 90


Here's the line it's having problems with. :confused:


<iframe src="http://rs170l3.rapidshare.com/progress.html?uploadid=removedforprivacy" name="pframe" width="100%" height="120" frameborder=0 marginwidth="0" marginheight="0" scrolling="no"></iframe>


if you need the rest of the code please pm me. Thanks in advance!

Blaskow

technom8t
09-07-2008, 06:08 PM
this does NOT get imported as a plugin ??????

juan71287
09-07-2008, 07:37 PM
edit : important PM at you mate.....

Thanks a lot i didn't notice that :)

DoB Rhapsody
09-07-2008, 08:06 PM
Just for everyone's info. The "encryption" is very easy to get around. Pretty much just as easy as it is without it. I won't explain it because i don't want anyone else doing it..

juan71287
09-07-2008, 10:50 PM
Just for everyone's info. The "encryption" is very easy to get around. Pretty much just as easy as it is without it. I won't explain it because i don't want anyone else doing it..

if you know where encrypt.php is, its pretty easy lol. But then again you can change encrypt.php to a random string :p