root/dev/common/includes/db.php @ 317

Revision 254, 459 bytes (checked in by exi, 15 years ago)

Merging 242:253 branch into dev

Line 
1<?php
2// cached query class will be loaded additionally once we received the config
3// see common/index.php for details
4require_once('common/includes/class.db.php');
5
6// get mysql server info and store it in a define so we know if its
7// safe to use subquerys or not
8$conn = new DBConnection;
9$value = (float)mysql_get_server_info($conn->id_);
10if ($value > 4.1)
11{
12    define('KB_MYSQL41', true);
13}
14else
15{
16    define('KB_MYSQL41', false);
17}
18?>
Note: See TracBrowser for help on using the browser.