зеркало из https://github.com/mozilla/gecko-dev.git
Removing 10 minute rate limiting in order to troubleshoot bug 335794. Will reenable rate limiting using a different strategy once we verify this works (lowest common denominator is that non-rate limited counts work properly).
This commit is contained in:
Родитель
59eacee13b
Коммит
1adf7bc4dc
|
@ -45,6 +45,7 @@ if (!empty($_SERVER["HTTP_X_FORWARDED_FOR"])) {
|
|||
// Clean the user agent string.
|
||||
$http_user_agent = mysql_real_escape_string($_SERVER['HTTP_USER_AGENT']);
|
||||
|
||||
/*
|
||||
// Rate limit set to 10 minutes.
|
||||
$sql = "
|
||||
SELECT
|
||||
|
@ -63,13 +64,14 @@ $sql = "
|
|||
$db->query($sql,SQL_INIT,SQL_ASSOC);
|
||||
|
||||
if (empty($db->record)) {
|
||||
*/
|
||||
$db->query("
|
||||
INSERT INTO
|
||||
downloads (ID, date, vID, user_ip, user_agent)
|
||||
VALUES
|
||||
('${id}',NOW(),'{$vid}', '{$remote_addr}', '{$http_user_agent}')
|
||||
",SQL_NONE);
|
||||
}
|
||||
//}
|
||||
|
||||
// Set a no-cache header to make sure this page is never cached.
|
||||
header('Cache-control: no-cache');
|
||||
|
|
Загрузка…
Ссылка в новой задаче