Changeset 20

Show
Ignore:
Timestamp:
04/09/07 05:21:08
Author:
grahack
Message:

FAL: factorisation of the html code displaying the captcha, (corrects some html badness : now an 'alt' attribute and double quotes around 'note')

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • FreakAuth/trunk/www/system/application/libraries/Freakauth_light.php

    r18 r20  
    801801    } 
    802802         
     803    /** 
     804     * Convenient way to generate html code displaying the captcha 
     805     * using 'img' tag in a 'span class="note"' tag 
     806     * 
     807     * @return html code to show the captcha 
     808     */ 
     809    function show_captcha() { 
     810        $img_html = '<span class="note">'; 
     811        $img_html.= '<img src="'.base_url().$this->CI->config->item('FAL_security_code_image_path').$this->CI->config->item('FAL_security_code_image').'" alt="" />'; 
     812        $img_html.= '</span>'; 
     813        return $img_html; 
     814    } 
     815 
    803816    // -------------------------------------------------------------------- 
    804817    /** 
  • FreakAuth/trunk/www/system/application/views/FreakAuth_light/content/forgotten_password.php

    r2 r20  
    1919                               'value'=>''))?> 
    2020    <span><?=(isset($this->validation) ? $this->validation->{'security'.'_error'} : '')?></span> 
    21     <span class="note"><img src="<?=base_url().$this->config->item('FAL_security_code_image_path').$this->config->item('FAL_security_code_image') ?>"></span></p> 
     21    <?=$this->freakauth_light->show_captcha()?></p> 
    2222    <?php }?> 
    2323    <!-- END CAPTCHA (security image)--> 
  • FreakAuth/trunk/www/system/application/views/FreakAuth_light/content/login.php

    r2 r20  
    3131                               'value'=>''))?> 
    3232    <span><?=(isset($this->validation) ? $this->validation->{'security'.'_error'} : '')?></span> 
    33     <span class=note><img src="<?=base_url()?><?=$this->config->item('FAL_security_code_image_path').$this->config->item('FAL_security_code_image') ?>"></span></p> 
     33    <?=$this->freakauth_light->show_captcha()?></p> 
    3434    <?php }?> 
    3535    <!-- END CAPTCHA (security image)--> 
  • FreakAuth/trunk/www/system/application/views/FreakAuth_light/content/register.php

    r2 r20  
    5050                               'value'=>''))?> 
    5151    <span><?=(isset($this->validation) ? $this->validation->{'security'.'_error'} : '')?></span> 
    52     <span class="note"><img src="<?=base_url().$this->config->item('FAL_security_code_image_path').$this->config->item('FAL_security_code_image') ?>"></span></p> 
     52    <?=$this->freakauth_light->show_captcha()?></p> 
    5353    <?php }?> 
    5454    <!-- END CAPTCHA (security image)-->