Skip to content

Instantly share code, notes, and snippets.

@TheCatPlusPlus
Created October 12, 2014 14:19
Show Gist options
  • Save TheCatPlusPlus/632e6a15ab395f4e3afc to your computer and use it in GitHub Desktop.
Save TheCatPlusPlus/632e6a15ab395f4e3afc to your computer and use it in GitHub Desktop.
// 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