Changeset 281
- Timestamp:
- 05/31/07 11:57:00
- Files:
-
- FreakAuth/trunk/www/system/application/config/freakauth_light.php (modified) (1 diff)
- FreakAuth/trunk/www/system/application/helpers/freakauth_light_helper.php (modified) (1 diff)
- FreakAuth/trunk/www/system/application/views/FreakAuth_light/content/forms/forgotten_password.php (modified) (1 diff)
- FreakAuth/trunk/www/system/application/views/FreakAuth_light/content/forms/html_for_captcha.php (added)
- FreakAuth/trunk/www/system/application/views/FreakAuth_light/content/forms/login.php (modified) (1 diff)
- FreakAuth/trunk/www/system/application/views/FreakAuth_light/content/forms/register.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
FreakAuth/trunk/www/system/application/config/freakauth_light.php
r276 r281 426 426 $config['FAL_change_password_view'] = $config['FAL_template_dir'].'content/forms/change_password'; 427 427 428 // CAPTCHA VIEW 429 $config['FAL_captcha_img_tag_view'] = $config['FAL_template_dir'].'content/forms/html_for_captcha'; 430 428 431 // ERROR DELIMITERS 429 432 //Opening tag for the validation error messages FreakAuth/trunk/www/system/application/helpers/freakauth_light_helper.php
r276 r281 293 293 return true; 294 294 } 295 // --------------------------------------------------------------------296 /**297 * Convenient way to generate html code displaying the captcha298 * using 'img' tag in a 'span class="note"' tag299 *300 * @return html code to show the captcha301 */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 }310 295 ?> FreakAuth/trunk/www/system/application/views/FreakAuth_light/content/forms/forgotten_password.php
r274 r281 20 20 'value'=>''))?> 21 21 <?=(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> 23 23 <?php }?> 24 24 <!-- END CAPTCHA (security image)--> FreakAuth/trunk/www/system/application/views/FreakAuth_light/content/forms/login.php
r274 r281 32 32 'value'=>''))?> 33 33 <?=(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> 35 35 <?php }?> 36 36 <!-- END CAPTCHA (security image)--> FreakAuth/trunk/www/system/application/views/FreakAuth_light/content/forms/register.php
r275 r281 50 50 'value'=>''))?> 51 51 <?=(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> 53 53 <?php }?> 54 54 <!-- END CAPTCHA (security image)-->
