Decrease flood time threshhold.
git-svn-id: https://develop.svn.wordpress.org/trunk@298 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
915cb42dc2
commit
eb88ccfeca
@ -77,7 +77,7 @@ $ok=1;
|
||||
if (!empty($lasttime)) {
|
||||
$time_lastcomment= mysql2date('U', $lasttime);
|
||||
$time_newcomment= mysql2date('U', "$now");
|
||||
if (($time_newcomment - $time_lastcomment) < 30)
|
||||
if (($time_newcomment - $time_lastcomment) < 10)
|
||||
$ok = 0;
|
||||
}
|
||||
/* end flood-protection */
|
||||
@ -128,7 +128,7 @@ if ($ok) {
|
||||
header("Location: $location");
|
||||
}
|
||||
} else {
|
||||
die('Sorry, you can only post a new comment once every 30 seconds.');
|
||||
die('Sorry, you can only post a new comment once every 10 seconds.');
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user