public function disconnect()
{
if (is_resource($this->connection)) {
//echo "Fclosing $this->hostname\n";
//@ob_flush();
fclose($this->connection);
$this->writeLog("Disconnected", "DISCONNECT");
}
$this->connected = false;
$this->loggedin = false;
return true;
}