diff --git a/infolog/csv_import.php b/infolog/csv_import.php index ccb6e8144a..ba292e389e 100644 --- a/infolog/csv_import.php +++ b/infolog/csv_import.php @@ -1,16 +1,14 @@ * - * -------------------------------------------- * - * This program is free software; you can redistribute it and/or modify it * - * under the terms of the GNU General Public License as published by the * - * Free Software Foundation; either version 2 of the License, or (at your * - * option) any later version. * - \**************************************************************************/ - - /* $Id$ */ +/** + * InfoLog - CSV import + * + * @link http://www.egroupware.org + * @author Ralf Becker + * @package infolog + * @copyright (c) 2003-6 by Ralf Becker + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @version $Id$ + */ $GLOBALS['egw_info']['flags'] = array( 'currentapp' => 'infolog', diff --git a/infolog/inc/class.admin_prefs_sidebox_hooks.inc.php b/infolog/inc/class.admin_prefs_sidebox_hooks.inc.php index f414501801..fd164bba83 100644 --- a/infolog/inc/class.admin_prefs_sidebox_hooks.inc.php +++ b/infolog/inc/class.admin_prefs_sidebox_hooks.inc.php @@ -1,24 +1,17 @@ * - * ------------------------------------------------------- * - * This program is free software; you can redistribute it and/or modify it * - * under the terms of the GNU General Public License as published by the * - * Free Software Foundation; either version 2 of the License, or (at your * - * option) any later version. * - \**************************************************************************/ - - /* $Id$ */ +/** + * InfoLog - Admin-, Preferences- and SideboxMenu-Hooks + * + * @link http://www.egroupware.org + * @author Ralf Becker + * @package infolog + * @copyright (c) 2003-6 by Ralf Becker + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @version $Id$ + */ /** * Class containing admin, preferences and sidebox-menus (used as hooks) - * - * @package infolog - * @author Ralf Becker - * @copyright (c) by Ralf Becker - * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License */ class admin_prefs_sidebox_hooks { @@ -84,5 +77,3 @@ class admin_prefs_sidebox_hooks } } } - -?> diff --git a/infolog/inc/class.datasource_infolog.inc.php b/infolog/inc/class.datasource_infolog.inc.php index 0040f33399..12543438ad 100644 --- a/infolog/inc/class.datasource_infolog.inc.php +++ b/infolog/inc/class.datasource_infolog.inc.php @@ -1,16 +1,15 @@ * -* -------------------------------------------- * -* This program is free software; you can redistribute it and/or modify it * -* under the terms of the GNU General Public License as published by the * -* Free Software Foundation; either version 2 of the License, or (at your * -* option) any later version. * -\**************************************************************************/ - -/* $Id$ */ +/** + * InfoLog - Datasource for ProjektManager + * + * @link http://www.egroupware.org + * @author Ralf Becker + * @package infolog + * @subpackage projectmanager + * @copyright (c) 2005 by Ralf Becker + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @version $Id$ + */ include_once(EGW_INCLUDE_ROOT.'/projectmanager/inc/class.datasource.inc.php'); @@ -23,11 +22,6 @@ include_once(EGW_INCLUDE_ROOT.'/projectmanager/inc/class.datasource.inc.php'); * - planned start from the end of a start constrain * - planned end from the planned time and a start-time * - planned start and end from the "real" values - * - * @package infolog - * @author RalfBecker-AT-outdoor-training.de - * @copyright (c) 2005 by RalfBecker-AT-outdoor-training.de - * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License */ class datasource_infolog extends datasource { diff --git a/infolog/inc/class.infolog_link_registry.inc.php b/infolog/inc/class.infolog_link_registry.inc.php index 32ede940e2..717e356a99 100644 --- a/infolog/inc/class.infolog_link_registry.inc.php +++ b/infolog/inc/class.infolog_link_registry.inc.php @@ -1,37 +1,29 @@ * - * originaly based on todo written by Joseph Engo * - * -------------------------------------------- * - * This program is free software; you can redistribute it and/or modify it * - * under the terms of the GNU General Public License as published by the * - * Free Software Foundation; either version 2 of the License, or (at your * - * option) any later version. * - \**************************************************************************/ - - /* $Id$ */ +/** + * InfoLog - Link-registry + * + * @link http://www.egroupware.org + * @author Ralf Becker + * @package infolog + * @copyright (c) 2003-6 by Ralf Becker + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @version $Id$ + */ - include_once(EGW_INCLUDE_ROOT.'/infolog/inc/class.boinfolog.inc.php'); +include_once(EGW_INCLUDE_ROOT.'/infolog/inc/class.boinfolog.inc.php'); - /** - * This class returns the link-registry for infolog - * - * To prevent an invinit recursion, it has to be outside the boinfolog class, - * which itself instanciats the link class by default. - * - * @package infolog - * @author Ralf Becker - * @copyright (c) by RalfBecker-At-outdoor-training.de - * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License - */ - class infolog_link_registry +/** + * This class returns the link-registry for infolog + * + * To prevent an invinit recursion, it has to be outside the boinfolog class, + * which itself instanciats the link class by default. + */ +class infolog_link_registry +{ + function search_link($location) { - function search_link($location) - { - $bo =& new boinfolog(0,false); // false = dont instanciate the link class - - return $bo->search_link($location); - } - } \ No newline at end of file + $bo =& new boinfolog(0,false); // false = dont instanciate the link class + + return $bo->search_link($location); + } +} \ No newline at end of file diff --git a/infolog/inc/class.sifinfolog.inc.php b/infolog/inc/class.sifinfolog.inc.php index 38dc495189..5b18401afb 100644 --- a/infolog/inc/class.sifinfolog.inc.php +++ b/infolog/inc/class.sifinfolog.inc.php @@ -1,15 +1,14 @@ * - * -------------------------------------------- * - * This program is free software; you can redistribute it and/or modify it * - * under the terms of the GNU General Public License as published by the * - * Free Software Foundation; either version 2 of the License. * - \**************************************************************************/ - - /* $Id$ */ +/** + * InfoLog - SIF Parser + * + * @link http://www.egroupware.org + * @author Lars Kneschke + * @package infolog + * @subpackage syncml + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @version $Id$ + */ require_once PHPGW_SERVER_ROOT.'/infolog/inc/class.boinfolog.inc.php'; require_once EGW_SERVER_ROOT.'/phpgwapi/inc/horde/Horde/iCalendar.php'; diff --git a/infolog/inc/class.uicustomfields.inc.php b/infolog/inc/class.uicustomfields.inc.php index df5142dd63..4979457192 100644 --- a/infolog/inc/class.uicustomfields.inc.php +++ b/infolog/inc/class.uicustomfields.inc.php @@ -1,6 +1,6 @@ diff --git a/infolog/inc/class.vcalinfolog.inc.php b/infolog/inc/class.vcalinfolog.inc.php index a8b9bc5d2c..cf5f61cd7e 100644 --- a/infolog/inc/class.vcalinfolog.inc.php +++ b/infolog/inc/class.vcalinfolog.inc.php @@ -1,15 +1,14 @@ * - * -------------------------------------------- * - * This program is free software; you can redistribute it and/or modify it * - * under the terms of the GNU General Public License as published by the * - * Free Software Foundation; either version 2 of the License. * - \**************************************************************************/ - - /* $Id$ */ +/** + * InfoLog - iCalendar Parser + * + * @link http://www.egroupware.org + * @author Lars Kneschke + * @package infolog + * @subpackage syncml + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @version $Id$ + */ require_once EGW_SERVER_ROOT.'/infolog/inc/class.boinfolog.inc.php'; require_once EGW_SERVER_ROOT.'/phpgwapi/inc/horde/Horde/iCalendar.php'; diff --git a/infolog/inc/hook_deleteaccount.inc.php b/infolog/inc/hook_deleteaccount.inc.php index f886176eed..c230ad628a 100644 --- a/infolog/inc/hook_deleteaccount.inc.php +++ b/infolog/inc/hook_deleteaccount.inc.php @@ -1,22 +1,22 @@ + * @package infolog + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @version $Id$ + */ - // Delete all records for a user - if((int)$GLOBALS['hook_values']['account_id'] > 0) - { - $info =& CreateObject('infolog.soinfolog'); +// Delete all records for a user +if((int)$GLOBALS['hook_values']['account_id'] > 0) +{ + require_once(EGW_INCLUDE_ROOT.'/infolog/inc/class.soinfolog.inc.php'); - $info->change_delete_owner((int)$GLOBALS['hook_values']['account_id'],(int)$_POST['new_owner']); + $info =& new soinfolog; - unset($info); - } -?> + $info->change_delete_owner((int)$GLOBALS['hook_values']['account_id'],(int)$_POST['new_owner']); + + unset($info); +} diff --git a/infolog/inc/hook_home.inc.php b/infolog/inc/hook_home.inc.php index 1f152c0207..3bd309ae3d 100644 --- a/infolog/inc/hook_home.inc.php +++ b/infolog/inc/hook_home.inc.php @@ -1,57 +1,56 @@ + * @package infolog + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @version $Id$ + */ - if (($showevents = $GLOBALS['egw_info']['user']['preferences']['infolog']['homeShowEvents'])) +if (($showevents = $GLOBALS['egw_info']['user']['preferences']['infolog']['homeShowEvents'])) +{ + $save_app = $GLOBALS['egw_info']['flags']['currentapp']; + $GLOBALS['egw_info']['flags']['currentapp'] = 'infolog'; + + $GLOBALS['egw']->translation->add_app('infolog'); + + $app_id = $GLOBALS['egw']->applications->name2id('infolog'); + $GLOBALS['portal_order'][] = $app_id; + + $infolog =& CreateObject('infolog.uiinfolog'); + $infolog->called_by = 'home'; + + if (in_array($showevents,array('1','2'))) $showevents = 'own-open-today'; + $html = $infolog->index(array('nm' => array('filter' => $showevents)),'','',0,False,True); + $title = lang('InfoLog').' - '.lang($infolog->filters[$showevents]); + unset($infolog); + + $portalbox =& CreateObject('phpgwapi.listbox',array( + 'title' => $title, + 'primary' => $GLOBALS['egw_info']['theme']['navbar_bg'], + 'secondary' => $GLOBALS['egw_info']['theme']['navbar_bg'], + 'tertiary' => $GLOBALS['egw_info']['theme']['navbar_bg'], + 'width' => '100%', + 'outerborderwidth' => '0', + 'header_background_image' => $GLOBALS['egw']->common->image('phpgwapi/templates/default','bg_filler') + )); + foreach(array('up','down','close','question','edit') as $key) { - $save_app = $GLOBALS['egw_info']['flags']['currentapp']; - $GLOBALS['egw_info']['flags']['currentapp'] = 'infolog'; + $portalbox->set_controls($key,Array('url' => '/set_box.php', 'app' => $app_id)); + } + $portalbox->data = $data; - $GLOBALS['egw']->translation->add_app('infolog'); - - $app_id = $GLOBALS['egw']->applications->name2id('infolog'); - $GLOBALS['portal_order'][] = $app_id; - - $infolog =& CreateObject('infolog.uiinfolog'); - $infolog->called_by = 'home'; - - if (in_array($showevents,array('1','2'))) $showevents = 'own-open-today'; - $html = $infolog->index(array('nm' => array('filter' => $showevents)),'','',0,False,True); - $title = lang('InfoLog').' - '.lang($infolog->filters[$showevents]); - unset($infolog); - - $portalbox =& CreateObject('phpgwapi.listbox',array( - 'title' => $title, - 'primary' => $GLOBALS['egw_info']['theme']['navbar_bg'], - 'secondary' => $GLOBALS['egw_info']['theme']['navbar_bg'], - 'tertiary' => $GLOBALS['egw_info']['theme']['navbar_bg'], - 'width' => '100%', - 'outerborderwidth' => '0', - 'header_background_image' => $GLOBALS['egw']->common->image('phpgwapi/templates/default','bg_filler') - )); - foreach(array('up','down','close','question','edit') as $key) - { - $portalbox->set_controls($key,Array('url' => '/set_box.php', 'app' => $app_id)); - } - $portalbox->data = $data; - - if (!file_exists(EGW_SERVER_ROOT.($et_css_file ='/etemplate/templates/'.$GLOBALS['egw_info']['user']['preferences']['common']['template_set'].'/app.css'))) - { - $et_css_file = '/etemplate/templates/default/app.css'; - } - if (!file_exists(EGW_SERVER_ROOT.($css_file ='/infolog/templates/'.$GLOBALS['egw_info']['user']['preferences']['common']['template_set'].'/app.css'))) - { - $css_file = '/infolog/templates/default/app.css'; - } - echo ' + if (!file_exists(EGW_SERVER_ROOT.($et_css_file ='/etemplate/templates/'.$GLOBALS['egw_info']['user']['preferences']['common']['template_set'].'/app.css'))) + { + $et_css_file = '/etemplate/templates/default/app.css'; + } + if (!file_exists(EGW_SERVER_ROOT.($css_file ='/infolog/templates/'.$GLOBALS['egw_info']['user']['preferences']['common']['template_set'].'/app.css'))) + { + $css_file = '/infolog/templates/default/app.css'; + } + echo ' -'. $portalbox->draw($html)."\n\n"; +'. $portalbox->draw($html)."\n\n"; - unset($css_file); unset($et_css_file); - unset($portalbox); - unset($html); - $GLOBALS['egw_info']['flags']['currentapp'] = $save_app; - } - unset($showevents); -?> + unset($css_file); unset($et_css_file); + unset($portalbox); + unset($html); + $GLOBALS['egw_info']['flags']['currentapp'] = $save_app; +} +unset($showevents); diff --git a/infolog/inc/hook_settings.inc.php b/infolog/inc/hook_settings.inc.php index 83217ac469..2a051c7cee 100644 --- a/infolog/inc/hook_settings.inc.php +++ b/infolog/inc/hook_settings.inc.php @@ -1,16 +1,13 @@ * - * -------------------------------------------- * - * This program is free software; you can redistribute it and/or modify it * - * under the terms of the GNU General Public License as published by the * - * Free Software Foundation; either version 2 of the License, or (at your * - * option) any later version. * - \**************************************************************************/ - - /* $Id$ */ +/** + * InfoLog - Preferences + * + * @link http://www.egroupware.org + * @author Ralf Becker + * @package infolog + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @version $Id$ + */ /* Setup some values to fill the array of this app's settings below */ $ui =& CreateObject('infolog.uiinfolog'); // need some labels from diff --git a/infolog/setup/setup.inc.php b/infolog/setup/setup.inc.php index d0c276aa8b..06e8472fa1 100755 --- a/infolog/setup/setup.inc.php +++ b/infolog/setup/setup.inc.php @@ -1,78 +1,73 @@ 'Ralf Becker', - 'email' => 'ralfbecker@outdoor-training.de' - ); - $setup_info['infolog']['license'] = 'GPL'; - $setup_info['infolog']['description'] = - '

CRM (customer-relation-management) type app using Addressbook providing - Todo List, Notes and Phonelog. InfoLog is orininaly based on eGroupWare\'s - old ToDo-List and has the features of all 3 mentioned applications plus fully working ACL - (including Add+Private attributes, add for to addreplys/subtasks).

-

Responsibility for a task (ToDo) or a phonecall can be delegated to an other - user. All entries can be linked to addressbook entries, projects and/or calendar events. - This allows you to log all activity of a contact/address or project. - The entries may be viewed or added from InfoLog direct or from within - the contact/address, project or calendar view.

-

Other documents / files can be linked to InfoLog entries and are store in the VFS - (eGroupWare\'s virtual file system). An extension of the VFS allows to symlink - the files to a fileserver, instead of placeing a copy in the VFS - (need to be configured in the admin-section). - It is planed to include emails and faxes into InfoLog in the future.

'; - $setup_info['infolog']['note'] = - '

There is a CSV import filter (in the admin-section) to import existing data. - It allows to interactivly assign fields, customize the values with regular - expressions and direct calls to php-functions (e.g. to link the phone calls - (again) to the addressbook entrys).

-

More information about InfoLog and the current development-status can be found on the - InfoLog page on our Website.

'; - - /* The hooks this app includes, needed for hooks registration */ - $setup_info['infolog']['hooks']['preferences'] = 'infolog.admin_prefs_sidebox_hooks.all_hooks'; - $setup_info['infolog']['hooks'][] = 'settings'; - $setup_info['infolog']['hooks']['admin'] = 'infolog.admin_prefs_sidebox_hooks.all_hooks'; - $setup_info['infolog']['hooks'][] = 'deleteaccount'; - $setup_info['infolog']['hooks'][] = 'home'; - $setup_info['infolog']['hooks']['addressbook_view'] = 'infolog.uiinfolog.hook_view'; - $setup_info['infolog']['hooks']['projects_view'] = 'infolog.uiinfolog.hook_view'; - $setup_info['infolog']['hooks']['calendar_view'] = 'infolog.uiinfolog.hook_view'; - $setup_info['infolog']['hooks']['infolog'] = 'infolog.uiinfolog.hook_view'; - $setup_info['infolog']['hooks']['calendar_include_events'] = 'infolog.boinfolog.cal_to_include'; - $setup_info['infolog']['hooks']['calendar_include_todos'] = 'infolog.boinfolog.cal_to_include'; - $setup_info['infolog']['hooks']['sidebox_menu'] = 'infolog.admin_prefs_sidebox_hooks.all_hooks'; - $setup_info['infolog']['hooks']['search_link'] = 'infolog.infolog_link_registry.search_link'; - $setup_info['infolog']['hooks']['pm_custom_app_icons'] = 'infolog.boinfolog.pm_icons'; - - /* Dependencies for this app to work */ - $setup_info['infolog']['depends'][] = array( - 'appname' => 'phpgwapi', - 'versions' => Array('1.3','1.4','1.5') - ); - $setup_info['infolog']['depends'][] = array( - 'appname' => 'etemplate', - 'versions' => Array('1.3','1.4','1.5') - ); - +/** + * InfoLog - Setup + * + * @link http://www.egroupware.org + * @author Ralf Becker + * @package infolog + * @subpackage setup + * @copyright (c) 2003-6 by Ralf Becker + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @version $Id$ + */ +$setup_info['infolog']['name'] = 'infolog'; +$setup_info['infolog']['version'] = '1.4'; +$setup_info['infolog']['app_order'] = 5; +$setup_info['infolog']['tables'] = array('egw_infolog','egw_infolog_extra'); +$setup_info['infolog']['enable'] = 1; +$setup_info['infolog']['author'] = +$setup_info['infolog']['maintainer'] = array( + 'name' => 'Ralf Becker', + 'email' => 'ralfbecker@outdoor-training.de' +); +$setup_info['infolog']['license'] = 'GPL'; +$setup_info['infolog']['description'] = + '

CRM (customer-relation-management) type app using Addressbook providing + Todo List, Notes and Phonelog. InfoLog is orininaly based on eGroupWare\'s + old ToDo-List and has the features of all 3 mentioned applications plus fully working ACL + (including Add+Private attributes, add for to addreplys/subtasks).

+

Responsibility for a task (ToDo) or a phonecall can be delegated to an other + user. All entries can be linked to addressbook entries, projects and/or calendar events. + This allows you to log all activity of a contact/address or project. + The entries may be viewed or added from InfoLog direct or from within + the contact/address, project or calendar view.

+

Other documents / files can be linked to InfoLog entries and are store in the VFS + (eGroupWare\'s virtual file system). An extension of the VFS allows to symlink + the files to a fileserver, instead of placeing a copy in the VFS + (need to be configured in the admin-section). + It is planed to include emails and faxes into InfoLog in the future.

'; +$setup_info['infolog']['note'] = + '

There is a CSV import filter (in the admin-section) to import existing data. + It allows to interactivly assign fields, customize the values with regular + expressions and direct calls to php-functions (e.g. to link the phone calls + (again) to the addressbook entrys).

+

More information about InfoLog and the current development-status can be found on the + InfoLog page on our Website.

'; +/* The hooks this app includes, needed for hooks registration */ +$setup_info['infolog']['hooks']['preferences'] = 'infolog.admin_prefs_sidebox_hooks.all_hooks'; +$setup_info['infolog']['hooks'][] = 'settings'; +$setup_info['infolog']['hooks']['admin'] = 'infolog.admin_prefs_sidebox_hooks.all_hooks'; +$setup_info['infolog']['hooks'][] = 'deleteaccount'; +$setup_info['infolog']['hooks'][] = 'home'; +$setup_info['infolog']['hooks']['addressbook_view'] = 'infolog.uiinfolog.hook_view'; +$setup_info['infolog']['hooks']['projects_view'] = 'infolog.uiinfolog.hook_view'; +$setup_info['infolog']['hooks']['calendar_view'] = 'infolog.uiinfolog.hook_view'; +$setup_info['infolog']['hooks']['infolog'] = 'infolog.uiinfolog.hook_view'; +$setup_info['infolog']['hooks']['calendar_include_events'] = 'infolog.boinfolog.cal_to_include'; +$setup_info['infolog']['hooks']['calendar_include_todos'] = 'infolog.boinfolog.cal_to_include'; +$setup_info['infolog']['hooks']['sidebox_menu'] = 'infolog.admin_prefs_sidebox_hooks.all_hooks'; +$setup_info['infolog']['hooks']['search_link'] = 'infolog.infolog_link_registry.search_link'; +$setup_info['infolog']['hooks']['pm_custom_app_icons'] = 'infolog.boinfolog.pm_icons'; +/* Dependencies for this app to work */ +$setup_info['infolog']['depends'][] = array( + 'appname' => 'phpgwapi', + 'versions' => Array('1.3','1.4','1.5') +); +$setup_info['infolog']['depends'][] = array( + 'appname' => 'etemplate', + 'versions' => Array('1.3','1.4','1.5') +); diff --git a/infolog/setup/tables_current.inc.php b/infolog/setup/tables_current.inc.php index 9dfd1f4bbd..99225ff8ef 100644 --- a/infolog/setup/tables_current.inc.php +++ b/infolog/setup/tables_current.inc.php @@ -1,15 +1,15 @@ + * @package infolog + * @subpackage setup + * @copyright (c) 2003-6 by Ralf Becker + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @version $Id$ + */ $phpgw_baseline = array( 'egw_infolog' => array( diff --git a/infolog/setup/tables_update.inc.php b/infolog/setup/tables_update.inc.php index fe63301ead..f6c7563346 100644 --- a/infolog/setup/tables_update.inc.php +++ b/infolog/setup/tables_update.inc.php @@ -1,15 +1,15 @@ + * @package infolog + * @subpackage setup + * @copyright (c) 2003-6 by Ralf Becker + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @version $Id$ + */ $test[] = '0.9.11'; function infolog_upgrade0_9_11()