equal
deleted
inserted
replaced
50 $db->_die(); |
50 $db->_die(); |
51 echo '<div class="info-box">The user account has been deleted.</div>'; |
51 echo '<div class="info-box">The user account has been deleted.</div>'; |
52 } |
52 } |
53 else |
53 else |
54 { |
54 { |
55 if ( $session->user_id != $user_id ) |
55 if ( $session->user_id == $user_id ) |
|
56 { |
|
57 $username = $session->username; |
|
58 $password = false; |
|
59 $email = $session->email; |
|
60 $real_name = $session->real_name; |
|
61 } |
|
62 else |
56 { |
63 { |
57 $username = $_POST['username']; |
64 $username = $_POST['username']; |
58 if ( !preg_match('#^'.$session->valid_username.'$#', $username) ) |
65 if ( !preg_match('#^'.$session->valid_username.'$#', $username) ) |
59 $errors[] = 'The username you entered contains invalid characters.'; |
66 $errors[] = 'The username you entered contains invalid characters.'; |
60 |
67 |