forked from extern/egroupware
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)
|
||||
{
|
||||
if (!IsSet($str) || $str == '')
|
||||
|
Loading…
Reference in New Issue
Block a user