Add PHP ODBC

This commit is contained in:
FusionPBX 2022-11-08 09:45:04 -07:00 committed by GitHub
parent 88bc541d0d
commit c4a46297a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -271,6 +271,17 @@ if ($db_type == "pgsql") {
}
} //end if db_type pgsql
if ($db_type == "odbc") {
//database connection
try {
$db = new PDO("odbc:".$db_name);
}
catch (PDOException $error) {
print "error: " . $error->getMessage() . "<br/>";
die();
}
} //end if db_type pgsql
//get the domain list
if (!is_array($_SESSION['domains']) or !isset($_SESSION["domain_uuid"])) {