Revision 202, 0.6 KB
(checked in by exi, 15 years ago)
|
Fixed a bug belonging to the new mysql version code.
|
Line | |
---|
1 | <?php |
---|
2 | require_once('config.php'); |
---|
3 | require_once('common/includes/globals.php'); |
---|
4 | require_once('common/includes/php_compat.php'); |
---|
5 | |
---|
6 | if (defined('DB_USE_QCACHE') && DB_USE_QCACHE === true) |
---|
7 | { |
---|
8 | require_once('common/includes/class.db_cache.php'); |
---|
9 | } |
---|
10 | else |
---|
11 | { |
---|
12 | require_once('common/includes/class.db.php'); |
---|
13 | } |
---|
14 | |
---|
15 | // get mysql server info and store it in a define so we know if its |
---|
16 | // safe to use subquerys or not |
---|
17 | $conn = new DBConnection; |
---|
18 | $value = (float)mysql_get_server_info($conn->id_); |
---|
19 | if ($value > 4.1) |
---|
20 | { |
---|
21 | define('KB_MYSQL41', true); |
---|
22 | } |
---|
23 | else |
---|
24 | { |
---|
25 | define('KB_MYSQL41', false); |
---|
26 | } |
---|
27 | ?> |
---|