Using GLOBALS

This commit is contained in:
Miles Lott 2001-09-02 00:27:19 +00:00
parent 341fd023b8
commit 56489e8d4f
2 changed files with 11 additions and 8 deletions

View File

@ -1,4 +1,7 @@
<?php <?php
if (empty($phpgw_info['server']['db_type'])){$phpgw_info['server']['db_type'] = 'mysql';} if (empty($GLOBALS['phpgw_info']['server']['db_type']))
include(PHPGW_API_INC.'/class.db_'.$phpgw_info['server']['db_type'].'.inc.php'); {
$GLOBALS['phpgw_info']['server']['db_type'] = 'mysql';
}
include(PHPGW_API_INC.'/class.db_'.$GLOBALS['phpgw_info']['server']['db_type'].'.inc.php');
?> ?>

View File

@ -35,10 +35,10 @@
* Include the apps footer files if it exists * * Include the apps footer files if it exists *
\**************************************************************************/ \**************************************************************************/
if (file_exists (PHPGW_APP_INC . '/footer.inc.php') && if (file_exists (PHPGW_APP_INC . '/footer.inc.php') &&
$phpgw_info['flags']['currentapp'] != 'home' && $GLOBALS['phpgw_info']['flags']['currentapp'] != 'home' &&
$phpgw_info['flags']['currentapp'] != 'login' && $GLOBALS['phpgw_info']['flags']['currentapp'] != 'login' &&
$phpgw_info['flags']['currentapp'] != 'logout' && $GLOBALS['phpgw_info']['flags']['currentapp'] != 'logout' &&
!@$phpgw_info['flags']['noappfooter']) !@$GLOBALS['phpgw_info']['flags']['noappfooter'])
{ {
if ($menuaction) if ($menuaction)
{ {
@ -67,7 +67,7 @@
} }
parse_navbar_end(); parse_navbar_end();
$phpgw->db->disconnect(); $GLOBALS['phpgw']->db->disconnect();
?> ?>
</BODY> </BODY>