roundcubemail/program/lib/Roundcube/rcube.php
public function get_user_name()
    {
        if (is_object($this->user)) {
            return $this->user->get_username();
        }
        else if (isset($_SESSION['username'])) {
            return $_SESSION['username'];
        }
    }
public function get_user_name()
    {
        if (is_object($this->user)) {
            return $this->user->get_username();
        }
        else if (isset($_SESSION['username'])) {
            return $_SESSION['username'];
        }
    }
public function get_user_name ( ) { if ( is_object ( $ this -> user ) ) { return $ this -> user -> get_username ( ) ; } else if ( isset ( $ _SESSION [ 'username' ] ) ) { return $ _SESSION [ 'username' ] ; } }
Getter for logged user name.

@return string User name
Getter for logged user name .