forked from extern/egroupware
Using GLOBALS
This commit is contained in:
parent
341fd023b8
commit
56489e8d4f
@ -1,4 +1,7 @@
|
||||
<?php
|
||||
if (empty($phpgw_info['server']['db_type'])){$phpgw_info['server']['db_type'] = 'mysql';}
|
||||
include(PHPGW_API_INC.'/class.db_'.$phpgw_info['server']['db_type'].'.inc.php');
|
||||
?>
|
||||
if (empty($GLOBALS['phpgw_info']['server']['db_type']))
|
||||
{
|
||||
$GLOBALS['phpgw_info']['server']['db_type'] = 'mysql';
|
||||
}
|
||||
include(PHPGW_API_INC.'/class.db_'.$GLOBALS['phpgw_info']['server']['db_type'].'.inc.php');
|
||||
?>
|
||||
|
@ -35,10 +35,10 @@
|
||||
* Include the apps footer files if it exists *
|
||||
\**************************************************************************/
|
||||
if (file_exists (PHPGW_APP_INC . '/footer.inc.php') &&
|
||||
$phpgw_info['flags']['currentapp'] != 'home' &&
|
||||
$phpgw_info['flags']['currentapp'] != 'login' &&
|
||||
$phpgw_info['flags']['currentapp'] != 'logout' &&
|
||||
!@$phpgw_info['flags']['noappfooter'])
|
||||
$GLOBALS['phpgw_info']['flags']['currentapp'] != 'home' &&
|
||||
$GLOBALS['phpgw_info']['flags']['currentapp'] != 'login' &&
|
||||
$GLOBALS['phpgw_info']['flags']['currentapp'] != 'logout' &&
|
||||
!@$GLOBALS['phpgw_info']['flags']['noappfooter'])
|
||||
{
|
||||
if ($menuaction)
|
||||
{
|
||||
@ -67,7 +67,7 @@
|
||||
}
|
||||
|
||||
parse_navbar_end();
|
||||
$phpgw->db->disconnect();
|
||||
$GLOBALS['phpgw']->db->disconnect();
|
||||
|
||||
?>
|
||||
</BODY>
|
||||
|
Loading…
Reference in New Issue
Block a user