GLOBALS...

This commit is contained in:
Miles Lott 2001-09-23 19:08:44 +00:00
parent e436c522c1
commit 121e9072fc

View File

@ -1,15 +1,15 @@
<?php <?php
if (empty($phpgw_info['server']['account_repository'])) if (empty($GLOBALS['phpgw_info']['server']['account_repository']))
{ {
if (!empty($phpgw_info['server']['auth_type'])) if (!empty($GLOBALS['phpgw_info']['server']['auth_type']))
{ {
$phpgw_info['server']['account_repository'] = $phpgw_info['server']['auth_type']; $GLOBALS['phpgw_info']['server']['account_repository'] = $GLOBALS['phpgw_info']['server']['auth_type'];
} }
else else
{ {
$phpgw_info['server']['account_repository'] = 'sql'; $GLOBALS['phpgw_info']['server']['account_repository'] = 'sql';
} }
} }
include(PHPGW_API_INC . '/class.accounts_' . $phpgw_info['server']['account_repository'] . '.inc.php'); include(PHPGW_API_INC . '/class.accounts_' . $GLOBALS['phpgw_info']['server']['account_repository'] . '.inc.php');
include(PHPGW_API_INC . '/class.accounts_shared.inc.php'); include(PHPGW_API_INC . '/class.accounts_shared.inc.php');
?> ?>