private function check_login() { if (is_resource($this->conn_id) and $this->logined) { return true; } else { return false; } }