egroupware/phpgwapi/inc/class.contacts.inc.php
Miles Lott 75c9dc23f0 This should allow for another app to load its own contacts class as a replacement
for the api version.  If the app wants to include the api shared class, it should
do so manually.
2002-05-27 01:32:04 +00:00

33 lines
821 B
PHP

<?php
if(!$GLOBALS['phpgw_info']['server']['contact_repository'])
{
$GLOBALS['phpgw_info']['server']['contact_repository'] = 'sql';
}
if(!$GLOBALS['phpgw_info']['server']['contact_application'] ||
$GLOBALS['phpgw_info']['server']['contact_application'] == 'addressbook')
{
$contactapp = 'phpgwapi';
}
else
{
$contactapp = $GLOBALS['phpgw_info']['server']['contact_application'];
}
$repository = PHPGW_SERVER_ROOT . '/' . $contactapp
. '/inc/class.contacts_' . $GLOBALS['phpgw_info']['server']['contact_repository'] . '.inc.php';
$shared = PHPGW_SERVER_ROOT . '/' . $contactapp . '/inc/class.contacts_shared.inc.php';
if(@file_exists($repository))
{
include($repository);
}
if(@file_exists($shared))
{
include($shared);
}
unset($contactapp);
unset($repository);
unset($shared);
?>