-
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?
-
NO THERES NOT!!!!
Your user system is *REMOVED*
Edited by Cheekykarl (Forum Moderator): Please do not avoid the forum filter.
-
Um, K, Random.
Any helpful suggestions.?
-
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?
-
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.
-
If it's encrypted then you can just use die() or unlink().
-
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)
-
-
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?
-
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)