Show
Ignore:
Timestamp:
10/20/07 20:47:56 (13 years ago)
Author:
exi
Message:

Fixed SQL Query caching.
Changed userportraits to use img/portraits.
Added JS code for IE/PNG-fix.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branch/rev3/common/includes/class.db_cache.php

    r216 r245  
    11<?php 
    22 
    3 class DBConnection 
     3class DBCachedQuery 
    44{ 
    5     function DBConnection() 
    6     { 
    7         static $conn_id; 
    8  
    9         if (is_resource($conn_id)) 
    10         { 
    11             $this->id_ = $conn_id; 
    12             return; 
    13         } 
    14         if (!$this->id_ = mysql_connect(DB_HOST, DB_USER, DB_PASS)) 
    15             die("Unable to connect to mysql database."); 
    16  
    17         mysql_select_db(DB_NAME); 
    18         $conn_id = $this->id_; 
    19     } 
    20  
    21     function id() 
    22     { 
    23         return $this->id_; 
    24     } 
    25  
    26     function affectedRows() 
    27     { 
    28         return mysql_affected_rows($this->id_); 
    29     } 
    30 } 
    31  
    32 class DBQuery 
    33 { 
    34     function DBQuery() 
     5    function DBCachedQuery() 
    356    { 
    367        $this->executed_ = false;