From 232aa1924c8c0f10d87b210b46c9f061af5c844c Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 17 Oct 2010 13:29:57 +0000 Subject: added files --- .../Application/Controllers/ImageController.php | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 h-source/Application/Controllers/ImageController.php (limited to 'h-source/Application/Controllers/ImageController.php') diff --git a/h-source/Application/Controllers/ImageController.php b/h-source/Application/Controllers/ImageController.php new file mode 100644 index 0000000..471c634 --- /dev/null +++ b/h-source/Application/Controllers/ImageController.php @@ -0,0 +1,39 @@ +. + +if (!defined('EG')) die('Direct access not allowed!'); + +class ImageController extends Controller { + + public function captcha() + { + session_start(); + + $params = array( + 'fontPath' => ROOT.'/External/Fonts/FreeFont/FreeMono.ttf', + 'boxHeight' => 100, + 'boxWidth' => 200, + 'undulation'=> true, + 'align' => false + ); + + $captcha = new Image_Gd_Captcha($params); + $captcha->render(); + } + +} \ No newline at end of file -- cgit v1.2.3