actions.class.php 590 Bytes
Newer Older
Яков's avatar
first  
Яков committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

require_once(dirname(__FILE__).'/../../../lib/sfCaptchaGD.class.php');

/**
 * Captcha actions.
 *
 * @package    sfCaptchaGD
 * @subpackage sfCaptchaGDActions
 * @author     Alex Kubyshkin <glint@techinfo.net.ru>
 * @version    
 */
class sfCaptchaGDActions extends sfActions
{
  /**
   * Output captcha image
   *
   */
  public function executeGetImage()
  {
    $captcha = new sfCaptchaGD();
    $captcha->generateImage($this->getUser()->getAttribute('captcha', NULL));
    //$this->getUser()->setAttribute('captcha', $captcha->securityCode);
    
    return sfView::NONE;
  }
}