public function get_cfg($attr = ''){
    if ( $this->check() ){
      if ( !$this->cfg ){
        $this->cfg = $this->session->get('cfg');
      }
      if ( empty($attr) ){
        return $this->cfg;
      }
      if ( isset($this->cfg[$attr]) ){
        return $this->cfg[$attr];
      }
      return false;
    }
  }
public function get_cfg($attr = ''){
    if ( $this->check() ){
      if ( !$this->cfg ){
        $this->cfg = $this->session->get('cfg');
      }
      if ( empty($attr) ){
        return $this->cfg;
      }
      if ( isset($this->cfg[$attr]) ){
        return $this->cfg[$attr];
      }
      return false;
    }
  }
public function get_cfg ( $ attr = '' ) { if ( $ this -> check ( ) ) { if ( ! $ this -> cfg ) { $ this -> cfg = $ this -> session -> get ( 'cfg' ) ; } if ( empty ( $ attr ) ) { return $ this -> cfg ; } if ( isset ( $ this -> cfg [ $ attr ] ) ) { return $ this -> cfg [ $ attr ] ; } return false ; } }
Returns the current user's configuration.

@param string $attr
@return mixed
Returns the current user s configuration .