Skip to content

Commit

Permalink
Update captcha.gif.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rickbot-dot authored Jul 2, 2023
1 parent 6dca770 commit 2260b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion danger_zone/captcha.gif.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function generateCaptcha($width = 1240, $height = 120, $characters = 24)
imagettftext($image, 40, rand(-20, 20), ($i * ($width / strlen($_SESSION['captcha']))) + rand(5, 10), rand(($height / 2) - 10, ($height / 2) + 10), $textColor, $IP . "/captcha.ttf", $_SESSION['captcha'][$i]);
}
// Make the image harder to read by bots.
for ($i = 0; $i < 10000; $i++) {
for ($i = 0; $i < 75000; $i++) {
$dot_color = imagecolorallocate($image, 0,0,0);
$x = rand(0, $width);
$y = rand(0, $height);
Expand Down

0 comments on commit 2260b01

Please sign in to comment.