is_logged_in(); } public function is_logged_in() { $logged = $this->userdata('user_idunlaprivate'); $this->logged_in = ($logged) ? TRUE : FALSE; } }