Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12369
Latest: Dwaynee
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 40207
Total Topics: 7080
Most Online Today: 92
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 40
Total: 40

Author Topic: Can SMF Store support Rapidshare Direct Downloads ?  (Read 10187 times)

0 Members and 1 Guest are viewing this topic.

Offline knat

  • Newbie
  • *
  • Posts: 5
    • View Profile
Can SMF Store support Rapidshare Direct Downloads ?
« on: March 17, 2009, 06:32:50 am »
Hello

I am thinking of buying your software but i have questions.

I want to sell files that are hosted on rapidshare but buyers dont need a Rapidshare account to download them.
Rapidshare has a system where i can pay for what others download. Supports up to 2 Gb filesize.

Its called Secure Traffic share. And here is some information about it:



What is Secure TrafficShare?
With secure TrafficShare, you have the ability to limit the period in which files are available for downloading.
The expiry date of the download link is set by you. In this way, you can control for how long the file can be retrieved.
Secure TrafficShare enables you to make files available for downloading in a secure area of your website.
You have to have knowledge of programming to use this feature. 

How is the TrafficShare link made secure?
Change the relevant file into a secured TrafficShare file in your Premium Zone.
Create the download link as shown in the examples.
When calculating the expiry date, please note that in all cases our server time has to be used. You can see the current server time in the Premium Zone. If your local time is different, the programer has to take it into consideration and make the adjustments.

Example of a code in PERL for the creation of a secure TrafficShare link:
Example of normal download link: http://rapidshare.com/12345678/yourfile.zip

Code: [Select]
#!/usr/bin/perl
use strict;
use warnings;
use Digest::MD5("md5_hex");

my $premiumaccount = "12345";     # Insert Premium Account ID
my $fileid = "12345678";          # Insert File ID
my $filename = "yourfile.zip";    # Insert file name
my $killcode = "123456789012345"; # File Killcode. The Killcode can be viewed in the Premium Zone under "Export Details"
my $validuntil = time + 300;      # Effective for 300 seconds from now on
my $md5hex = md5_hex("$premiumaccount,$fileid,$killcode,$validuntil");

print "Secured link is: http://rapidshare.com/files/$fileid/t$validuntil-$md5hex/$filename";
                   
Example of a code in PHP for the creation of a secure TrafficShare link:
Example of normal download link: http://rapidshare.com/12345678/yourfile.zip

                   

Code: [Select]
<?
$premiumaccount = "12345";     // Insert Premium Account ID
$fileid = "12345678";          // Insert File ID
$filename = "yourfile.zip";    // Insert file name
$killcode = "123456789012345"; // File Killcode. The Killcode can be viewed in the Premium Zone under "Export Details"
$validuntil = time() + 300;    // Effective for 300 seconds from now on
$md5hex = md5($premiumaccount.",".$fileid.",".$killcode.",".$validuntil);

print "Secured link is: http://rapidshare.com/files/$fileid/t$validuntil-$md5hex/$filename";
?>
                   

Your program code should not be visible to others. For instance, a download link that is valid for 3 years could be created or the file could be deleted because the "Killcode" is included. If you offer the facility to generate download links on your website, you should under no circumstances program the process in JavaScript or any other client-side scripting language.

What time applies to the secure TrafficShare link?
The expiry date is calculated on our server. Thus the expiry date has to be based on the server time of RapidShare.
The current server time can be seen in the Premium Zone under "Overview".
Adjust the calculation of the time by adding or subtracting the difference between your local time and our server time.
If you are unsure, you can test the code by generating a link and accessing it before, and after the expected expiry time. 



Source: http://rapidshare.com/faq6.html

So my question is can i use the store to sell these links that will only work for a limited time ?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15104
    • View Profile
Re: Can SMF Store support Rapidshare Direct Downloads ?
« Reply #1 on: March 17, 2009, 07:51:36 am »
The store does support external links but does not allow you to insert php code to generate them that would require an edit to the store code.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline knat

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Can SMF Store support Rapidshare Direct Downloads ?
« Reply #2 on: March 17, 2009, 09:07:48 am »
Ok so it does not support it - to bad - thanks anyway, looks like a great piece of software :)

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
3319 Views
Last post May 19, 2008, 08:57:52 pm
by ApplianceJunk
7 Replies
6663 Views
Last post December 02, 2008, 02:32:52 am
by greatflash
8 Replies
24451 Views
Last post April 07, 2009, 12:12:30 am
by SMFHacks
1 Replies
4186 Views
Last post January 27, 2010, 06:56:57 pm
by SMFHacks
0 Replies
13478 Views
Last post September 19, 2012, 01:44:31 pm
by SMFHacks

+- Recent Topics

Font question by SMFHacks
May 27, 2020, 08:15:26 am

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

SMF4Mobile 2.0 released for SMF 2.0.x by SMFHacks
May 06, 2020, 12:13:14 pm

SMF Social Login Pro - Discontinued? by Nicole
May 02, 2020, 05:47:04 pm

Likes by SMFHacks
April 30, 2020, 09:50:35 pm

Upgrade Issue - by SMFHacks
April 28, 2020, 12:40:13 pm

Issues regarding Licenses and Domain by SMFHacks
April 28, 2020, 10:59:41 am

Powered by EzPortal