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

updated the login_panel to use the new authentication templates

File:
1 edited

Legend:

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

    r2096 r2100  
    2626$variables['login_expiry']  = (iADMIN && isset($_SESSION['login_expire'])) ? time_system2local($_SESSION['login_expire']) : ""; 
    2727 
    28 // get which authentication to show 
    29 $variables['auth_methods'] = $GLOBALS['cms_authentication']->selected; 
    30 $variables['method_count'] = count($variables['auth_methods']); 
    31 $variables['auth_state'] = array(); 
    32 foreach($variables['auth_methods'] as $key => $method) { 
    33     if (isset($_SESSION['box_login2'.$key])) { 
    34         $variables['auth_state'][] = $_SESSION['box_login2'.$key] == 0 ? 1 : 0; 
    35     } else { 
    36         $variables['auth_state'][] = 1; 
    37     } 
    38 } 
     28// get the login templates to allow authentication 
     29$variables['auth_templates'] = $GLOBALS['cms_authentication']->get_templates("side"); 
    3930 
    4031// check if we need to display a registration link 
     
    6152// can we show the login panel? 
    6253$variables['show_login'] = $settings['auth_ssl'] == 0 || ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ); 
    63 if (!iMEMBER && !$variables['show_login']) $no_panel_displayed = true; 
     54if (iMEMBER || !$variables['show_login']) $no_panel_displayed = true; 
    6455 
    6556$template_variables['modules.login_panel'] = $variables; 
Note: See TracChangeset for help on using the changeset viewer.