Created
October 6, 2011 03:03
-
-
Save alganet/1266395 to your computer and use it in GitHub Desktop.
Nasty code sample.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //CAUTION: THIS IS SHIT. DO NOT USE THE CODE BELOW | |
| if ($userBirthday !== date('Y-m-d', $birthdayTime = strtotime($userBirthday)) | |
| || strtotime('now - 18 years') < $birthdayTime) { | |
| print "I'm invalid :("; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hahaha