]>
Commit | Line | Data |
---|---|---|
6df4b805 | 1 | <?php |
7ef22e21 | 2 | /* vim: set ts=4 tw=4 sw=4 noet: */ |
6df4b805 | 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 | ?> |