mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 18:32:23 +01:00
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)) {
|
if (!empty($lasttime)) {
|
||||||
$time_lastcomment= mysql2date('U', $lasttime);
|
$time_lastcomment= mysql2date('U', $lasttime);
|
||||||
$time_newcomment= mysql2date('U', "$now");
|
$time_newcomment= mysql2date('U', "$now");
|
||||||
if (($time_newcomment - $time_lastcomment) < 30)
|
if (($time_newcomment - $time_lastcomment) < 10)
|
||||||
$ok=0;
|
$ok = 0;
|
||||||
}
|
}
|
||||||
/* end flood-protection */
|
/* end flood-protection */
|
||||||
|
|
||||||
@ -128,7 +128,7 @@ if ($ok) {
|
|||||||
header("Location: $location");
|
header("Location: $location");
|
||||||
}
|
}
|
||||||
} else {
|
} 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