Decrease flood time threshhold.

git-svn-id: http://svn.automattic.com/wordpress/trunk@298 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-08-07 20:30:30 +00:00
parent efe8ead7b7
commit a14dc229b7

View File

@ -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.');
}
?>