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!


Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Aug 2008
    Location
    Australia!
    Posts
    33
    Tokens
    0

    Default PHP Licensing system

    I have been planning to make a PHP Licensing system for a few days, except I'm having a little bit of trouble.
    Coding isn't a problem.
    Just that, If I make users put a script onto their products, why can't purchases just remove the script.

    Please help me, with any ideas, on how I could do this.
    Thankyou


    Ryzie.

  2. #2
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Quote Originally Posted by Ryzie View Post
    I have been planning to make a PHP Licensing system for a few days, except I'm having a little bit of trouble.
    Coding isn't a problem.
    Just that, If I make users put a script onto their products, why can't purchases just remove the script.

    Please help me, with any ideas, on how I could do this.
    Thankyou


    Ryzie.
    Nothing is stopping them from removing the script, hence why you need to use an encoded file.

    Use some logic here..

    Encode the installation file, during installation have them input their key, then query your server.. if it is right it returns an encoded version of your core, inside the core is the main check system (which communicates with your license server).

    That way if the key is not valid, the main communication point in the application (the core), is not going to work.

    Here's how it would work in my situation.

    -- TehUpload
    ---- core
    ----- database
    ----- upload
    ----- user
    ------- album
    ----- filemanagement

    All those are under TehUpload, which is under core.

    If you remove the core.. here's what happens.

    -- TehUpload
    ---------------
    ----- database
    ----- upload
    ----- user
    ------- album
    ----- filemanagement

    There's no communication point between the application and the rest of the things. Would work logically, not sure if it would work practically

  3. #3
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    Basicly do what celeb said.

    Encode a key file and include the lisence script in that.

  4. #4
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Kinda hard to do though as you'll have to encode all your clients functions files using ioncube or zend unless people would find a way to hack out the licencing system. :S

    Youd probably have to stick to just obfuscilating it and use ioncube to encode the de-obfuscilating file and then try find a way so users cant echo out the de-obfuscilated code. :S
    Coming and going...
    Highers are getting the better of me

  5. #5
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Not all of them, you only need one file encoded, as well as the installation files.

    All of the files can be normal, except the core.

  6. #6
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Noo i meant:

    All - referring to the clients he has
    functions files - meaning the function file each of his clients has
    Coming and going...
    Highers are getting the better of me

  7. #7
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Just encode the file that relates to the licensing and make sure that if they delete the file everything stops working, rather than being able to continue somehow.

    Easiest if everything is encoded.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  8. #8
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Yeah, but it's a pain, and nobody can develop for it.. so it's easier with my method.

  9. #9
    Join Date
    May 2007
    Posts
    467
    Tokens
    0

    Default

    Yea as Dentafrice and someone else said just encode your install files and a core/license file.

  10. #10
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Just have it in the construct of your core, that when it is constructed, it automatically calls a function inside which does the license checking.

Page 1 of 2 12 LastLast

Posting Permissions

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