aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-05-27 22:35:10 -0700
committerPinapelz <yukais@pinapelz.com>2026-05-27 22:35:10 -0700
commitc782c5a1be006b8cd9e2bc1928afa38ade3a254f (patch)
tree1e6880abe34c3a1869287f5d4dafbaab411c2e05
parentaf79a76c78d7886a365784ac6d1895f65c1c381e (diff)
adjust captcha difficulty
-rwxr-xr-xcaptcha.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/captcha.php b/captcha.php
index 49e6c5b..8592d44 100755
--- a/captcha.php
+++ b/captcha.php
@@ -39,13 +39,13 @@ header("Last-Modified: Thu, 01 Oct 1970 00:00:00 GMT");
// ** generate captcha data
// get the positions for the answers
-// will return between 3 and 6 answer positions
+// will return between 3 and 5 answer positions
$range = range(0, 15);
$answer_pos = [];
array_splice($range, 0, 1);
-$picks = random_int(3, 6);
+$picks = random_int(3, 5);
for($i=0; $i<$picks; $i++){
@@ -95,7 +95,7 @@ for($i=0; $i<16; $i++){
apcu_store(
$_GET["v"],
$answer_pos,
- 60 // we give user 1 minute to solve
+ 90 // we give user 1 minute 30 sec to solve
);
// generate image
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage