aboutsummaryrefslogtreecommitdiff
path: root/h-source/Library/Image/Gd/Captcha.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-07-28 20:27:23 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-07-28 20:27:23 +0000
commite7b3717614621f14695ab6ca6dda6dd17ba3d65c (patch)
treec8e6061aef3ff7bad5a17e1aecaf441d35e282cb /h-source/Library/Image/Gd/Captcha.php
parent0de74c6879d263645770de3d6b3ce7123f5241d6 (diff)
added new easygiant library
Diffstat (limited to 'h-source/Library/Image/Gd/Captcha.php')
-rw-r--r--h-source/Library/Image/Gd/Captcha.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/h-source/Library/Image/Gd/Captcha.php b/h-source/Library/Image/Gd/Captcha.php
index b414b13..8a128eb 100644
--- a/h-source/Library/Image/Gd/Captcha.php
+++ b/h-source/Library/Image/Gd/Captcha.php
@@ -39,7 +39,8 @@ class Image_Gd_Captcha
'fontPath' => $here.'/External/Fonts/FreeFont/FreeMono.ttf',
'undulation' => true,
'align' => false,
- 'charHeight' => 28
+ 'charHeight' => 28,
+ 'sessionKey' => 'captchaString',
);
//set the $this->scaffold->params array
@@ -91,7 +92,7 @@ class Image_Gd_Captcha
imagefilledellipse($img, mt_rand(0,$this->params['boxWidth']), mt_rand(0,$this->params['boxHeight']), 1, 1, $noiseColor);
}
- $_SESSION['captchaString'] = $this->string;
+ $_SESSION[$this->params['sessionKey']] = $this->string;
header('Content-Type: image/png');
imagepng($img);
imagedestroy($img);