mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
NOISSUE, change some code for php5
This commit is contained in:
parent
be662c8c2a
commit
f8af9ef6ce
6 changed files with 18 additions and 97 deletions
|
|
@ -50,6 +50,8 @@ if(!defined('__XE_LOADED_DB_CLASS__'))
|
|||
class DB
|
||||
{
|
||||
|
||||
static $isSupported = FALSE;
|
||||
|
||||
/**
|
||||
* priority of DBMS
|
||||
* @var array
|
||||
|
|
@ -385,7 +387,7 @@ class DB
|
|||
*/
|
||||
function isSupported()
|
||||
{
|
||||
return FALSE;
|
||||
return self::$isSupported;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -805,46 +807,6 @@ class DB
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns supported database list
|
||||
* @return array list of supported database
|
||||
*/
|
||||
function getSupportedDatabase()
|
||||
{
|
||||
$result = array();
|
||||
|
||||
if(function_exists('mysql_connect'))
|
||||
{
|
||||
$result[] = 'MySQL';
|
||||
}
|
||||
if(function_exists('cubrid_connect'))
|
||||
{
|
||||
$result[] = 'Cubrid';
|
||||
}
|
||||
if(function_exists('ibase_connect'))
|
||||
{
|
||||
$result[] = 'FireBird';
|
||||
}
|
||||
if(function_exists('pg_connect'))
|
||||
{
|
||||
$result[] = 'Postgre';
|
||||
}
|
||||
if(function_exists('sqlite_open'))
|
||||
{
|
||||
$result[] = 'sqlite2';
|
||||
}
|
||||
if(function_exists('mssql_connect'))
|
||||
{
|
||||
$result[] = 'MSSQL';
|
||||
}
|
||||
if(function_exists('PDO'))
|
||||
{
|
||||
$result[] = 'sqlite3(PDO)';
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Drop tables
|
||||
* @param string $table_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue