added sapdb

This commit is contained in:
Ralf Becker 2004-07-23 00:49:29 +00:00
parent b23989981e
commit 591d9f020e

View File

@ -48,14 +48,16 @@
'pgsql' => 'PostgreSQL', 'pgsql' => 'PostgreSQL',
'mysql' => 'MySQL', 'mysql' => 'MySQL',
'mssql' => 'MS SQL Server', 'mssql' => 'MS SQL Server',
'oracle' => 'Oracle' 'oracle' => 'Oracle',
'sapdb' => 'SAP/Max DB',
); );
$default_db_ports = array( $default_db_ports = array(
'pgsql' => 5432, 'pgsql' => 5432,
'mysql' => 3306, 'mysql' => 3306,
'mssql' => 1433, 'mssql' => 1433,
'oracle' => 1521 'oracle' => 1521,
'sapdb' => '',
); );
function check_form_values() function check_form_values()
@ -277,6 +279,16 @@
{ {
$detected .= lang('No Microsoft SQL Server support found. Disabling') . '<br>' . "\n"; $detected .= lang('No Microsoft SQL Server support found. Disabling') . '<br>' . "\n";
} }
if(extension_loaded('odbc'))
{
$detected .= lang('You appear to have ODBC support enabled') . '<br>' . "\n";
// databases supported by the ODBC driver
$supported_db[] = 'sapdb';
}
else
{
$detected .= lang('No ODBC support found. Disabling') . '<br>' . "\n";
}
/* /*
if(extension_loaded('oci8')) if(extension_loaded('oci8'))
{ {