mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02:00
add disconnect function
This commit is contained in:
parent
c2efa957b8
commit
e56c40e8c4
@ -70,6 +70,20 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function disconnect()
|
||||||
|
{
|
||||||
|
if($this->Link_ID <> 0)
|
||||||
|
{
|
||||||
|
@mssql_close($this->Link_ID);
|
||||||
|
$this->Link_ID = 0;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function db_addslashes($str)
|
function db_addslashes($str)
|
||||||
{
|
{
|
||||||
if (!IsSet($str) || $str == '')
|
if (!IsSet($str) || $str == '')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user