PDA

View Full Version : One Question..



MrCraig
10-01-2008, 05:06 PM
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?

lolwut
10-01-2008, 05:34 PM
NO THERES NOT!!!!

Your user system is *REMOVED*

Edited by Cheekykarl (Forum Moderator): Please do not avoid the forum filter.

MrCraig
10-01-2008, 05:38 PM
Um, K, Random.

Any helpful suggestions.?

Chippiewill
11-01-2008, 01:21 PM
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?

MrCraig
11-01-2008, 04:24 PM
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.

Invent
11-01-2008, 04:32 PM
If it's encrypted then you can just use die() or unlink().

MrCraig
11-01-2008, 04:35 PM
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)

Invent
11-01-2008, 04:38 PM
Unlink() removes files.

MrCraig
11-01-2008, 04:43 PM
Yeah, just looked it up on php.net :)

i was thinking of doing



<?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?

Blob
11-01-2008, 05:50 PM
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)

MrCraig
11-01-2008, 10:58 PM
Nope.

I currently have a licencing code at the top of the functions file which is encrypted and which the script wont work without.

Want to hide these adverts? Register an account for free!