summaryrefslogtreecommitdiff
path: root/lib/captcha_gen.php
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2023-11-27 01:01:56 -0500
committerlolcat <will@lolcat.ca>2023-11-27 01:01:56 -0500
commit2519666e1c831f85836f9ce6d975d3ceb975c09d (patch)
tree86c68604aff9c7a0a430e70ef082195a4c3a717f /lib/captcha_gen.php
parent9fd993b47b8c1b6e3c9d9f0e8d43a85860230f59 (diff)
google web, videos and news, various other fixes
Diffstat (limited to 'lib/captcha_gen.php')
-rw-r--r--lib/captcha_gen.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/captcha_gen.php b/lib/captcha_gen.php
index 6728747..abcab7a 100644
--- a/lib/captcha_gen.php
+++ b/lib/captcha_gen.php
@@ -7,6 +7,7 @@ class captcha{
// check if we want captcha
if(config::BOT_PROTECTION !== 1){
+ apcu_inc("real_requests");
if($output === true){
$frontend->loadheader(
$get,
@@ -45,6 +46,8 @@ class captcha{
}else{
// the cookie is OK! dont die() and give results
+ apcu_inc("real_requests");
+
if($output === true){
$frontend->loadheader(
$get,
@@ -175,6 +178,8 @@ class captcha{
apcu_inc($key, 1, $stupid, 86400);
+ apcu_inc("real_requests");
+
setcookie(
"pass",
$key,
@@ -197,7 +202,7 @@ class captcha{
$error = "<div class=\"quote\">You were <a href=\"https://www.youtube.com/watch?v=e1d7fkQx2rk\" target=\"_BLANK\" rel=\"noreferrer nofollow\">kicked out of Mensa.</a> Please try again.</div>";
}
}
-
+
// get the positions for the answers
// will return between 3 and 6 answer positions
$range = range(0, 15);