Minor wording change in log entry in article-flat.php
This commit is contained in:
parent
92c932cf75
commit
0dfad99982
|
@ -26,7 +26,7 @@
|
||||||
if (($rate > .15) && ($_SESSION['views'] > 5)) {
|
if (($rate > .15) && ($_SESSION['views'] > 5)) {
|
||||||
header("HTTP/1.0 429 Too Many Requests");
|
header("HTTP/1.0 429 Too Many Requests");
|
||||||
if(!isset($_SESSION['throttled'])) {
|
if(!isset($_SESSION['throttled'])) {
|
||||||
file_put_contents($logfile, "\n".format_log_date()." ".$config_name." Too many requests from ".$_SERVER['REMOTE_ADDR']." requesting: ".$group, FILE_APPEND);
|
file_put_contents($logfile, "\n".format_log_date()." ".$config_name." Too many requests from ".$_SERVER['REMOTE_ADDR']." throttling", FILE_APPEND);
|
||||||
$_SESSION['throttled'] = true;
|
$_SESSION['throttled'] = true;
|
||||||
}
|
}
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
Loading…
Reference in New Issue