public function login()
{
if (!$this->connected) {
if (!$this->connect()) {
return false;
}
}
$login = new eppLoginRequest();
if (($response = $this->writeandread($login)) instanceof eppLoginResponse && $response->Success()) {
$this->writeLog("Logged in", "LOGIN");
$this->loggedin = true;
return true;
}
return false;
}