Patch from Raphael Alla allowing to specify mysqlt direct in header-admin

This commit is contained in:
Ralf Becker 2008-09-27 06:56:36 +00:00
parent 64e992ff79
commit dd50a906a2

View File

@ -29,6 +29,7 @@ class setup_header
'pgsql' => 'PostgreSQL', 'pgsql' => 'PostgreSQL',
'mysql' => 'MySQL', 'mysql' => 'MySQL',
'mysqli' => 'MySQLi (php5)', 'mysqli' => 'MySQLi (php5)',
'mysqlt' => 'MySQL (with transactions)',
'mssql' => 'MS SQL Server', 'mssql' => 'MS SQL Server',
'odbc_mssql' => 'MS SQL Server via ODBC', 'odbc_mssql' => 'MS SQL Server via ODBC',
'oracle' => 'Oracle', 'oracle' => 'Oracle',
@ -43,6 +44,7 @@ class setup_header
'pgsql' => 5432, 'pgsql' => 5432,
'mysql' => 3306, 'mysql' => 3306,
'mysqli' => 3306, 'mysqli' => 3306,
'mysqlt' => 3306,
'mssql' => 1433, 'mssql' => 1433,
'odbc_mssql' => '', 'odbc_mssql' => '',
'oracle' => 1521, 'oracle' => 1521,
@ -247,6 +249,7 @@ class setup_header
// short => array(extension,func_to_check,supported_db(s)) // short => array(extension,func_to_check,supported_db(s))
'mysql' => array('mysql','mysql_connect','mysql'), 'mysql' => array('mysql','mysql_connect','mysql'),
'mysqli' => array('mysql','mysqli_connect','mysqli'), 'mysqli' => array('mysql','mysqli_connect','mysqli'),
'mysqlt' => array('mysql','mysql_connect','mysqlt'),
'pgsql' => array('pgsql','pg_connect','pgsql'), 'pgsql' => array('pgsql','pg_connect','pgsql'),
'mssql' => array('mssql','mssql_connect','mssql'), 'mssql' => array('mssql','mssql_connect','mssql'),
'odbc' => array('odbc',false,'sapdb','odbc_mssql','odbc_oracle'), 'odbc' => array('odbc',false,'sapdb','odbc_mssql','odbc_oracle'),
@ -269,7 +272,7 @@ class setup_header
return $supported_db; return $supported_db;
} }
function is_md5($str) static function is_md5($str)
{ {
return preg_match('/^[0-9a-f]{32}$/',$str); return preg_match('/^[0-9a-f]{32}$/',$str);
} }