mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-12 09:40:45 +01:00
75c9dc23f0
for the api version. If the app wants to include the api shared class, it should do so manually.
33 lines
821 B
PHP
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);
|
|
?>
|