mirror of
https://github.com/friendica/friendica
synced 2025-04-27 05:50:10 +00:00
Reworked ejabberd authentification
This commit is contained in:
parent
225369230f
commit
c6f50d0468
2 changed files with 214 additions and 126 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue