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
1 changed files with 3 additions and 3 deletions

View File

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