Changeset 370 for trunk/phpgwapi/inc/functions.inc.php
- Timestamp:
- 07/28/08 16:42:45 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/functions.inc.php
r266 r370 162 162 } 163 163 $GLOBALS['phpgw']->db->Halt_On_Error = 'no'; 164 /* jakjr: ExpressoLivre: We do not count the config table. */ 165 if (! 164 166 $GLOBALS['phpgw']->db->connect( 165 167 $GLOBALS['phpgw_info']['server']['db_name'], … … 169 171 $GLOBALS['phpgw_info']['server']['db_pass'], 170 172 $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 176 178 /* BEGIN - CELEPAR - jakjr - 05/06/2006 */ 179 /* $setup_dir = str_replace($_SERVER['PHP_SELF'],'index.php','setup/'); */ 177 180 /*echo '<center><b>Fatal Error:</b> It appears that you have not created the database tables for ' 178 181 .'eGroupWare. Click <a href="' . $setup_dir . '">here</a> to run setup.</center>';*/ … … 185 188 /* Fill phpgw_info["server"] array */ 186 189 // An Attempt to speed things up using cache premise 190 /* jakjr: ExpressoLivre does not use cache. */ 191 /* 187 192 $GLOBALS['phpgw']->db->query("select config_value from phpgw_config WHERE config_app='phpgwapi' and config_name='cache_phpgw_info'",__LINE__,__FILE__); 188 193 if ($GLOBALS['phpgw']->db->num_rows()) … … 190 195 $GLOBALS['phpgw']->db->next_record(); 191 196 $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 /* 194 201 $cache_query = "select content from phpgw_app_sessions where" 195 202 ." sessionid = '0' and loginid = '0' and app = 'phpgwapi' and location = 'config'"; … … 197 204 $GLOBALS['phpgw']->db->query($cache_query,__LINE__,__FILE__); 198 205 $server_info_cache = $GLOBALS['phpgw']->db->num_rows(); 199 206 */ 207 /* 200 208 if(@$GLOBALS['phpgw_info']['server']['cache_phpgw_info'] && $server_info_cache) 201 209 { … … 204 212 } 205 213 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__); 208 216 while ($GLOBALS['phpgw']->db->next_record()) 209 217 { … … 211 219 } 212 220 221 /* 213 222 if(@isset($GLOBALS['phpgw_info']['server']['cache_phpgw_info'])) 214 223 { … … 221 230 . "'0','0','phpgwapi','config','".addslashes(serialize($GLOBALS['phpgw_info']['server']))."')"; 222 231 $GLOBALS['phpgw']->db->query($cache_query,__LINE__,__FILE__); 223 } 224 }232 }*/ 233 //} 225 234 unset($cache_query); 226 235 unset($server_info_cache);
Note: See TracChangeset
for help on using the changeset viewer.