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 11

Thread: One Question..

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

    Latest Awards:

    Default One Question..

    Is there any way to limit the way that a system checks for licence validation?

    As i am currently experiencing a bit of lagg due to loads of users simultaneously checking to see if their licence is valid.

    I need a way that will only check say once a day but the users cannot be able to modifiy it in any way.

    (I was thinking about timestamping and adding a day on to the other timestamp, then overwriting the functions file rendering it useless if the licence is invalid, but thats very easily changed by the owner of the system (Not to mention if the server has some downtime, everyones functions files will delete themselves))

    Was also thinking about doing with cookies, say every 10 visits to the system, it would check licence. But again, it would have the same problem of getting the system to shut down.

    Any ideas?
    Coming and going...
    Highers are getting the better of me

  2. #2
    Join Date
    Apr 2006
    Location
    Leamington Spa
    Posts
    1,375
    Tokens
    72

    Latest Awards:

    Default

    NO THERES NOT!!!!

    Your user system is *REMOVED*

    Edited by Cheekykarl (Forum Moderator): Please do not avoid the forum filter.
    Last edited by VPSwow; 10-01-2008 at 05:45 PM.
    i've been here for over 8 years and i don't know why

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

    Latest Awards:

    Default

    Um, K, Random.

    Any helpful suggestions.?
    Coming and going...
    Highers are getting the better of me

  4. #4
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    Spamming is just sad.... Could you use cronjobs so that they check the same time each day and then keep that for the rest of the day?
    Chippiewill.


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

    Latest Awards:

    Default

    the problem isnt how to check only once every so often, its if the results of that test come up false, how to disable the panel.
    Coming and going...
    Highers are getting the better of me

  6. #6
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    If it's encrypted then you can just use die() or unlink().

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

    Latest Awards:

    Default

    never heard of unlink() before.

    It does die atm, but if its only checking the licencing once a day, i need a way to make the die() stay until it next checks (if you know what i mean)
    Coming and going...
    Highers are getting the better of me

  8. #8
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Unlink() removes files.

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

    Latest Awards:

    Default

    Yeah, just looked it up on php.net

    i was thinking of doing

    PHP Code:
    <?php
    if($licence!="valid")
    {
    $f_1 fopen('func.php','w');
    fwrite($f_1,'<?php die("Invalid Licence Provided!"); ?>');
    fclose($f_1);
    }
    ?>
    But surely there must be an easier way of doing?
    Last edited by MrCraig; 11-01-2008 at 04:50 PM.
    Coming and going...
    Highers are getting the better of me

  10. #10
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    I would have thought you would have a file structure like this:

    - license.php (encrypted - checks license)
    - header.php (includes license.php - encrypted (only some))
    - index.php (top bit encrypted that includes head.php)

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
  •