Skip to content
Snippets Groups Projects
Commit bc18f06f authored by Tim Repke's avatar Tim Repke
Browse files

changed captcha font to be absolute

parent 4aaed043
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ function captchaForCode($code)
imagefill($img, 0, 0, $bgcol);
for($x = 0; $x < $code_len; $x++){
$col = imagecolorallocate($img, rand(80, 255), rand(80, 255), rand(80, 255));
imagettftext($img, 40, 0, 20 + (45 * $x), 64, $col, "km.ttf", substr($code, $x, 1));
imagettftext($img, 40, 0, 20 + (45 * $x), 64, $col, __DIR__."/km.ttf", substr($code, $x, 1));
}
header('Content-Type: image/png');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment