print "<li>Database - MySQL (mysqli_ functions) - Found\n";
print "<li>Database - PDO MySQL - Found</li>";
if (Config::read_string('database_type') != 'mysqli') {
print "<br>(change the database_type to 'mysqli' in config.local.php if you want to use MySQL)\n";
}
print "</li>";
} else {
} else {
print "<li>Database - MySQL (mysqli_ functions) - Not found</li>";
print "<li>Database - MySQL (pdo_mysql) extension not found</li>";
}
if (Config::read_string('database_type') == 'mysql') {
print "<li><strong><spanstyle='color: red'>Warning:</span> your configured database_type 'mysql' is deprecated; you must move to use 'mysqli'</strong> in your config.local.php.</li>\n";
$error++;
}
}
//
//
// PostgreSQL functions
// PostgreSQL functions
//
//
if ($f_pg_connect == 1) {
if ($m_pdo_pgsql == 1) {
print "<li>Database : PostgreSQL support (pg_ functions) - Found\n";
print "<li>Database : PDO PostgreSQL - Found \n";
if (Config::read_string('database_type') != 'pgsql') {
if (Config::read_string('database_type') != 'pgsql') {
print "<br>(change the database_type to 'pgsql' in config.local.php if you want to use PostgreSQL)\n";
print "<br>(change the database_type to 'pgsql' in config.local.php if you want to use PostgreSQL)\n";
}
}
print "</li>";
print "</li>";
} else {
} else {
print "<li>Database - PostgreSQL (pg_ functions) - Not found</li>";
print "<li>Database - PostgreSQL (pdo_pgsql) extension not found</li>";
}
}
if ($f_sqlite_open == 1) {
if ($m_pdo_sqlite == 1) {
print "<li>Database : SQLite support (SQLite3) - Found \n";
print "<li>Database : PDO SQLite - Found \n";
if (Config::read_string('database_type') != 'sqlite') {
if (Config::read_string('database_type') != 'sqlite') {
print "<br>(change the database_type to 'sqlite' in config.local.php if you want to use SQLite)\n";
print "<br>(change the database_type to 'sqlite' in config.local.php if you want to use SQLite)\n";
}
}
print "</li>";
print "</li>";
} else {
} else {
print "<li>Database - SQLite (SQLite3) - Not found</li>";
print "<li>Database - SQLite (pdo_sqlite) extension not found</li>";