plugins/admin/UserManager.php
changeset 225 b9a8a993f4e7
parent 221 e5302cb1945c
parent 224 6a4573507ff8
child 266 917dcc6c4ceb
equal deleted inserted replaced
221:e5302cb1945c 225:b9a8a993f4e7
    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