Changeset 1052 for trunk/identification.php
- Timestamp:
- Feb 23, 2006, 6:12:32 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/identification.php
r1029 r1052 32 32 //-------------------------------------------------------------- identification 33 33 $errors = array(); 34 35 $redirect_to = ''; 36 if ( !empty($_GET['redirect']) ) 37 { 38 $redirect_to = $_GET['redirect']; 39 if ( $user['is_the_guest'] ) 40 { 41 array_push($errors, $lang['access_forbiden']); 42 } 43 } 44 34 45 if (isset($_POST['login'])) 35 46 { 47 $redirect_to = $_POST['redirect']; 36 48 $username = mysql_escape_string($_POST['username']); 37 49 // retrieving the encrypted password of the login submitted … … 55 67 session_start(); 56 68 $_SESSION['id'] = $row['id']; 57 redirect( 'category.php');69 redirect(empty($redirect_to) ? 'category.php' : $redirect_to); 58 70 } 59 71 else … … 86 98 'U_LOST_PASSWORD' => PHPWG_ROOT_PATH.'password.php', 87 99 'U_HOME' => PHPWG_ROOT_PATH.'category.php', 100 'U_REDIRECT' => $redirect_to, 88 101 89 102 'F_LOGIN_ACTION' => PHPWG_ROOT_PATH.'identification.php'
Note: See TracChangeset
for help on using the changeset viewer.