quote:
Originally posted by bigbob85
As far as I can tell, most of the problems you've pointed out, are due to there only being one 'monitored' email address.
...and that you use a timer but didn't take in account that the user can log out (and a new user log in) while the timer is still running; timers aren't reset or cancelled when you log out.
quote:
Originally posted by bigbob85
Ill see if I can work around this a separate way. Multidimensional arrays or something I think. Would that be the right way to go? If not, can you point me in the right way .
It shouldn't be a seperate workaround though. It should be the barbone back of the whole script. Thus, the main thing which the whole script is based upon, not some 'extra' thing.
As for arrays, that's indeed the way to go, but you don't need multidimensional arrays. What are you going to store in a multidimensional array?
The thing you need to store are the monitored email addresses, thus just a list, or just 1 array with 1 dimension...
See the link I posted in my first post for a "anti-toast"/"flood detection" script. Study the source, read the comments, etc. Try to understand why certain things are done (or not done) in that script.
eg: why don't I cancel any timer in that script, while I just said in my posts here in this thread that timers keep on running when a user logs out and thus can cause unwanted effects? etc...