steffen: server/kolab-horde-fbview/kolab-horde-fbview/fbview/kronolith/config .cvsignore, NONE, 1.1 .htaccess, NONE, 1.1 conf.php, NONE, 1.1 conf.xml, NONE, 1.1 html.php, NONE, 1.1 html.php.dist, NONE, 1.1 keywords.php.dist, NONE, 1.1 menu.php.dist, NONE, 1.1 prefs.php, NONE, 1.1 prefs.php.dist, NONE, 1.1

cvs at intevation.de cvs at intevation.de
Mon Oct 31 12:43:19 CET 2005


Author: steffen

Update of /kolabrepository/server/kolab-horde-fbview/kolab-horde-fbview/fbview/kronolith/config
In directory doto:/tmp/cvs-serv18388/kolab-horde-fbview/kolab-horde-fbview/fbview/kronolith/config

Added Files:
	.cvsignore .htaccess conf.php conf.xml html.php html.php.dist 
	keywords.php.dist menu.php.dist prefs.php prefs.php.dist 
Log Message:
Fbview in separate package

--- NEW FILE: .cvsignore ---
*~

--- NEW FILE: .htaccess ---
Deny from all

--- NEW FILE: conf.php ---
<?php
/* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */
// $Horde: kronolith/config/conf.xml,v 1.8 2004/04/21 19:05:01 chuck Exp $
$conf['calendar']['params']['folder'] = 'Calendar';
$conf['calendar']['driver'] = 'kolab';
$conf['storage']['params']['folder'] = '/freebusy';
$conf['storage']['driver'] = 'kolab';
$conf['metadata']['keywords'] = false;
$conf['menu']['print'] = true;
$conf['menu']['import_export'] = true;
$conf['menu']['apps'] = array('logout');
/* CONFIG END. DO NOT CHANGE ANYTHING IN OR BEFORE THIS LINE. */

--- NEW FILE: conf.xml ---
<?xml version="1.0"?>
<!-- $Horde: kronolith/config/conf.xml,v 1.8 2004/04/21 19:05:01 chuck Exp $ -->
<configuration>
 <configsection name="calendar">
  <configheader>
   Calendar Driver Settings
  </configheader>

  <configswitch name="driver" desc="What storage driver should we use?">sql

   <case name="mcal" desc="MCAL">
    <configsection name="params">
     <configdescription>
      Any parameters that the storage driver needs.
     </configdescription>
     <configstring name="driver" desc="What MCAL driver is being used?">mstore</configstring>
     <configstring name="username" desc="Connect to MCAL as">horde</configstring>
     <configstring name="password" required="false" desc="Password to connect with">****</configstring>
    </configsection>
   </case>

   <case name="sql" desc="SQL">

    <configsection name="params">
     <configswitch name="driverconfig" desc="Driver configuration">horde
      <case name="horde" desc="Horde defaults">
       <configstring name="table" desc="Database table">kronolith_events</configstring>
      </case>
      <case name="custom" desc="Custom parameters">
       <configdescription>
        Any parameters that the storage driver needs.
       </configdescription>
       <configenum name="phptype" desc="What database backend should we use?">mysql
        <values>
         <value desc="MySQL">mysql</value>
         <value desc="PostgreSQL">pgsql</value>
         <value desc="ODBC">odbc</value>
         <value desc="Oracle">oci8</value>
        </values>
       </configenum>
       <configstring name="hostspec" desc="Database server/host/ODBC dsn">localhost</configstring>
       <configstring name="username" desc="Username to connect to the database as">horde</configstring>
       <configstring name="password" required="false" desc="Password to connect with">****</configstring>
       <configstring name="database" desc="Database name to use">horde</configstring>
       <configswitch name="protocol" desc="How should we connect to the database?">unix
        <case name="unix" desc="UNIX Sockets">
         <configstring name="socket" required="false" desc="Location of UNIX socket, if using one">/var/lib/mysql/mysql.sock</configstring>
        </case>
        <case name="tcp" desc="TCP/IP">
         <configinteger name="port" required="false" desc="Port the DB is running on, if non-standard">3306</configinteger>
        </case>
       </configswitch>
       <configstring name="table" desc="Database table">kronolith_events</configstring>
       <configstring name="charset" desc="Internally used charset">iso-8859-1</configstring>
      </case>
     </configswitch>
    </configsection>

   </case>

   <case name="kolab" desc="Kolab">
    <configsection name="params">
     <configstring name="folder" desc="Which IMAP folder should be used to store the calendar data?">Calendar</configstring>
    </configsection>
   </case>

  </configswitch>
 </configsection>

 <configsection name="storage">

  <configheader>
   Free/Busy Driver Settings
  </configheader>

  <configswitch name="driver" desc="What free/busy driver should we use?">sql

   <case name="sql" desc="SQL">

    <configsection name="params">
     <configswitch name="driverconfig" desc="Driver configuration">horde
      <case name="horde" desc="Horde defaults">
       <configstring name="table" desc="Database table">kronolith_storage</configstring>
      </case>
      <case name="custom" desc="Custom parameters">
       <configdescription>
        Any parameters that the free/busy driver needs.
       </configdescription>
       <configenum name="phptype" desc="What database backend should we use?">mysql
        <values>
         <value desc="MySQL">mysql</value>
         <value desc="PostgreSQL">pgsql</value>
         <value desc="ODBC">odbc</value>
         <value desc="Oracle">oci8</value>
        </values>
       </configenum>
       <configstring name="hostspec" desc="Database server/host/ODBC dsn">localhost</configstring>
       <configstring name="username" desc="Username to connect to the database as">horde</configstring>
       <configstring name="password" required="false" desc="Password to connect with"></configstring>
       <configstring name="database" desc="Database name to use">horde</configstring>
       <configswitch name="protocol" desc="How should we connect to the database?">unix
        <case name="unix" desc="UNIX Sockets">
         <configstring name="socket" required="false" desc="Location of UNIX socket, if using one">/var/lib/mysql/mysql.sock</configstring>
        </case>
        <case name="tcp" desc="TCP/IP">
         <configinteger name="port" required="false" desc="Port the DB is running on, if non-standard">3306</configinteger>
        </case>
       </configswitch>
       <configstring name="table" desc="Database table">kronolith_storage</configstring>
       <configstring name="charset" desc="Internally used charset">iso-8859-1</configstring>
      </case>
     </configswitch>
    </configsection>

   </case>

   <case name="kolab" desc="Kolab">
    <configsection name="params">
     <configstring name="folder" desc="Which WebDAV folder should be used to store the free/busy data?">/freebusy</configstring>
    </configsection>
   </case>

  </configswitch>
 </configsection>

 <configsection name="metadata">
   <configheader>
        Metadata Settings
   </configheader>

   <configboolean name="keywords" desc="Should keywords be loaded from config/keywords.php to be assigned to events?">false</configboolean>
 </configsection>

 <configsection name="menu">
   <configheader>
        Menu Settings
   </configheader>

  <configboolean name="print" desc="Should we display a Print link in the Kronolith menu?">true</configboolean>
  <configboolean name="import_export" desc="Should we display an Import/Export link in the Horde application menus?">true</configboolean>
  <configmultienum name="apps" desc="Select any applications that should be linked in Kronolith's menu">
   <values>
    <configspecial name="list-horde-apps" />
   </values>
  </configmultienum>
 </configsection>
</configuration>

--- NEW FILE: html.php ---
<?php
/**
 * CSS properties unique to Kronolith.
 * This file is parsed by css.php, and used to produce a stylesheet.
 *
 * $Horde: kronolith/config/html.php.dist,v 1.31 2004/04/02 17:45:43 chuck Exp $
 */

$css['.day']['color'] = 'white';
$css['.day']['background-color'] = '#444466';
$css['.day:hover']['color'] = 'yellow';

$css['.hour']['font-size'] = '11px';
$css['.hour']['font-weight'] = 'bold';

$css['.halfhour']['font-size'] = '8px';
$css['.halfhour']['font-weight'] = 'bold';
$css['.halfhour']['vertical-align'] = 'super';

$css['.event']['font-size'] = '11px';
$css['.event']['color'] = 'black';

$css['.legend']['color'] = &$css['.light']['color'];
$css['.legend']['font-size'] = '11px';

$css['.today']['border'] = '2px solid #444466';
$css['.today']['background-color'] = 'white';

$css['.monthgrid']['background-color'] = '#999999';
$css['.othermonth']['background-color'] = '#e7eeec';
$css['.weekend']['background-color'] = '#fff9ef';

/* border-color and background-color will always be overridden for the
 * *-eventbox classes */
$css['.block-eventbox']['border-width'] = '1px';
$css['.block-eventbox']['border-style'] = 'solid';
$css['.block-eventbox']['-moz-border-radius'] = '5px';
$css['.block-eventbox']['padding-left'] = '1px';

$css['.month-eventbox']['border-width'] = '1px';
$css['.month-eventbox']['border-style'] = 'solid';
$css['.month-eventbox']['-moz-border-radius'] = '5px';
$css['.month-eventbox']['padding-left'] = '1px';

$css['.week-eventbox']['border-width'] = '1px';
$css['.week-eventbox']['border-style'] = 'solid';
$css['.week-eventbox']['-moz-border-radius'] = '15px';
$css['.week-eventbox']['padding-left'] = '5px';

$css['.day-eventbox']['border-width'] = '1px';
$css['.day-eventbox']['border-style'] = 'solid';
$css['.day-eventbox']['-moz-border-radius'] = '15px';
$css['.day-eventbox']['padding-left'] = '5px';

$css['.legend-eventbox']['border-width'] = '1px';
$css['.legend-eventbox']['border-style'] = 'solid';
$css['.legend-eventbox']['-moz-border-radius'] = '5px';
$css['.legend-eventbox']['padding-left'] = '1px';

/* Busy time periods. */
$css['.busy']['background-color'] = '#FF0000';
$css['.busy']['cursor'] = 'default';

/* Unknown time periods. */
$css['.unknown']['background-color'] = '#D4D0C8';
$css['.unknown']['background-image'] = 'url(' . $registry->getParam('graphics', 'kronolith') . '/unknown-background.gif)';    /* unknown time periods */
$css['.unknown']['background-repeat'] = 'repeat-x';

/* Free time periods. */
$css['.free']['background-color'] = '#28B22B';
$css['.free']['color'] = '#FFFFFF';

$css['.selected-control'] = $css['.selected'];
$css['.selected-control']['border-bottom'] = $css['.control']['border-bottom'];

--- NEW FILE: html.php.dist ---
<?php
/**
 * CSS properties unique to Kronolith.
 * This file is parsed by css.php, and used to produce a stylesheet.
 *
 * $Horde: kronolith/config/html.php.dist,v 1.31 2004/04/02 17:45:43 chuck Exp $
 */

$css['.day']['color'] = 'white';
$css['.day']['background-color'] = '#444466';
$css['.day:hover']['color'] = 'yellow';

$css['.hour']['font-size'] = '11px';
$css['.hour']['font-weight'] = 'bold';

$css['.halfhour']['font-size'] = '8px';
$css['.halfhour']['font-weight'] = 'bold';
$css['.halfhour']['vertical-align'] = 'super';

$css['.event']['font-size'] = '11px';
$css['.event']['color'] = 'black';

$css['.legend']['color'] = &$css['.light']['color'];
$css['.legend']['font-size'] = '11px';

$css['.today']['border'] = '2px solid #444466';
$css['.today']['background-color'] = 'white';

$css['.monthgrid']['background-color'] = '#999999';
$css['.othermonth']['background-color'] = '#e7eeec';
$css['.weekend']['background-color'] = '#fff9ef';

/* border-color and background-color will always be overridden for the
 * *-eventbox classes */
$css['.block-eventbox']['border-width'] = '1px';
$css['.block-eventbox']['border-style'] = 'solid';
$css['.block-eventbox']['-moz-border-radius'] = '5px';
$css['.block-eventbox']['padding-left'] = '1px';

$css['.month-eventbox']['border-width'] = '1px';
$css['.month-eventbox']['border-style'] = 'solid';
$css['.month-eventbox']['-moz-border-radius'] = '5px';
$css['.month-eventbox']['padding-left'] = '1px';

$css['.week-eventbox']['border-width'] = '1px';
$css['.week-eventbox']['border-style'] = 'solid';
$css['.week-eventbox']['-moz-border-radius'] = '15px';
$css['.week-eventbox']['padding-left'] = '5px';

$css['.day-eventbox']['border-width'] = '1px';
$css['.day-eventbox']['border-style'] = 'solid';
$css['.day-eventbox']['-moz-border-radius'] = '15px';
$css['.day-eventbox']['padding-left'] = '5px';

$css['.legend-eventbox']['border-width'] = '1px';
$css['.legend-eventbox']['border-style'] = 'solid';
$css['.legend-eventbox']['-moz-border-radius'] = '5px';
$css['.legend-eventbox']['padding-left'] = '1px';

/* Busy time periods. */
$css['.busy']['background-color'] = '#FF0000';

/* Unknown time periods. */
$css['.unknown']['background-color'] = '#D4D0C8';
$css['.unknown']['background-image'] = 'url(' . $registry->getParam('graphics', 'kronolith') . '/unknown-background.gif)';    /* unknown time periods */
$css['.unknown']['background-repeat'] = 'repeat-x';

/* Free time periods. */
$css['.free']['background-color'] = '#28B22B';
$css['.free']['color'] = '#FFFFFF';

$css['.selected-control'] = $css['.selected'];
$css['.selected-control']['border-bottom'] = $css['.control']['border-bottom'];

--- NEW FILE: keywords.php.dist ---
<?php
/*
 * Kronolith Keyword Definition File
 *
 * This file is where you define the list of keywords that can be used
 * to categorize events in Kronolith.
 *
 * There is no limit on how many keywords out of a specific category
 * an event can have; the categories are for logical groupings only.
 *
 * Each category will generate a table cell, with the category name in
 * bold and checkboxes for each entry in the category below it.
 *
 * $Horde: kronolith/config/keywords.php.dist,v 1.2 2002/02/19 18:00:42 chuck Exp $
 */

$keywords[_("Type")] = array(_("Birthday"), _("Meeting"), _("Game"));

--- NEW FILE: menu.php.dist ---
<?php
/*
 * $Horde: kronolith/config/menu.php.dist,v 1.3 2002/02/19 18:00:42 chuck Exp $
 *
 * This file lets you extend Kronolith's menu with your own items.
 *
 * To add a new menu item, simply add a new entry to the $_menu array.
 * Valid attributes for a new menu item are:
 *
 *  'url'       The URL value for the menu item.
 *  'text'      The text to accompany the menu item.
 *
 * These attributes are optional:
 *
 *  'icon'      The filename of an icon to use for the menu item.
 *  'icon_path' The path to the icon if it doesn't exist in the graphics/
 *              directory.
 *  'target'    The "target" of the link (e.g. '_top', '_blank').
 *  'onclick'   Any JavaScript to execute on the "onclick" event.
 *
 * Here's an example entry:
 *
 *  $_menu[] = array(   
 *      'url' =>        'http://www.example.com/',
 *      'text' =>       'Example, Inc.',
 *      'icon' =>       'example.gif',
 *      'icon_path' =>  'http://www.example.com/images/',
 *      'target' =>     '_blank',
 *      'onclick' =>    ''
 *  );
 *
 * You can also add a "separator" (a spacer) between menu items.  To add a
 * separator, simply add a new string to the $_menu array set to the text
 * 'separator'.  It should look like this:
 *
 *  $_menu[] = 'separator';
 */

$_menu = array();

/* Add your custom entries below this line. */

--- NEW FILE: prefs.php ---
<?php
/**
 * $Horde: kronolith/config/prefs.php.dist,v 1.52 2004/05/18 20:17:53 chuck Exp $
 *
 * See horde/config/prefs.php for documentation on the structure of this file.
 */

$prefGroups['view'] = array(
    'column' => _("Display Options"),
    'label' => _("User Interface"),
    'desc' => _("Select confirmation options, how to display the different views and choose default view."),
    'members' => array('confirm_delete', 'defaultview', 'half', 'time_between_days',
                       'week_start_monday', 'day_hour_start', 'day_hour_end',
                       'show_icons', 'show_legend', 'show_fb_legend', 'show_shared_side_by_side')
);

$prefGroups['summary'] = array(
    'column' => _("Display Options"),
    'label' => _("Portal Options"),
    'desc' => _("Select which events to show in the portal."),
    'members' => array('summary_days', 'summary_alarms')
);

$prefGroups['share'] = array(
    'column' => _("Calendars"),
    'label' => _("Shared Calendars"),
    'desc' => _("Create, edit, and delete calendars; also control the access of other users to calendars that you own."),
    'members' => array('shareselect')
);
if (Auth::getAuth()) {
    $prefGroups['share']['members'][] = 'share_link';
}

$prefGroups['remote'] = array(
    'column' => _("Calendars"),
    'label' => _("Remote Calendars"),
    'desc' => _("Manage remote calendars."),
    'members' => array('remote_cal_management')
);

if (isset($registry) && $registry->hasMethod('tasks/listTasks')) {
    $prefGroups['tasks'] = array(
        'column' => _("Display Options"),
        'label' => _("Tasks"),
        'desc' => _("Select to show due tasks in the calendar."),
        'members' => array('show_tasks')
    );
}

if (isset($registry) && $registry->hasMethod('meeting/list')) {
    $prefGroups['meetings'] = array(
        'column' => _("Display Options"),
        'label' => _("Meetings"),
        'desc' => _("Select to show meetings in the calendar."),
        'members' => array('show_meetings')
    );
}


// default view
$_prefs['defaultview'] = array(
    'value' => 'attendeesview',
    'locked' => false,
    'shared' => false,
    'type' => 'enum',
    'enum' => array('day' => _("Day"),
                    'week' => _("Week"),
                    'workweek' => _("Work Week"),
                    'month' => _("Month"),
                    'attendeesview' => _("Free/Busy")),
    'desc' => _("Select the view to display on startup:")
);

// half hour slots
$_prefs['half'] = array(
    'value' => 0,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show half hour slots in day and week views?")
);

// what day does the week start with
$_prefs['week_start_monday'] = array(
    'value' => '0',
    'locked' => false,
    'shared' => false,
    'type' => 'enum',
    'desc' => _("Select the first weekday:"),
    'enum' => array('0' => _("Sunday"),
                    '1' => _("Monday"))
);

// days to show in summary
$_prefs['summary_days'] = array(
    'value' => 7,
    'locked' => false,
    'shared' => false,
    'type' => 'enum',
    'desc' => _("Select the time span to show:"),
    'enum' => array(1 => '1 ' . _("day"),
                    2 => '2 ' . _("days"),
                    3 => '3 ' . _("days"),
                    4 => '4 ' . _("days"),
                    5 => '5 ' . _("days"),
                    6 => '6 ' . _("days"),
                    7 => '1 ' . _("week"),
                    14 => '2 ' . _("weeks"),
                    21 => '3 ' . _("weeks"),
                    28 => '4 ' . _("weeks"))
);

// show alarms in summary?
$_prefs['summary_alarms'] = array(
    'value' => 0,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show only events that have an alarm set?")
);

// show due tasks in the calendar views?
$_prefs['show_tasks'] = array(
    'value' => 0,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show due tasks in the calendar?")
);

// show meetings in the calendar views?
$_prefs['show_meetings'] = array(
    'value' => 0,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show meetings in the calendar?")
);

// confirm deletion of events which don't recur?
$_prefs['confirm_delete'] = array(
    'value' => 1,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Confirm deletion of events?")
);

// start of the time range in day/week views:
$_prefs['day_hour_start'] = array(
    'value' => 16,
    'locked' => false,
    'shared' => false,
    'type' => 'select',
    'desc' => _("What time should day and week views start, when there are no earlier events?")
);

// end of the time range in day/week views:
$_prefs['day_hour_end'] = array(
    'value' => 48,
    'locked' => false,
    'shared' => false,
    'type' => 'select',
    'desc' => _("What time should day and week views end, when there are no later events?")
);

// default calendar selection widget
$_prefs['shareselect'] = array('type' => 'special');

// default calendar
// Set locked to true if you don't want users to have multiple calendars.
$_prefs['default_share'] = array(
    'value' => Auth::getAuth() ? Auth::getAuth() : 0,
    'locked' => false,
    'shared' => true,
    'type' => 'implicit'
);

if (Auth::getAuth()) {
    $_prefs['share_link'] = array(
        'type' => 'link',
        'url' => 'calendars.php',
        'img' => 'kronolith.gif',
        'desc' => _("Edit your calendars.")
    );
}

// user calendar categories
$_prefs['event_categories'] = array(
    'value' => sprintf('1:%s|2:%s', _("Personal"), _("Business")),
    'locked' => false,
    'shared' => false,
    'type' => 'implicit'
);

// category highlight colors
$_prefs['event_colors'] = array(
    'value' => '1:#dddddd|2:#ffffcc',
    'locked' => false,
    'shared' => false,
    'type' => 'implicit'
);

// number of days to generate free/busy information for:
$_prefs['freebusy_days'] = array(
    'value' => 30,
    'locked' => false,
    'shared' => false,
    'type' => 'number',
    'desc' => _("How many days into the future should we generate free/busy information for?")
);

// store the calendars to diplay
$_prefs['display_cals'] = array(
    'value' => 'a:0:{}',
    'locked' => false,
    'shared' => false,
    'type' => 'implicit'
);

// show delete/alarm icons in the calendar view?
$_prefs['show_icons'] = array(
    'value' => 1,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show delete, alarm, and recurrence icons in calendar views?")
);

// manage remote calendars
$_prefs['remote_cal_management'] = array(
    'value' => '',
    'locked' => false,
    'shared' => false,
    'type' => 'special',
    'desc' => _("Edit Remote Calendars")
);

// store the remote calendars to display
$_prefs['remote_cals'] = array(
    'value' => 'a:0:{}',
    'locked' => false,
    'shared' => false,
    'type' => 'implicit'
);

// store the remote calendars to display
$_prefs['display_remote_cals'] = array(
    'value' => 'a:0:{}',
    'locked' => false,
    'shared' => false,
    'type' => 'implicit'
);

// collapsed or side by side view
$_prefs['show_shared_side_by_side'] = array(
    'value' => 0,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show shared calendars side-by-side")
);

// show category legend?
// a value of 0 = no, 1 = yes
$_prefs['show_legend'] = array(
    'value' => 1,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show category legend?")
);

// show free/busy legend?
// a value of 0 = no, 1 = yes
$_prefs['show_fb_legend'] = array(
    'value' => 0,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show free/busy legend?")
);

// display the timeslots between each day column, in week view
$_prefs['time_between_days'] = array(
    'value' => 0,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show time of day between each day in week views?")
);

$_prefs['saved_attendee_list'] = array(
    'value' => 'a:0:{}',
    'locked' => false,
    'shared' => false,
    'type' => 'text',
    'desc' => _("Saved Attendee List:")
);

--- NEW FILE: prefs.php.dist ---
<?php
/**
 * $Horde: kronolith/config/prefs.php.dist,v 1.54 2004/05/25 08:43:47 stuart Exp $
 *
 * See horde/config/prefs.php for documentation on the structure of this file.
 */

$prefGroups['view'] = array(
    'column' => _("Display Options"),
    'label' => _("User Interface"),
    'desc' => _("Select confirmation options, how to display the different views and choose default view."),
    'members' => array('confirm_delete', 'defaultview', 'half', 'time_between_days',
                       'week_start_monday', 'day_hour_start', 'day_hour_end',
                       'show_icons', 'show_legend', 'show_fb_legend', 'show_shared_side_by_side')
);

$prefGroups['summary'] = array(
    'column' => _("Display Options"),
    'label' => _("Portal Options"),
    'desc' => _("Select which events to show in the portal."),
    'members' => array('summary_days', 'summary_alarms')
);

$prefGroups['share'] = array(
    'column' => _("Calendars"),
    'label' => _("Shared Calendars"),
    'desc' => _("Create, edit, and delete calendars; also control the access of other users to calendars that you own."),
    'members' => array('shareselect')
);
if (Auth::getAuth()) {
    $prefGroups['share']['members'][] = 'share_link';
}

$prefGroups['remote'] = array(
    'column' => _("Calendars"),
    'label' => _("Remote Calendars"),
    'desc' => _("Manage remote calendars."),
    'members' => array('remote_cal_management')
);

if (isset($registry) && $registry->hasMethod('tasks/listTasks')) {
    $prefGroups['tasks'] = array(
        'column' => _("Display Options"),
        'label' => _("Tasks"),
        'desc' => _("Select to show due tasks in the calendar."),
        'members' => array('show_tasks')
    );
}

if (isset($registry) && $registry->hasMethod('meeting/list')) {
    $prefGroups['meetings'] = array(
        'column' => _("Display Options"),
        'label' => _("Meetings"),
        'desc' => _("Select to show meetings in the calendar."),
        'members' => array('show_meetings')
    );
}


// default view
$_prefs['defaultview'] = array(
    'value' => 'month',
    'locked' => false,
    'shared' => false,
    'type' => 'enum',
    'enum' => array('day' => _("Day"),
                    'week' => _("Week"),
                    'workweek' => _("Work Week"),
                    'month' => _("Month"),
                    'attendeesview' => _("Free/Busy")),
    'desc' => _("Select the view to display on startup:")
);

// half hour slots
$_prefs['half'] = array(
    'value' => 0,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show half hour slots in day and week views?")
);

// what day does the week start with
$_prefs['week_start_monday'] = array(
    'value' => '0',
    'locked' => false,
    'shared' => false,
    'type' => 'enum',
    'desc' => _("Select the first weekday:"),
    'enum' => array('0' => _("Sunday"),
                    '1' => _("Monday"))
);

// days to show in summary
$_prefs['summary_days'] = array(
    'value' => 7,
    'locked' => false,
    'shared' => false,
    'type' => 'enum',
    'desc' => _("Select the time span to show:"),
    'enum' => array(1 => '1 ' . _("day"),
                    2 => '2 ' . _("days"),
                    3 => '3 ' . _("days"),
                    4 => '4 ' . _("days"),
                    5 => '5 ' . _("days"),
                    6 => '6 ' . _("days"),
                    7 => '1 ' . _("week"),
                    14 => '2 ' . _("weeks"),
                    21 => '3 ' . _("weeks"),
                    28 => '4 ' . _("weeks"))
);

// show alarms in summary?
$_prefs['summary_alarms'] = array(
    'value' => 0,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show only events that have an alarm set?")
);

// show due tasks in the calendar views?
$_prefs['show_tasks'] = array(
    'value' => 0,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show due tasks in the calendar?")
);

// show meetings in the calendar views?
$_prefs['show_meetings'] = array(
    'value' => 0,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show meetings in the calendar?")
);

// confirm deletion of events which don't recur?
$_prefs['confirm_delete'] = array(
    'value' => 1,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Confirm deletion of events?")
);

// start of the time range in day/week views:
$_prefs['day_hour_start'] = array(
    'value' => 16,
    'locked' => false,
    'shared' => false,
    'type' => 'select',
    'desc' => _("What time should day and week views start, when there are no earlier events?")
);

// end of the time range in day/week views:
$_prefs['day_hour_end'] = array(
    'value' => 48,
    'locked' => false,
    'shared' => false,
    'type' => 'select',
    'desc' => _("What time should day and week views end, when there are no later events?")
);

// default calendar selection widget
$_prefs['shareselect'] = array('type' => 'special');

// default calendar
// Set locked to true if you don't want users to have multiple calendars.
$_prefs['default_share'] = array(
    'value' => Auth::getAuth() ? Auth::getAuth() : 0,
    'locked' => false,
    'shared' => true,
    'type' => 'implicit'
);

if (Auth::getAuth()) {
    $_prefs['share_link'] = array(
        'type' => 'link',
        'url' => 'calendars.php',
        'img' => 'kronolith.gif',
        'desc' => _("Edit your calendars.")
    );
}

// user calendar categories
$_prefs['event_categories'] = array(
    'value' => sprintf('1:%s|2:%s', _("Personal"), _("Business")),
    'locked' => false,
    'shared' => false,
    'type' => 'implicit'
);

// category highlight colors
$_prefs['event_colors'] = array(
    'value' => '1:#dddddd|2:#ffffcc',
    'locked' => false,
    'shared' => false,
    'type' => 'implicit'
);

// number of days to generate free/busy information for:
$_prefs['freebusy_days'] = array(
    'value' => 30,
    'locked' => false,
    'shared' => false,
    'type' => 'number',
    'desc' => _("How many days into the future should we generate free/busy information for?")
);

// store the calendars to diplay
$_prefs['display_cals'] = array(
    'value' => 'a:0:{}',
    'locked' => false,
    'shared' => false,
    'type' => 'implicit'
);

// show delete/alarm icons in the calendar view?
$_prefs['show_icons'] = array(
    'value' => 1,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show delete, alarm, and recurrence icons in calendar views?")
);

// manage remote calendars
$_prefs['remote_cal_management'] = array(
    'value' => '',
    'locked' => false,
    'shared' => false,
    'type' => 'special',
    'desc' => _("Edit Remote Calendars")
);

// store the remote calendars to display
$_prefs['remote_cals'] = array(
    'value' => 'a:0:{}',
    'locked' => false,
    'shared' => false,
    'type' => 'implicit'
);

// store the remote calendars to display
$_prefs['display_remote_cals'] = array(
    'value' => 'a:0:{}',
    'locked' => false,
    'shared' => false,
    'type' => 'implicit'
);

// collapsed or side by side view
$_prefs['show_shared_side_by_side'] = array(
    'value' => 0,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show shared calendars side-by-side")
);

// show category legend?
// a value of 0 = no, 1 = yes
$_prefs['show_legend'] = array(
    'value' => 1,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show category legend?")
);

// show free/busy legend?
// a value of 0 = no, 1 = yes
$_prefs['show_fb_legend'] = array(
    'value' => 1,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show free/busy legend?")
);

// display the timeslots between each day column, in week view
$_prefs['time_between_days'] = array(
    'value' => 0,
    'locked' => false,
    'shared' => false,
    'type' => 'checkbox',
    'desc' => _("Show time of day between each day in week views?")
);





More information about the commits mailing list