Show
Ignore:
Timestamp:
07/19/09 06:41:24 (14 years ago)
Author:
kovell
Message:

portraits are fetched from CCP using cURL and lower timeouts. mysqli-based boards use only one connection, eveapi reverted to standard 3.3

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/includes/db.php

    r416 r431  
    1212// get mysql server info and store it in a define so we know if its 
    1313// safe to use subquerys or not. (mysqli only works on 4.1+) 
    14 $conn = new DBConnection; 
    15 $value = (float) mysql_get_server_info($conn->id_); 
     14if(DB_TYPE_USED == 'mysqli') 
     15{ 
     16        $conn = new DBConnection_mysqli; 
     17        $value = (float) mysqli_get_server_info($conn->id_); 
     18} 
     19else 
     20{ 
     21        $conn = new DBConnection; 
     22        $value = (float) mysql_get_server_info($conn->id_); 
     23} 
     24 
    1625if ($value >= 4.1) 
    1726{