<?php
/***************************************************************************
 *                                                                          *
 * Copyright (c) 2005 ISPG Technologies (I) Pvt Ltd. All rights reserved.   *
 *                                                                          *
 * This  is  commercial  software,  only  users  who have purchased a valid *
 * license  and  accept  to the terms of the  License Agreement can install *
 * and use this program.                                                    *
 *                                                                          *
 ****************************************************************************
 * PLEASE READ THE FULL TEXT  OF THE SOFTWARE  LICENSE   AGREEMENT  IN  THE *
 * "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE.            *
 ****************************************************************************/
//
//$Id: AjaxcaptchaController.php, v 1.0 2011/06/14 20:52:11
//
class AjaxcaptchaController extends Controller {
    //Ajaxcaptcha generation
    public function ajaxcaptchagenerationAction() {
        $ObjImage = new ImageModel();
        $style    = isset($style) ? $style : '';
        $style    = $this->getSettingValue('security_settings', 'captcha', $style);
        $ObjImage->CaptchaSecurityImages($width = 100, $height = 30, $length = 6, $style);
    }
    //Ajaxcaptcha code generation
    public function ajaxcaptchagenerationcodeAction() {
        echo $_SESSION['captcha_val'];
    }
}