Ignore:
Timestamp:
07/28/08 16:42:45 (16 years ago)
Author:
niltonneto
Message:

Ver ocorrência #270 do Trac.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/functions.inc.php

    r266 r370  
    162162        } 
    163163        $GLOBALS['phpgw']->db->Halt_On_Error = 'no'; 
     164        /* jakjr: ExpressoLivre: We do not count the config table. */ 
     165        if (! 
    164166        $GLOBALS['phpgw']->db->connect( 
    165167                $GLOBALS['phpgw_info']['server']['db_name'], 
     
    169171                $GLOBALS['phpgw_info']['server']['db_pass'], 
    170172                $GLOBALS['phpgw_info']['server']['db_type'] 
    171         ); 
    172         @$GLOBALS['phpgw']->db->query("SELECT COUNT(config_name) FROM phpgw_config"); 
    173         if(!@$GLOBALS['phpgw']->db->next_record()) 
    174         { 
    175                 $setup_dir = str_replace($_SERVER['PHP_SELF'],'index.php','setup/'); 
     173        ) ) 
     174        //@$GLOBALS['phpgw']->db->query("SELECT COUNT(config_name) FROM phpgw_config"); 
     175        //if(!@$GLOBALS['phpgw']->db->next_record()) 
     176        { 
     177                 
    176178                /* BEGIN - CELEPAR - jakjr - 05/06/2006 */ 
     179                /* $setup_dir = str_replace($_SERVER['PHP_SELF'],'index.php','setup/'); */ 
    177180                /*echo '<center><b>Fatal Error:</b> It appears that you have not created the database tables for ' 
    178181                        .'eGroupWare.  Click <a href="' . $setup_dir . '">here</a> to run setup.</center>';*/ 
     
    185188        /* Fill phpgw_info["server"] array */ 
    186189        // An Attempt to speed things up using cache premise 
     190        /* jakjr: ExpressoLivre does not use cache. */ 
     191        /* 
    187192        $GLOBALS['phpgw']->db->query("select config_value from phpgw_config WHERE config_app='phpgwapi' and config_name='cache_phpgw_info'",__LINE__,__FILE__); 
    188193        if ($GLOBALS['phpgw']->db->num_rows()) 
     
    190195                $GLOBALS['phpgw']->db->next_record(); 
    191196                $GLOBALS['phpgw_info']['server']['cache_phpgw_info'] = stripslashes($GLOBALS['phpgw']->db->f('config_value')); 
    192         } 
    193  
     197        }*/ 
     198 
     199        /* jakjr: ExpressoLivre does not use cache. */ 
     200        /*       
    194201        $cache_query = "select content from phpgw_app_sessions where" 
    195202                ." sessionid = '0' and loginid = '0' and app = 'phpgwapi' and location = 'config'"; 
     
    197204        $GLOBALS['phpgw']->db->query($cache_query,__LINE__,__FILE__); 
    198205        $server_info_cache = $GLOBALS['phpgw']->db->num_rows(); 
    199  
     206        */ 
     207        /* 
    200208        if(@$GLOBALS['phpgw_info']['server']['cache_phpgw_info'] && $server_info_cache) 
    201209        { 
     
    204212        } 
    205213        else 
    206         { 
    207                 $GLOBALS['phpgw']->db->query("select * from phpgw_config WHERE config_app='phpgwapi'",__LINE__,__FILE__); 
     214        {*/ 
     215                $GLOBALS['phpgw']->db->query("SELECT * from phpgw_config WHERE config_app='phpgwapi'",__LINE__,__FILE__); 
    208216                while ($GLOBALS['phpgw']->db->next_record()) 
    209217                { 
     
    211219                } 
    212220 
     221                /* 
    213222                if(@isset($GLOBALS['phpgw_info']['server']['cache_phpgw_info'])) 
    214223                { 
     
    221230                                . "'0','0','phpgwapi','config','".addslashes(serialize($GLOBALS['phpgw_info']['server']))."')"; 
    222231                        $GLOBALS['phpgw']->db->query($cache_query,__LINE__,__FILE__); 
    223                 } 
    224         } 
     232                }*/ 
     233        //} 
    225234        unset($cache_query); 
    226235        unset($server_info_cache); 
Note: See TracChangeset for help on using the changeset viewer.