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/include.comments.tpl

    r1313 r1321  
    4141    <tr> 
    4242        <td align='right' class='tbl2'> 
    43             <a href='{$smarty.const.ADMIN}comments.php{$aidlink}&amp;ctype={$comment_type}&amp;cid={$comment_id}'>{$locale.c106}</a> 
     43            {buttonlink name=$locale.c106 link=$smarty.const.ADMIN|cat:"comments.php"|cat:$aidlink|cat:"&amp;ctype="|cat:$comment_type|cat:"&amp;cid="|cat:$comment_id} 
    4444        </td> 
    4545    </tr> 
     
    107107                </td> 
    108108                <td align='left' width='50%' class='tbl1'> 
    109                     <img id="captcha" src="{$smarty.const.INCLUDES}securimage-1.0.3/securimage_show.php" alt="CAPTCHA Image" /> 
     109                    {if $settings.validation_method == "text"} 
     110                        <span style='font-size:125%;font-weight:bold;'>{$validation_code|upper}</span> 
     111                    {else} 
     112                        <img id="captcha" src="{$smarty.const.INCLUDES}secureimage-1.0.3/securimage_show.php" alt="CAPTCHA Image" /> 
     113                    {/if} 
    110114                </td> 
    111115            </tr> 
     
    116120                <td align='left' width='50%' class='tbl1'> 
    117121                    <input type='text' name='captcha_code' class='textbox' style='vertical-align:middle;width:100px' /> 
     122                    {if $settings.validation_method == "image"} 
     123                        &nbsp; 
     124                        {buttonlink name=$locale.c114 link="document.getElementById(\"captcha\").src=\""|cat:$smarty.const.INCLUDES|cat:"secureimage-1.0.3/securimage_show.php?\"+Math.random(); return false;" script="yes"} 
     125                    {/if} 
    118126                </td> 
    119127            </tr> 
Note: See TracChangeset for help on using the changeset viewer.