svn: /web/php/trunk/ submit-event.php

[email protected] (Philip Olson)
Newsgroups php.webmaster
Message-ID <[email protected]>
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']) == '[email protected]') {
-        $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('[email protected]', '[email protected]');
+    if (in_array($uemail, $mosquitoes)) {
+        $errors[] = 'Sorry an error has occurred, please try again later.';
     }

     $_POST['sdesc'] = trim($_POST['sdesc']);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.