Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: submit-event.php
- ===================================================================
- --- submit-event.php (revision 306898)
- +++ submit-event.php (working copy)
- @@ -44,8 +44,10 @@
- $errors[] = 'You must supply a valid email address.';
- }
- - // Temporary lockout on one annoying poster.
- - if (strtolower($_POST['email']) == 'saradhaaa@gmail.com') {
- + // Temporary lockout of annoying users (better solution is needed)
- + $uemail = isset($_POST['email']) ? strtolower($_POST['email']) : '';
- + $mosquitoes = array('saradhaaa@gmail.com', 'mg-tuzi@yahoo.com.cn');
- + if (in_array($uemail, $mosquitoes)) {
- $errors[] = 'Enough is enough. Go play somewhere else.';
- }
Add Comment
Please, Sign In to add comment