PDA

View Full Version : some hacking help


cyrus
11-24-2001, 12:11 PM
I have a sms feature on my website, but have made it so people have to register via vbulletin to be able to sms.

When they are allowed, they get directed to sms.php

BUT

I have a problem people peolpe register and use the sms feature too much, costs me $$$ !!

So I want to make it to they can only use the sms feature a maximum of 4 times a day.

Any ideas on what I should do ?

cyrus
11-26-2001, 06:30 PM
?

amykhar
11-26-2001, 06:33 PM
you could put a counter field and a date field in your user table.

Then, have your sms script check the counter first to see if they have used their allocated amount. The SMS script would increment the counter each time, but reset it any time the date has changed.

Amy