1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Disable another annoying user

This commit is contained in:
Philip Olson
2010-12-31 05:51:57 +00:00
parent e9088b665f
commit 6afd67a35c

View File

@@ -44,9 +44,11 @@ if ($process) {
$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']);