]>
Commit | Line | Data |
---|---|---|
6df4b805 MR |
1 | <?php |
2 | /* vim: set ts=4 tw=0 sw=4 noet: */ | |
3 | if (isset($CFG->db_driver)) { | |
b95d1cdb MR |
4 | switch ($CFG->db_driver) { |
5 | case 'mysqli': | |
6 | require_once $CFG->root . 'lib/db_mysqli.inc.php'; | |
7 | $DB = DBMysqli::getInstance(); | |
8 | break; | |
9 | default: | |
10 | die ('Unknow database driver: ' . $CFG->db_driver); | |
11 | } | |
6df4b805 | 12 | } else { |
b95d1cdb | 13 | die ('Missing config file'); |
6df4b805 MR |
14 | } |
15 | ?> |