2001-01-25 04:03:45 +01:00
|
|
|
<?php
|
2002-05-27 03:32:04 +02:00
|
|
|
if(!$GLOBALS['phpgw_info']['server']['contact_repository'])
|
2001-05-21 11:12:10 +02:00
|
|
|
{
|
2002-05-27 03:32:04 +02:00
|
|
|
$GLOBALS['phpgw_info']['server']['contact_repository'] = 'sql';
|
2001-05-21 11:12:10 +02:00
|
|
|
}
|
2002-05-27 03:32:04 +02:00
|
|
|
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);
|
2001-01-25 08:07:04 +01:00
|
|
|
?>
|