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.register.tpl

    r1315 r1321  
    1717{include file="_opentable.tpl" name=$_name title=$locale.400 state=$_state style=$_style} 
    1818<center> 
    19     {$locale.500} 
    20     {if $settings.email_verification == "1"}{$locale.501}{/if} 
    21     {$locale.502} 
    22     {if $settings.email_verification == "1"}{$locale.503}{/if} 
     19    {$locale.500}<br /> 
     20    {$locale.502}<br /> 
    2321</center> 
    2422<br /> 
    25 <table align='center' cellpadding='0' cellspacing='0'> 
    26     <form name='inputform' method='post' action='{$smarty.const.FUSION_SELF}' onSubmit='return ValidateForm(this)'> 
     23<form name='inputform' method='post' action='{$smarty.const.FUSION_SELF}' onsubmit='return ValidateForm(this)'> 
     24    <table align='center' cellpadding='0' cellspacing='0'> 
    2725        <tr> 
    2826            <td class='tbl'> 
     
    3129            </td> 
    3230            <td class='tbl'> 
    33                 <input type='text' name='username' maxlength='30' class='textbox' style='width:200px;'> 
     31                <input type='text' name='username' maxlength='30' class='textbox' style='width:200px;' /> 
    3432            </td> 
    3533        </tr> 
     
    4038            </td> 
    4139            <td class='tbl'> 
    42                 <input type='text' name='fullname' maxlength='50' class='textbox' style='width:200px;'> 
     40                <input type='text' name='fullname' maxlength='50' class='textbox' style='width:200px;' /> 
    4341            </td> 
    4442        </tr> 
     
    4947            </td> 
    5048            <td class='tbl'> 
    51                 <input type='password' name='password1' maxlength='20' class='textbox' style='width:200px;'> 
     49                <input type='password' name='password1' maxlength='20' class='textbox' style='width:150px;' /> 
    5250            </td> 
    5351        </tr> 
     
    5856            </td> 
    5957            <td class='tbl'> 
    60                 <input type='password' name='password2' maxlength='20' class='textbox' style='width:200px;'> 
     58                <input type='password' name='password2' maxlength='20' class='textbox' style='width:150px;' /> 
    6159            </td> 
    6260        </tr> 
     
    6765            </td> 
    6866            <td class='tbl'> 
    69                 <input type='text' name='email' maxlength='100' class='textbox' style='width:200px;'> 
    70             </td> 
    71         </tr> 
     67                <input type='text' name='email' maxlength='100' class='textbox' style='width:250px;' /> 
     68            </td> 
     69        </tr> 
     70        {if $settings.email_verification == "1"} 
     71            <tr> 
     72                <td class='tbl' colspan='2'> 
     73                    {$locale.501} 
     74                </td> 
     75            </tr> 
     76        {/if} 
    7277        <tr> 
    7378            <td class='tbl'> 
     
    7580            </td> 
    7681            <td class='tbl'> 
    77                 <input type='radio' name='user_hide_email' value='1'>{$locale.u007} 
    78                 <input type='radio' name='user_hide_email' value='0' checked>{$locale.u008} 
     82                <select name='user_hide_email' class='textbox'> 
     83                    <option value='1'>{$locale.u007}</option> 
     84                    <option value='0' checked="checked">{$locale.u008}</option> 
     85                </select> 
    7986            </td> 
    8087        </tr> 
     
    103110                </td> 
    104111                <td class='tbl'> 
    105                     <img id="captcha" src="{$smarty.const.INCLUDES}secureimage-1.0.3/securimage_show.php" alt="CAPTCHA Image" /> 
     112                    {if $settings.validation_method == "text"} 
     113                        <span style='font-size:125%;font-weight:bold;'>{$validation_code|upper}</span> 
     114                    {else} 
     115                        <img id="captcha" src="{$smarty.const.INCLUDES}secureimage-1.0.3/securimage_show.php" alt="CAPTCHA Image" /> 
     116                    {/if} 
    106117                </td> 
    107118            </tr> 
     
    111122                </td> 
    112123                <td class='tbl'> 
    113                     <input type='text' name='captcha_code' class='textbox' style='width:100px'> 
     124                    <input type='text' name='captcha_code' class='textbox' style='width:100px' /> 
     125                    {if $settings.validation_method == "image"} 
     126                        &nbsp; 
     127                        {buttonlink name=$locale.508 link="document.getElementById(\"captcha\").src=\""|cat:$smarty.const.INCLUDES|cat:"secureimage-1.0.3/securimage_show.php?\"+Math.random(); return false;" script="yes"} 
     128                    {/if} 
    114129                </td> 
    115130            </tr> 
     
    118133            <tr> 
    119134                <td class='tbl'> 
    120                     {$locale.u009}</td> 
    121                 <td class='tbl'> 
    122                     <input type='text' name='user_location' maxlength='50' class='textbox' style='width:200px;'> 
     135                    {$locale.u009} 
     136                </td> 
     137                <td class='tbl'> 
     138                    <input type='text' name='user_location' maxlength='50' class='textbox' style='width:200px;' /> 
    123139                </td> 
    124140            </tr> 
     
    136152                </td> 
    137153                <td class='tbl'> 
    138                     <input type='text' name='user_aim' maxlength='16' class='textbox' style='width:200px;'> 
     154                    <input type='text' name='user_aim' maxlength='16' class='textbox' style='width:200px;' /> 
    139155                </td> 
    140156            </tr> 
     
    144160                </td> 
    145161                <td class='tbl'> 
    146                     <input type='text' name='user_icq' maxlength='15' class='textbox' style='width:200px;'> 
     162                    <input type='text' name='user_icq' maxlength='15' class='textbox' style='width:200px;' /> 
    147163                </td> 
    148164            </tr> 
     
    152168                </td> 
    153169                <td class='tbl'> 
    154                     <input type='text' name='user_msn' maxlength='100' class='textbox' style='width:200px;'> 
     170                    <input type='text' name='user_msn' maxlength='100' class='textbox' style='width:200px;' /> 
    155171                </td> 
    156172            </tr> 
     
    160176                </td> 
    161177                <td class='tbl'> 
    162                     <input type='text' name='user_yahoo' maxlength='100' class='textbox' style='width:200px;'> 
     178                    <input type='text' name='user_yahoo' maxlength='100' class='textbox' style='width:200px;' /> 
    163179                </td> 
    164180            </tr> 
     
    168184                </td> 
    169185                <td class='tbl'> 
    170                     <input type='text' name='user_web' maxlength='100' class='textbox' style='width:200px;'> 
     186                    <input type='text' name='user_web' maxlength='100' class='textbox' style='width:200px;' /> 
    171187                </td> 
    172188            </tr> 
     
    188204                </td> 
    189205                <td class='tbl'> 
    190                     <textarea name='user_sig' rows='5' class='textbox' style='width:295px'>{$userdata.user_sig}</textarea><br> 
    191                     <input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onClick="addText('user_sig', '[b]', '[/b]');"> 
    192                     <input type='button' value='i' class='button' style='font-style:italic;width:25px;' onClick="addText('user_sig', '[i]', '[/i]');"> 
    193                     <input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onClick="addText('user_sig', '[u]', '[/u]');"> 
    194                     <input type='button' value='url' class='button' style='width:30px;' onClick="addText('user_sig', '[url]', '[/url]');"> 
    195                     <input type='button' value='mail' class='button' style='width:35px;' onClick="addText('user_sig', '[mail]', '[/mail]');"> 
    196                     <input type='button' value='img' class='button' style='width:30px;' onClick="addText('user_sig', '[img]', '[/img]');"> 
    197                     <input type='button' value='center' class='button' style='width:45px;' onClick="addText('user_sig', '[center]', '[/center]');"> 
    198                     <input type='button' value='small' class='button' style='width:40px;' onClick="addText('user_sig', '[small]', '[/small]');"> 
     206                    <textarea name='user_sig' rows='5' class='textbox' style='width:295px'>{$userdata.user_sig}</textarea><br /> 
     207                    <input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onClick="addText('user_sig', '[b]', '[/b]');" /> 
     208                    <input type='button' value='i' class='button' style='font-style:italic;width:25px;' onClick="addText('user_sig', '[i]', '[/i]');" /> 
     209                    <input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onClick="addText('user_sig', '[u]', '[/u]');" /> 
     210                    <input type='button' value='url' class='button' style='width:30px;' onClick="addText('user_sig', '[url]', '[/url]');" /> 
     211                    <input type='button' value='mail' class='button' style='width:35px;' onClick="addText('user_sig', '[mail]', '[/mail]');" /> 
     212                    <input type='button' value='img' class='button' style='width:30px;' onClick="addText('user_sig', '[img]', '[/img]');" /> 
     213                    <input type='button' value='center' class='button' style='width:45px;' onClick="addText('user_sig', '[center]', '[/center]');" /> 
     214                    <input type='button' value='small' class='button' style='width:40px;' onClick="addText('user_sig', '[small]', '[/small]');" /> 
    199215                </td> 
    200216            </tr> 
     
    203219            <td align='center' colspan='2'> 
    204220                <br /> 
    205                 <input type='submit' name='register' value='{$locale.506}' class='button'> 
    206             </td> 
    207         </tr> 
    208     </form> 
    209 </table> 
     221                <input type='submit' name='register' value='{$locale.506}' class='button' /> 
     222            </td> 
     223        </tr> 
     224    </table> 
     225    <center> 
     226        {if $settings.email_verification == "1"}<br />{$locale.503}<br />{/if} 
     227    </center> 
     228</form> 
    210229{include file="_closetable.tpl"} 
    211 {literal}<script language='JavaScript'> 
     230{literal}<script type='text/javascript' language='javascript'> 
    212231// 
    213232// calculate the offset between browser and server time 
Note: See TracChangeset for help on using the changeset viewer.