Ignore:
Timestamp:
02/28/08 00:25:43 (4 years ago)
Author:
hverton
Message:

updated the Securimage code
fixed non-working text validation code
moved CMS_getOS() from dns_functions.php to core_functions.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/templates/main.contact.tpl

    r1313 r1321  
    6060                {$locale.411} 
    6161                <br /><br /> 
    62                 {$locale.412} <img id="captcha" src="{$smarty.const.INCLUDES}securimage-1.0.3/securimage_show.php" alt="CAPTCHA Image" /> 
     62                {$locale.412}  
     63                {if $settings.validation_method == "text"} 
     64                    <span style='font-size:125%;font-weight:bold;'>{$validation_code|upper}</span> 
     65                {else} 
     66                    <img id="captcha" src="{$smarty.const.INCLUDES}secureimage-1.0.3/securimage_show.php" alt="CAPTCHA Image" style='vertical-align:middle;'/> 
     67                {/if} 
     68                <br /><br /> 
    6369                {$locale.413} <input type='text' name='captcha_code' class='textbox' style='vertical-align:top;width:100px' /> 
     70                {if $settings.validation_method == "image"} 
     71                    &nbsp; 
     72                    {buttonlink name=$locale.415 link="document.getElementById(\"captcha\").src=\""|cat:$smarty.const.INCLUDES|cat:"secureimage-1.0.3/securimage_show.php?\"+Math.random(); return false;" script="yes"} 
     73                {/if} 
    6474                <br /><br /> 
    6575                <input type='submit' name='sendmessage' value='{$locale.406}' class='button' /> 
Note: See TracChangeset for help on using the changeset viewer.