egroupware/phpgwapi/inc/class.contacts.inc.php

33 lines
821 B
PHP
Raw Normal View History

<?php
if(!$GLOBALS['phpgw_info']['server']['contact_repository'])
2001-05-21 11:12:10 +02:00
{
$GLOBALS['phpgw_info']['server']['contact_repository'] = 'sql';
2001-05-21 11:12:10 +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
?>