-
-
Save TheCatPlusPlus/632e6a15ab395f4e3afc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load the appropriate DB layer class | |
switch ($db_type) | |
{ | |
case 'mysql': | |
require FORUM_ROOT.'include/dblayer/mysql.php'; | |
break; | |
case 'mysql_innodb': | |
require FORUM_ROOT.'include/dblayer/mysql_innodb.php'; | |
break; | |
case 'mysqli': | |
require FORUM_ROOT.'include/dblayer/mysqli.php'; | |
break; | |
case 'mysqli_innodb': | |
require FORUM_ROOT.'include/dblayer/mysqli_innodb.php'; | |
break; | |
case 'pgsql': | |
require PUN_ROOT.'include/dblayer/pgsql.php'; | |
break; | |
case 'sqlite': | |
require FORUM_ROOT.'include/dblayer/sqlite.php'; | |
break; | |
default: | |
error(sprintf($lang['DB type not valid'], luna_htmlspecialchars($db_type))); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment