Decrease flood time threshhold.
git-svn-id: http://svn.automattic.com/wordpress/trunk@298 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
efe8ead7b7
commit
a14dc229b7
|
@ -77,8 +77,8 @@ $ok=1;
|
|||
if (!empty($lasttime)) {
|
||||
$time_lastcomment= mysql2date('U', $lasttime);
|
||||
$time_newcomment= mysql2date('U', "$now");
|
||||
if (($time_newcomment - $time_lastcomment) < 30)
|
||||
$ok=0;
|
||||
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