Changeset 281

Show
Ignore:
Timestamp:
05/31/07 11:57:00
Author:
grahack
Message:

moved the img tag for the captcha in a view file (#61)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • FreakAuth/trunk/www/system/application/config/freakauth_light.php

    r276 r281  
    426426  $config['FAL_change_password_view'] = $config['FAL_template_dir'].'content/forms/change_password'; 
    427427   
     428 // CAPTCHA VIEW 
     429  $config['FAL_captcha_img_tag_view'] = $config['FAL_template_dir'].'content/forms/html_for_captcha'; 
     430   
    428431 // ERROR DELIMITERS 
    429432  //Opening tag for the validation error messages 
  • FreakAuth/trunk/www/system/application/helpers/freakauth_light_helper.php

    r276 r281  
    293293    return true; 
    294294} 
    295 // -------------------------------------------------------------------- 
    296 /** 
    297 * Convenient way to generate html code displaying the captcha 
    298 * using 'img' tag in a 'span class="note"' tag 
    299 * 
    300 * @return html code to show the captcha 
    301 */ 
    302 function show_captcha() 
    303 { 
    304     $obj =& get_instance(); 
    305     $img_html = '<span class="note">'; 
    306     $img_html.= '<img src="'.base_url().$obj->config->item('FAL_captcha_image_path').$obj->config->item('FAL_captcha_image').'" alt="captcha img" />'; 
    307     $img_html.= '</span>'; 
    308     return $img_html; 
    309 } 
    310295?> 
  • FreakAuth/trunk/www/system/application/views/FreakAuth_light/content/forms/forgotten_password.php

    r274 r281  
    2020                               'value'=>''))?> 
    2121    <?=(isset($this->fal_validation) ? $this->fal_validation->{'security'.'_error'} : '')?> 
    22     <?=show_captcha()?></p> 
     22    <?=$this->load->view($this->config->item('FAL_captcha_img_tag_view'), null, true)?></p> 
    2323    <?php }?> 
    2424    <!-- END CAPTCHA (security image)--> 
  • FreakAuth/trunk/www/system/application/views/FreakAuth_light/content/forms/login.php

    r274 r281  
    3232                               'value'=>''))?> 
    3333    <?=(isset($this->fal_validation) ? $this->fal_validation->{'security'.'_error'} : '')?> 
    34     <?=show_captcha()?></p> 
     34    <?=$this->load->view($this->config->item('FAL_captcha_img_tag_view'), null, true)?></p> 
    3535    <?php }?> 
    3636    <!-- END CAPTCHA (security image)--> 
  • FreakAuth/trunk/www/system/application/views/FreakAuth_light/content/forms/register.php

    r275 r281  
    5050                               'value'=>''))?> 
    5151    <?=(isset($this->fal_validation) ? $this->fal_validation->{'security'.'_error'} : '')?> 
    52     <?=show_captcha()?></p> 
     52    <?=$this->load->view($this->config->item('FAL_captcha_img_tag_view'), null, true)?></p> 
    5353    <?php }?> 
    5454    <!-- END CAPTCHA (security image)-->