Changeset 2080 in ExiteCMS


Ignore:
Timestamp:
11/29/08 11:48:04 (3 years ago)
Author:
WanWizard
Message:

fixed display of a login panel with http even when ssl was set as required

Location:
modules/common/login_panel/php-files/modules/login_panel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/common/login_panel/php-files/modules/login_panel/login_panel.php

    r2043 r2080  
    5959$variables['show_passlink'] = 1; 
    6060 
     61// can we show the login panel? 
     62$variables['show_login'] = $settings['auth_ssl'] == 0 || ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ); 
     63if (!iMEMBER && !$variables['show_login']) $no_panel_displayed = true; 
     64 
    6165$template_variables['modules.login_panel'] = $variables; 
    6266?> 
  • modules/common/login_panel/php-files/modules/login_panel/templates/modules.login_panel.tpl

    r2043 r2080  
    1818{*                                                                         *} 
    1919{***************************************************************************} 
    20 {if !$smarty.const.iMEMBER && ($settings.auth_ssl == 0 || $_SERVER.HTTPS|default:"" == "on")} 
     20{if $show_login} 
    2121    {include file="_openside.tpl" name=$_name title=$locale.060 state=$_state style=$_style} 
    2222    <div style='text-align:left'> 
Note: See TracChangeset for help on using the changeset viewer.