Reworked ejabberd authentification

This commit is contained in:
Michael Vogel 2016-09-22 02:57:40 +00:00
parent 225369230f
commit c6f50d0468
2 changed files with 214 additions and 126 deletions

View file

@ -249,6 +249,15 @@ class dba {
}
}
function connected() {
if ($this->mysqli)
$connected = $this->db->ping();
else
$connected = mysql_ping($this->db);
return $connected;
}
function __destruct() {
if ($this->db)
if($this->mysqli)