2016-04-02 16:16:20 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* EGroupware - API Setup
|
|
|
|
*
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @package api
|
|
|
|
* @subpackage setup
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Basic information about this app */
|
|
|
|
$setup_info['api']['name'] = 'api';
|
|
|
|
$setup_info['api']['title'] = 'EGroupware API';
|
2024-10-23 15:20:02 +02:00
|
|
|
$setup_info['api']['version'] = '23.1.010';
|
2016-04-02 16:16:20 +02:00
|
|
|
$setup_info['api']['versions']['current_header'] = '1.29';
|
2017-02-02 10:36:22 +01:00
|
|
|
// maintenance release in sync with changelog in doc/rpm-build/debian.changes
|
2024-11-11 08:56:59 +01:00
|
|
|
$setup_info['api']['versions']['maintenance_release'] = '23.1.20241111';
|
2016-04-02 16:16:20 +02:00
|
|
|
$setup_info['api']['enable'] = 3;
|
|
|
|
$setup_info['api']['app_order'] = 1;
|
|
|
|
$setup_info['api']['license'] = 'GPL';
|
|
|
|
$setup_info['api']['maintainer'] = $setup_info['api']['author'] = array(
|
2017-10-22 12:56:58 +02:00
|
|
|
'name' => 'EGroupware GmbH',
|
|
|
|
'email' => 'info@egroupware.org',
|
|
|
|
'url' => 'http://www.egroupware.org',
|
2016-04-02 16:16:20 +02:00
|
|
|
);
|
|
|
|
|
2016-04-02 21:55:08 +02:00
|
|
|
// The tables this app creates
|
2016-04-02 16:16:20 +02:00
|
|
|
$setup_info['api']['tables'][] = 'egw_config';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_applications';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_acl';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_accounts';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_preferences';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_access_log';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_languages';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_lang';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_categories';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_history_log';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_async';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_links';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_addressbook';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_addressbook_extra';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_addressbook_lists';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_addressbook2list';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_sqlfs';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_locks';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_sqlfs_props';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_customfields';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_sharing';
|
2016-10-28 14:27:07 +02:00
|
|
|
$setup_info['api']['tables'][] = 'egw_mailaccounts';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_ea_accounts';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_ea_credentials';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_ea_identities';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_ea_valid';
|
|
|
|
$setup_info['api']['tables'][] = 'egw_ea_notifications';
|
2020-10-13 16:56:06 +02:00
|
|
|
$setup_info['api']['tables'][] = 'egw_addressbook_shared';
|
2023-06-30 20:45:31 +02:00
|
|
|
$setup_info['api']['tables'][] = 'egw_tokens';
|
2016-04-02 21:55:08 +02:00
|
|
|
|
2016-04-02 16:16:20 +02:00
|
|
|
// hooks used by vfs_home_hooks to manage user- and group-directories for the new stream based VFS
|
2020-03-06 22:48:26 +01:00
|
|
|
$setup_info['api']['hooks']['addaccount'] = array('EGroupware\\Api\\Vfs\\Hooks::addAccount', 'EGroupware\\Api\\Mail\\Hooks::addaccount');
|
|
|
|
$setup_info['api']['hooks']['deleteaccount'] = array('EGroupware\\Api\\Vfs\\Hooks::deleteAccount', 'EGroupware\\Api\\Mail\\Hooks::deleteaccount');
|
|
|
|
$setup_info['api']['hooks']['editaccount'] = array('EGroupware\\Api\\Vfs\\Hooks::editAccount', 'EGroupware\\Api\\Mail\\Hooks::addaccount');
|
|
|
|
$setup_info['api']['hooks']['addgroup'] = 'EGroupware\\Api\\Vfs\\Hooks::addGroup';
|
|
|
|
$setup_info['api']['hooks']['deletegroup'] = array('EGroupware\\Api\\Vfs\\Hooks::deleteGroup', 'EGroupware\\Api\\Mail\\Hooks::deletegroup');
|
|
|
|
$setup_info['api']['hooks']['editgroup'] = 'EGroupware\\Api\\Vfs\\Hooks::editGroup';
|
2016-04-02 16:16:20 +02:00
|
|
|
$setup_info['api']['hooks']['changepassword'] = 'EGroupware\\Api\\Mail\\Hooks::changepassword';
|
2024-09-03 09:58:47 +02:00
|
|
|
$setup_info['api']['hooks']['session_created'] = 'EGroupware\Api\Mail\Credentials::ssoPassword';
|
2016-04-02 16:16:20 +02:00
|
|
|
|
2020-03-06 22:48:26 +01:00
|
|
|
// Hooks to delete shares when file is deleted
|
|
|
|
$setup_info['api']['hooks']['vfs_unlink'] = 'EGroupware\\Api\\Vfs\\Sharing::vfsUpdate';
|
|
|
|
$setup_info['api']['hooks']['vfs_rename'] = 'EGroupware\\Api\\Vfs\\Sharing::vfsUpdate';
|
|
|
|
$setup_info['api']['hooks']['vfs_rmdir'] = 'EGroupware\\Api\\Vfs\\Sharing::vfsUpdate';
|
|
|
|
|
2020-05-28 23:23:54 +02:00
|
|
|
// hook to update SimpleSAMLphp config
|
2022-06-28 17:09:19 +02:00
|
|
|
$setup_info['api']['hooks']['setup_config'] = [\EGroupware\Api\Auth\Saml::class.'::setupConfig', \EGroupware\Api\Accounts\Import::class.'::setupConfig'];
|
2024-01-13 11:57:50 +01:00
|
|
|
$setup_info['api']['hooks']['login_discovery'] = [\EGroupware\Api\Auth\Saml::class.'::discovery', \EGroupware\Api\Auth\Openidconnect::class.'::discovery'];
|
2020-05-28 23:23:54 +02:00
|
|
|
|
2016-04-02 16:16:20 +02:00
|
|
|
// installation checks
|
|
|
|
$setup_info['api']['check_install'] = array(
|
2020-03-06 22:48:26 +01:00
|
|
|
'' => array(
|
|
|
|
'func' => 'pear_check',
|
|
|
|
'from' => 'Api/Mail',
|
|
|
|
),
|
|
|
|
'pear.horde.org/Horde_Imap_Client' => array(
|
|
|
|
'func' => 'pear_check',
|
|
|
|
'from' => 'Api/Mail',
|
2016-04-02 16:16:20 +02:00
|
|
|
'version' => '2.24.2',
|
|
|
|
),
|
|
|
|
'pear.horde.org/Horde_Nls' => array(
|
|
|
|
'func' => 'pear_check',
|
2016-04-02 21:55:08 +02:00
|
|
|
'from' => 'Api/Mail',
|
2016-04-02 16:16:20 +02:00
|
|
|
'version' => '2.0.3',
|
|
|
|
),
|
|
|
|
'pear.horde.org/Horde_Mail' => array(
|
|
|
|
'func' => 'pear_check',
|
2016-04-02 21:55:08 +02:00
|
|
|
'from' => 'Api/Mail',
|
2016-04-02 16:16:20 +02:00
|
|
|
'version' => '2.1.2',
|
|
|
|
),
|
|
|
|
'pear.horde.org/Horde_Smtp' => array(
|
|
|
|
'func' => 'pear_check',
|
2016-04-02 21:55:08 +02:00
|
|
|
'from' => 'Api/Mail',
|
2016-04-02 16:16:20 +02:00
|
|
|
'version' => '1.3.0',
|
|
|
|
),
|
|
|
|
'pear.horde.org/Horde_ManageSieve' => array(
|
|
|
|
'func' => 'pear_check',
|
2016-04-02 21:55:08 +02:00
|
|
|
'from' => 'Api/Mail',
|
2016-04-02 16:16:20 +02:00
|
|
|
'version' => '1.0.1',
|
|
|
|
),
|
|
|
|
// next 4 are required for TNEF support
|
|
|
|
'pear.horde.org/Horde_Compress' => array(
|
|
|
|
'func' => 'pear_check',
|
2016-04-02 21:55:08 +02:00
|
|
|
'from' => 'Api/Mail',
|
2016-04-02 16:16:20 +02:00
|
|
|
'version' => '2.0.8',
|
|
|
|
),
|
|
|
|
'pear.horde.org/Horde_Icalendar' => array(
|
|
|
|
'func' => 'pear_check',
|
2016-04-02 21:55:08 +02:00
|
|
|
'from' => 'Api/Mail',
|
2016-04-02 16:16:20 +02:00
|
|
|
'version' => '2.0.0',
|
|
|
|
),
|
|
|
|
'pear.horde.org/Horde_Mapi' => array(
|
|
|
|
'func' => 'pear_check',
|
2016-04-02 21:55:08 +02:00
|
|
|
'from' => 'Api/Mail',
|
2016-04-02 16:16:20 +02:00
|
|
|
'version' => '1.0.0',
|
|
|
|
),
|
|
|
|
'bcmath' => array(
|
|
|
|
'func' => 'extension_check',
|
2016-04-02 21:55:08 +02:00
|
|
|
'from' => 'Api/Mail',
|
2016-04-02 16:16:20 +02:00
|
|
|
),
|
|
|
|
);
|
|
|
|
|
|
|
|
// CalDAV / CardDAV Sync
|
|
|
|
$setup_info['groupdav']['name'] = 'groupdav';
|
2023-02-28 08:49:36 +01:00
|
|
|
$setup_info['groupdav']['version'] = '23.1';
|
2016-04-02 16:16:20 +02:00
|
|
|
$setup_info['groupdav']['enable'] = 2;
|
|
|
|
$setup_info['groupdav']['app_order'] = 1;
|
|
|
|
$setup_info['groupdav']['icon'] = 'groupdav';
|
|
|
|
$setup_info['groupdav']['icon_app'] = 'api';
|
|
|
|
$setup_info['groupdav']['author'] = $setup_info['groupdav']['maintainer'] = array(
|
|
|
|
'name' => 'Ralf Becker',
|
|
|
|
'email' => 'RalfBecker@outdoor-training.de'
|
|
|
|
);
|
|
|
|
$setup_info['groupdav']['license'] = 'GPL';
|
|
|
|
$setup_info['groupdav']['hooks']['preferences'] = 'EGroupware\\Api\\CalDAV\\Hooks::menus';
|
2024-10-23 15:20:02 +02:00
|
|
|
$setup_info['groupdav']['hooks']['settings'] = 'EGroupware\\Api\\CalDAV\\Hooks::settings';
|