Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default Downloads script

    I was wondering if anyone knew of any kind of script, where a user pays for something, the script confirms it, then generates a random download link, which is 1 use, for a file?

    I have tried google, I can find the random 1 time download link, but nothing with any kind of payment system.

  2. #2
    Join Date
    Jun 2005
    Posts
    2,850
    Tokens
    3,979
    Habbo
    Skynus

    Latest Awards:

    Default

    I don't understand what you mean?

  3. #3
    Join Date
    Jul 2007
    Location
    UK
    Posts
    2,470
    Tokens
    2,975

    Latest Awards:

    Default

    Quote Originally Posted by Skynus View Post
    I don't understand what you mean?
    Basically

    1) User adds digital download to cart
    2) User pays
    3) Script see's that they have paid, and the money has gone in
    4) Script generates a random download link to the file (www.web.com/file is made to www.web.com/download.php=23434234234)
    5) User downloads the file, and the link is destroyed by the script.
    6) Done,

  4. #4
    Join Date
    Jan 2010
    Location
    United Kingdom
    Posts
    846
    Tokens
    1,766
    Habbo
    triston220

    Latest Awards:

    Default

    Use rand() to generate a random ID. Check if this ID exists in the database. If not, add it. The table will have the following structure:

    `Generated`
    `scriptid`


    `scriptid` will link to a a table called `scripts`. This will contain the following:

    `id` (The data we are linking to)
    `filename`
    `filelocation`

    Get the relevant data and send the download. ^__^


    Quote Originally Posted by Jaaaack! View Post
    See, however much I want this, my girlfriend uses my PC too much, and I would be killed.





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •