Change error message to egw

This commit is contained in:
Miles Lott 2003-12-19 10:46:37 +00:00
parent 60646ef432
commit 13813b67de

View File

@ -24,9 +24,9 @@
/* $Id$ */ /* $Id$ */
/****************************************************************************\ /***************************************************************************\
* If running in PHP3, then force admin to upgrade * * If running in PHP3, then force admin to upgrade *
\****************************************************************************/ \***************************************************************************/
if (!function_exists('version_compare'))//version_compare() is only available in PHP4.1+ if (!function_exists('version_compare'))//version_compare() is only available in PHP4.1+
{ {
@ -150,18 +150,18 @@
} }
$GLOBALS['phpgw']->db->Halt_On_Error = 'no'; $GLOBALS['phpgw']->db->Halt_On_Error = 'no';
@$GLOBALS['phpgw']->db->query("select count(config_name) from phpgw_config"); @$GLOBALS['phpgw']->db->query("SELECT COUNT(config_name) FROM phpgw_config");
if (! @$GLOBALS['phpgw']->db->next_record()) if(!@$GLOBALS['phpgw']->db->next_record())
{ {
$setup_dir = str_replace($_SERVER['PHP_SELF'],'index.php','setup/'); $setup_dir = str_replace($_SERVER['PHP_SELF'],'index.php','setup/');
echo '<center><b>Fatal Error:</b> It appears that you have not created the database tables for ' echo '<center><b>Fatal Error:</b> It appears that you have not created the database tables for '
.'phpGroupWare. Click <a href="' . $setup_dir . '">here</a> to run setup.</center>'; .'eGroupWare. Click <a href="' . $setup_dir . '">here</a> to run setup.</center>';
exit; exit;
} }
$GLOBALS['phpgw']->db->Halt_On_Error = 'yes'; $GLOBALS['phpgw']->db->Halt_On_Error = 'yes';
/* Fill phpgw_info["server"] array */ /* Fill phpgw_info["server"] array */
// An Attempt to speed things up using cache premise // An Attempt to speed things up using cache premise
$GLOBALS['phpgw']->db->query("select config_value from phpgw_config WHERE config_app='phpgwapi' and config_name='cache_phpgw_info'",__LINE__,__FILE__); $GLOBALS['phpgw']->db->query("select config_value from phpgw_config WHERE config_app='phpgwapi' and config_name='cache_phpgw_info'",__LINE__,__FILE__);
if ($GLOBALS['phpgw']->db->num_rows()) if ($GLOBALS['phpgw']->db->num_rows())
{ {