Jump to content

Need help!


Guest Xanza

Recommended Posts

Guest Xanza

I'm trying to make a VERY basic RapidShare Premium download script... Basically I want to be able to give a few select people the ability to download from rapidshare.com using my premium account... What I have so far will work... Sorta.. haha, but not only are they able to download, they could steal the account if they want. I need this to be in all PHP, but I'm not quite sure how.. :(

 

 

<?php

$url = $_GET['d'];
$file = explode("/", $url);
$username = "username";
$passwd = "password";

echo "<center>";
echo "<form action=\"http://rapidshare.com/cgi-bin/premium.cgi\" target=\"iframe\" method=\"post\">";
echo "<input type=\"hidden\" name=\"premiumlogin\" value=\"1\" />";
echo "<input type=\"hidden\" name=\"fileid\" value=\"112601773\" /><input type=\"hidden\" name=\"filename\" value=\"$file[5]\" />";
echo "<input type=\"hidden\" name=\"serverid\" value=\"343\" /><table border=\"0\" cellspacing=\"0\" cellpadding=\"3\">";
echo "<input type=\"hidden\" name=\"accountid\" value=\"$username\" />";
echo "<input type=\"hidden\" name=\"password\" value=\"$passwd\" />";
echo "<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" value=\"Download $file[5]\" /></td></tr></table></form>";
echo "<iframe src=\"\" width=\"50%\" height=\"50%\" name=\"iframe\" id=\"iframe\"></iframe>";
echo "</center>";

?>

 

It's kinda effed up, but what ever, it's late. :)

 

I know the iframe is visible right now, but it won't be when I'm going to use it.. But if anyone is able to help with this, I would appreciate it alot!

 

What I want: I want a person to be able to go to a site (http://site.com/download.php?http://rapidshare.com/files/112601773/T-h-a-n-k-Y-o-u.rar) and be able to download "http://rapidshare.com/files/112601773/T-h-a-n-k-Y-o-u.rar" using a pre-set rapidshare premium account - but I do not want it to be available in the source, and since rapidshare sets cookies, I want the cookies to be deleted after the download completes...

 

Any help would be very appreciated!

Link to comment
https://forums.phpfreaks.com/topic/111804-need-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.