Changeset 2100 in ExiteCMS for modules/common/login_panel/php-files/modules/login_panel/login_panel.php
- Timestamp:
- 12/07/08 22:05:58 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/common/login_panel/php-files/modules/login_panel/login_panel.php
r2096 r2100 26 26 $variables['login_expiry'] = (iADMIN && isset($_SESSION['login_expire'])) ? time_system2local($_SESSION['login_expire']) : ""; 27 27 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"); 39 30 40 31 // check if we need to display a registration link … … 61 52 // can we show the login panel? 62 53 $variables['show_login'] = $settings['auth_ssl'] == 0 || ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ); 63 if ( !iMEMBER &&!$variables['show_login']) $no_panel_displayed = true;54 if (iMEMBER || !$variables['show_login']) $no_panel_displayed = true; 64 55 65 56 $template_variables['modules.login_panel'] = $variables;
Note: See TracChangeset
for help on using the changeset viewer.
