Changeset 555 for trunk/identification.php
- Timestamp:
- Oct 7, 2004, 12:48:48 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/identification.php
r541 r555 43 43 if ($row['password'] == md5($_POST['password'])) 44 44 { 45 if ($conf['auth_method'] == 'cookie' 46 or isset($_POST['remember_me']) and $_POST['remember_me'] == 1) 45 $session_length = $conf['session_length']; 46 if ($conf['authorize_remembering'] 47 and isset($_POST['remember_me']) 48 and $_POST['remember_me'] == 1) 47 49 { 48 if ($conf['auth_method'] == 'cookie') 49 { 50 $cookie_length = $conf['session_length']; 51 } 52 else if ($_POST['remember_me'] == 1) 53 { 54 $cookie_length = $conf['remember_me_length']; 55 } 56 session_create($row['id'], 57 'cookie', 58 $cookie_length); 59 redirect('category.php'); 50 $session_length = $conf['remember_me_length']; 60 51 } 61 else if ($conf['auth_method'] == 'URI') 62 { 63 $session_id = session_create($row['id'], 64 'URI', 65 $conf['session_length']); 66 redirect('category.php?id='.$session_id); 67 } 52 $session_id = session_create($row['id'], $session_length); 53 redirect('category.php?id='.$session_id); 68 54 } 69 55 else … … 98 84 'F_LOGIN_ACTION' => add_session_id('identification.php') 99 85 )); 86 87 if ($conf['authorize_remembering']) 88 { 89 $template->assign_block_vars('remember_me',array()); 90 } 100 91 //-------------------------------------------------------------- errors display 101 92 if ( sizeof( $errors ) != 0 )
Note: See TracChangeset
for help on using the changeset viewer.