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

Revision 201, 0.6 KB (checked in by exi, 16 years ago)

Attempt to fix various issues with the ContractListTable?-sql summary code.
The raw killmail now shows the time left for classified kills.
Added code to autoupgrade.php to add indexes to kb3_inv_crp and kb3_inv_all.

Line 
1<?php
2require_once('config.php');
3require_once('common/includes/globals.php');
4require_once('common/includes/php_compat.php');
5
6if (defined('DB_USE_QCACHE') && DB_USE_QCACHE === true)
7{
8    require_once('common/includes/class.db_cache.php');
9}
10else
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$value = (float)mysql_get_server_info();
18if ($value > 4.1)
19{
20    define('KB_MYSQL41', true);
21}
22else
23{
24    define('KB_MYSQL41', false);
25}
26?>
Note: See TracBrowser for help on using the browser.