Zend - The PHP Company




Code Gallery: c0dem0nkey


coppa_check  

Type: code fragment
Added by: c0dem0nkey
Entered: 31/10/2001
Last modified: 01/11/2000
Rating: - (fewer than 3 votes)
Views: 3950
This is a down and dirty COPPA age verifier. This function takes 3 args. A birthday, a birthmonth and a birthyear and returns the users actual age if it's good and false if it's non-compliant. Throw this into a general include file and slap it in your library and you won't have to worry if you're letting any kids in. This is an important issue since it's illegal to gather user data if the person is under 13 years old.




Search