Ignore:
Timestamp:
12/07/08 01:22:46 (3 years ago)
Author:
WanWizard
Message:

updated the authentication system to allow new authentication methods to be 'plugged in'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/templates/admin.settings_security.tpl

    r2035 r2095  
    9191        <tr> 
    9292            <td width='50%' class='tbl'> 
    93                 {$locale.537} 
    94             </td> 
    95             <td width='50%' class='tbl'> 
    96                 <select name='auth_method' class='textbox'> 
    97                     <option value='0'{if $auth_method == "0"} selected="selected"{/if}>{$locale.538}</option> 
    98                     <option value='1'{if $auth_method == "1"} selected="selected"{/if}>{$locale.539}</option> 
    99                     <option value='1+'{if $auth_method == "1+"} selected="selected"{/if}>{$locale.539}{$locale.541}{$locale.538}</option> 
    100                     <option value='2'{if $auth_method == "2"} selected="selected"{/if}>{$locale.540}</option> 
    101                     <option value='2+'{if $auth_method == "2+"} selected="selected"{/if}>{$locale.540}{$locale.541}{$locale.538}</option> 
    102                     {if $has_curl} 
    103                     <option value='3+'{if $auth_method == "3+"} selected="selected"{/if}>{$locale.538}{$locale.542}</option> 
    104                     {/if} 
    105                 </select> 
    106             </td> 
    107         </tr> 
    108         <tr> 
    109             <td width='50%' class='tbl'> 
    11093                {$locale.575} 
    11194            </td> 
     
    129112        </tr> 
    130113        <tr> 
    131             <td align='center' colspan='2' class='tbl'> 
    132                 <hr /> 
     114            <td width='50%' class='tbl'> 
     115                {$locale.529} 
     116            </td> 
     117            <td width='50%' class='tbl'> 
     118                <select name='login_expire' class='textbox'> 
     119                {section name=min start=0 loop=721 step=15} 
     120                <option value='{$smarty.section.min.index}' {if $smarty.section.min.index == $login_expire|default:0}selected='selected'{/if}>{if $smarty.section.min.index == 0}{$locale.714}{else}{$smarty.section.min.index} {$locale.531}{/if}</option> 
     121                {/section} 
     122                </select> 
     123            </td> 
     124        </tr> 
     125        <tr> 
     126            <td width='50%' class='tbl'> 
     127                {$locale.530} 
     128            </td> 
     129            <td width='50%' class='tbl'> 
     130                <select name='login_extended_expire' class='textbox'> 
     131                {section name=days start=0 loop=1441 step=1} 
     132                <option value='{$smarty.section.days.index}' {if $smarty.section.days.index == $login_extended_expire|default:0}selected='selected'{/if}>{if $smarty.section.days.index == 0}{$locale.714}{elseif $smarty.section.days.index == 1}1 {$locale.527}{else}{$smarty.section.days.index} {$locale.518}{/if}</option> 
     133                {/section} 
     134                </select> 
    133135            </td> 
    134136        </tr> 
     
    150152        </tr> 
    151153        <tr> 
    152             <td width='50%' class='tbl'> 
    153                 {$locale.529} 
    154             </td> 
    155             <td width='50%' class='tbl'> 
    156                 <select name='login_expire' class='textbox'> 
    157                 {section name=min start=0 loop=721 step=15} 
    158                 <option value='{$smarty.section.min.index}' {if $smarty.section.min.index == $login_expire|default:0}selected='selected'{/if}>{if $smarty.section.min.index == 0}{$locale.714}{else}{$smarty.section.min.index} {$locale.531}{/if}</option> 
    159                 {/section} 
    160                 </select> 
    161             </td> 
    162         </tr> 
    163         <tr> 
    164             <td width='50%' class='tbl'> 
    165                 {$locale.530} 
    166             </td> 
    167             <td width='50%' class='tbl'> 
    168                 <select name='login_extended_expire' class='textbox'> 
    169                 {section name=days start=0 loop=1441 step=1} 
    170                 <option value='{$smarty.section.days.index}' {if $smarty.section.days.index == $login_extended_expire|default:0}selected='selected'{/if}>{if $smarty.section.days.index == 0}{$locale.714}{elseif $smarty.section.days.index == 1}1 {$locale.527}{else}{$smarty.section.days.index} {$locale.518}{/if}</option> 
    171                 {/section} 
    172                 </select> 
    173             </td> 
    174         </tr> 
    175         <tr> 
    176154            <td align='center' colspan='2' class='tbl'> 
    177155                <br /> 
     
    182160</form> 
    183161{include file="_closetable.tpl"} 
     162{include file="_opentable.tpl" name=$_name title=$locale.577 state=$_state style=$_style} 
     163<table align='center' cellpadding='0' cellspacing='1' width='80%' class='tbl-border'> 
     164    <tr> 
     165        <td align='center' width='1%' class='tbl2' style='white-space:nowrap'> 
     166            <b>{$locale.578}</b> 
     167        </td> 
     168        <td align='center' width='1%' class='tbl2' style='white-space:nowrap'> 
     169            <b>{$locale.579}</b> 
     170        </td> 
     171        <td align='center' width='1%' class='tbl2' style='white-space:nowrap'> 
     172            <b>{$locale.580}</b> 
     173        </td> 
     174        <td align='center' width='1%' class='tbl2' style='white-space:nowrap'> 
     175            <b>{$locale.581}</b> 
     176        </td> 
     177        <td align='center' width='1%' class='tbl2' style='white-space:nowrap'> 
     178            <b>{$locale.582}</b> 
     179        </td> 
     180    </tr> 
     181    <br /> 
     182    {section name=id loop=$methods} 
     183        <tr> 
     184            <td align='center' width='1%' class='tbl1' style='white-space:nowrap'> 
     185                {$methods[id].name} 
     186            </td> 
     187            <td align='center' width='1%' class='tbl1' style='white-space:nowrap'> 
     188                {$methods[id].class} 
     189            </td> 
     190            <td align='center' width='1%' class='tbl1' style='white-space:nowrap'> 
     191                {if $methods[id].status == 1} 
     192                    {if !$smarty.section.id.first} 
     193                        {imagelink link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;action=up&amp;method_id="|cat:$smarty.section.id.index image="up.gif" alt=$locale.583 title=$locale.583} 
     194                    {/if} 
     195                    {if !$methods[id].last} 
     196                        {imagelink link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;action=down&amp;method_id="|cat:$smarty.section.id.index image="down.gif" alt=$locale.584 title=$locale.584} 
     197                    {/if} 
     198                {/if} 
     199            </td> 
     200            <td align='center' width='1%' class='tbl1' style='white-space:nowrap'> 
     201                {if $methods[id].status == 1} 
     202                    {$locale.586} 
     203                {else} 
     204                    {$locale.588} 
     205                {/if} 
     206            </td> 
     207            <td align='center' width='1%' class='tbl1' style='white-space:nowrap'> 
     208                {if $methods[id].status == 1} 
     209                    {imagelink link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;action=setstatus&amp;status=0&amp;authmethod="|cat:$methods[id].name image="page_red.gif" alt=$locale.587 title=$locale.587} 
     210                {else} 
     211                    {imagelink link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;action=setstatus&amp;status=1&amp;authmethod="|cat:$methods[id].name image="page_green.gif" alt=$locale.585 title=$locale.585} 
     212                {/if} 
     213            </td> 
     214        </tr> 
     215    {/section} 
     216</table> 
     217<br /> 
     218{include file="_closetable.tpl"} 
    184219{***************************************************************************} 
    185220{* End of template                                                         *} 
Note: See TracChangeset for help on using the changeset viewer.