forked from extern/egroupware
Using GLOBALS
This commit is contained in:
parent
341fd023b8
commit
56489e8d4f
@ -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');
|
||||||
?>
|
?>
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user