Guest User

Untitled

a guest
Aug 25th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. Index: submit-event.php
  2. ===================================================================
  3. --- submit-event.php (revision 306898)
  4. +++ submit-event.php (working copy)
  5. @@ -44,8 +44,10 @@
  6. $errors[] = 'You must supply a valid email address.';
  7. }
  8.  
  9. - // Temporary lockout on one annoying poster.
  10. - if (strtolower($_POST['email']) == 'saradhaaa@gmail.com') {
  11. + // Temporary lockout of annoying users (better solution is needed)
  12. + $uemail = isset($_POST['email']) ? strtolower($_POST['email']) : '';
  13. + $mosquitoes = array('saradhaaa@gmail.com', 'mg-tuzi@yahoo.com.cn');
  14. + if (in_array($uemail, $mosquitoes)) {
  15. $errors[] = 'Enough is enough. Go play somewhere else.';
  16. }
Add Comment
Please, Sign In to add comment