Decrease flood time threshhold.

git-svn-id: https://develop.svn.wordpress.org/trunk@298 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2003-08-07 20:30:30 +00:00
parent 915cb42dc2
commit eb88ccfeca

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