svn: /web/php/trunk/ submit-event.php
| From: | Philip Olson | Date: | Fri, 31 Dec 2010 05:51:57 +0000 |
| Subject: | svn: /web/php/trunk/ submit-event.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-10117@lists.php.net to get a copy of this message | ||
philip Fri, 31 Dec 2010 05:51:57 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306902
Log:
Disable another annoying user
Changed paths:
U web/php/trunk/submit-event.php
Modified: web/php/trunk/submit-event.php
===================================================================
--- web/php/trunk/submit-event.php 2010-12-31 05:37:08 UTC (rev 306901)
+++ web/php/trunk/submit-event.php 2010-12-31 05:51:57 UTC (rev 306902)
@@ -44,9 +44,11 @@
$errors[] = 'You must supply a valid email address.';
}
- // Temporary lockout on one annoying poster.
- if (strtolower($_POST['email']) == 'saradhaaa@gmail.com') {
- $errors[] = 'Enough is enough. Go play somewhere else.';
+ // 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[] = 'Sorry an error has occurred, please try again later.';
}
$_POST['sdesc'] = trim($_POST['sdesc']);