From 210edef7dc79adee4eaac0b62bf36fb5c4e3fd1e Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 4 Jan 2012 17:02:26 +0100 Subject: [PATCH 01/30] Fix event deletion in database backend --- plugins/calendar/drivers/database/database_driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/calendar/drivers/database/database_driver.php b/plugins/calendar/drivers/database/database_driver.php index 83843d7f..ba7f1e7c 100644 --- a/plugins/calendar/drivers/database/database_driver.php +++ b/plugins/calendar/drivers/database/database_driver.php @@ -578,7 +578,7 @@ class database_driver extends calendar_driver // read master if deleting a recurring event if ($event['recurrence'] || $event['recurrence_id']) { - $master = $event['recurrence_id'] ? $this->get_event(array('id' => $old['recurrence_id'])) : $event; + $master = $event['recurrence_id'] ? $this->get_event(array('id' => $event['recurrence_id'])) : $event; $savemode = $event['_savemode']; } From ee77665dd507fdcc444b474b6a719ed54d20a08d Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 4 Jan 2012 23:05:34 +0100 Subject: [PATCH 02/30] Adapt to new timezone handling in Roundcube core; provide direct url to subscribe to calendars (using http auth) --- plugins/calendar/calendar.php | 88 +++++++++++++++++-- plugins/calendar/calendar_ui.js | 23 ++++- plugins/calendar/lib/calendar_ical.php | 16 ++-- plugins/calendar/lib/calendar_ui.php | 7 +- plugins/calendar/localization/de_CH.inc | 2 + plugins/calendar/localization/de_DE.inc | 2 + plugins/calendar/localization/en_US.inc | 2 + plugins/calendar/skins/default/calendar.css | 12 ++- .../skins/default/templates/calendar.html | 6 ++ 9 files changed, 135 insertions(+), 23 deletions(-) diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index 39496ca6..56247e6c 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -38,6 +38,7 @@ class calendar extends rcube_plugin public $home; // declare public to be used in other classes public $urlbase; public $timezone; + public $timezone_offset; public $gmt_offset; public $ical; @@ -96,10 +97,11 @@ class calendar extends rcube_plugin $this->add_texts('localization/', $this->rc->task == 'calendar' && (!$this->rc->action || $this->rc->action == 'print')); // set user's timezone - $this->timezone = $this->rc->config->get('timezone'); - $this->dst_active = $this->rc->config->get('dst_active'); - $this->gmt_offset = ($this->timezone + $this->dst_active) * 3600; - $this->user_timezone = new DateTimeZone($this->timezone ? timezone_name_from_abbr("", $this->gmt_offset, $this->dst_active) : 'GMT'); + $this->timezone = new DateTimeZone($this->rc->config->get('timezone', 'GMT')); + $now = new DateTime('now', $this->timezone); + $this->timezone_offset = $now->format('Z') / 3600; + $this->dst_active = $now->format('I'); + $this->gmt_offset = $now->getOffset(); require($this->home . '/lib/calendar_ui.php'); $this->ui = new calendar_ui($this); @@ -119,6 +121,9 @@ class calendar extends rcube_plugin if ($this->rc->action == 'attend' && !empty($_REQUEST['_t'])) { $this->add_hook('startup', array($this, 'itip_attend_response')); } + else if ($this->rc->action == 'feed' && !empty($_REQUEST['_cal'])) { + $this->add_hook('startup', array($this, 'ical_feed_export')); + } else if ($this->rc->task == 'calendar' && $this->rc->action != 'save-pref') { if ($this->rc->action != 'upload') { $this->load_driver(); @@ -890,7 +895,7 @@ class calendar extends rcube_plugin /** * Construct the ics file for exporting events to iCalendar format; */ - function export_events() + function export_events($terminate = true) { $start = get_input_value('start', RCUBE_INPUT_GET); $end = get_input_value('end', RCUBE_INPUT_GET); @@ -903,14 +908,73 @@ class calendar extends rcube_plugin $calname = $calendars[$calid]['name'] ? $calendars[$calid]['name'] : $calid; $events = $this->driver->load_events($start, $end, null, $calid, 0); } + else + $events = array(); header("Content-Type: text/calendar"); header("Content-Disposition: inline; filename=".$calname.'.ics'); - + $this->get_ical()->export($events, '', true); + + if ($terminate) + exit; + } + + + /** + * Handler for iCal feed requests + */ + function ical_feed_export() + { + // process HTTP auth info + if (!empty($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) { + $_POST['_user'] = $_SERVER['PHP_AUTH_USER']; // used for rcmail::autoselect_host() + $auth = $this->rc->plugins->exec_hook('authenticate', array( + 'host' => $this->rc->autoselect_host(), + 'user' => trim($_SERVER['PHP_AUTH_USER']), + 'pass' => $_SERVER['PHP_AUTH_PW'], + 'cookiecheck' => true, + 'valid' => true, + )); + if ($auth['valid'] && !$auth['abort']) + $this->rc->login($auth['user'], $auth['pass'], $auth['host']); + } + + // require HTTP auth + if (empty($_SESSION['user_id'])) { + header('WWW-Authenticate: Basic realm="Roundcube Calendar"'); + header('HTTP/1.0 401 Unauthorized'); + exit; + } + + // decode calendar feed hash + $format = 'ics'; + $calhash = get_input_value('_cal', RCUBE_INPUT_GET); + if (preg_match(($suff_regex = '/\.([a-z0-9]{3,5})$/i'), $calhash, $m)) { + $format = strtolower($m[1]); + $calhash = preg_replace($suff_regex, '', $calhash); + } + + if (!strpos($calhash, ':')) + $calhash = base64_decode($calhash); + + list($user, $_GET['source']) = explode(':', $calhash, 2); + + // sanity check user + if ($this->rc->user->get_username() == $user) { + $this->load_driver(); + $this->export_events(false); + } + else { + header('HTTP/1.0 404 Not Found'); + } + + // don't save session data + session_destroy(); exit; } + /** * */ @@ -939,7 +1003,7 @@ class calendar extends rcube_plugin $settings['agenda_sections'] = $this->rc->config->get('calendar_agenda_sections', $this->defaults['calendar_agenda_sections']); $settings['event_coloring'] = (int)$this->rc->config->get('calendar_event_coloring', $this->defaults['calendar_event_coloring']); $settings['time_indicator'] = (int)$this->rc->config->get('calendar_time_indicator', $this->defaults['calendar_time_indicator']); - $settings['timezone'] = $this->timezone; + $settings['timezone'] = $this->timezone_offset; $settings['dst'] = $this->dst_active; // localization @@ -1661,8 +1725,8 @@ class calendar extends rcube_plugin } // add timezone information - if ($tzinfo && ($tzname = $this->user_timezone->getName())) { - $fromto .= ' (' . $tzname . ')'; + if ($tzinfo && ($tzname = $this->timezone->getName())) { + $fromto .= ' (' . strtr($tzname, '_', ' ') . ')'; } return $fromto; @@ -2311,4 +2375,10 @@ class calendar extends rcube_plugin return $url; } + + public function ical_feed_hash($source) + { + return base64_encode($this->rc->user->get_username() . ':' . $source); + } + } diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js index 31481d32..cd1a5d95 100644 --- a/plugins/calendar/calendar_ui.js +++ b/plugins/calendar/calendar_ui.js @@ -1953,6 +1953,26 @@ function rcube_calendar_ui(settings) this.refresh(p); }; + // show URL of the given calendar in a dialog box + this.showurl = function(calendar) + { + var $dialog = $('#calendarurlbox').dialog('close'); + + if (calendar.feedurl) { + $dialog.dialog({ + resizable: true, + closeOnEscape: true, + title: rcmail.gettext('showurl', 'calendar'), + close: function() { + $dialog.dialog("destroy").hide(); + }, + width: 520 + }).show(); + + $('#calfeedurl').val(calendar.feedurl).select(); + } + }; + // refresh the calendar view after saving event data this.refresh = function(p) { @@ -2183,7 +2203,7 @@ function rcube_calendar_ui(settings) var id = $(this).data('id'); rcmail.select_folder(id, 'rcmlical'); rcmail.enable_command('calendar-edit', true); - rcmail.enable_command('calendar-remove', 'events-import', !me.calendars[id].readonly); + rcmail.enable_command('calendar-remove', 'events-import', 'calendar-showurl', !me.calendars[id].readonly); me.selected_calendar = id; }) .dblclick(function(){ me.calendar_edit_dialog(me.calendars[me.selected_calendar]); }) @@ -2673,6 +2693,7 @@ window.rcmail && rcmail.addEventListener('init', function(evt) { rcmail.register_command('calendar-edit', function(){ cal.calendar_edit_dialog(cal.calendars[cal.selected_calendar]); }, false); rcmail.register_command('calendar-remove', function(){ cal.calendar_remove(cal.calendars[cal.selected_calendar]); }, false); rcmail.register_command('events-import', function(){ cal.import_events(cal.calendars[cal.selected_calendar]); }, false); + rcmail.register_command('calendar-showurl', function(){ cal.showurl(cal.calendars[cal.selected_calendar]); }, false); // search and export events rcmail.register_command('export', function(){ rcmail.goto_url('export_events', { source:cal.selected_calendar }); }, true); diff --git a/plugins/calendar/lib/calendar_ical.php b/plugins/calendar/lib/calendar_ical.php index 9a536722..c99fab35 100644 --- a/plugins/calendar/lib/calendar_ical.php +++ b/plugins/calendar/lib/calendar_ical.php @@ -40,8 +40,7 @@ class calendar_ical private $rc; private $cal; - private $timezone = 'Z'; - + public $method; public $events = array(); @@ -49,12 +48,6 @@ class calendar_ical { $this->cal = $cal; $this->rc = $cal->rc; - - // compose timezone string - if ($cal->timezone) { - $hours = floor($cal->timezone + $cal->dst_active); - $this->timezone = sprintf('%s%02d:%02d', ($hours >= 0 ? '+' : ''), $hours, ($cal->timezone - $hours) * 60); - } } /** @@ -313,7 +306,12 @@ class calendar_ical private function _date2time($prop) { // create timestamp at 12:00 in user's timezone - return is_array($prop) ? strtotime(sprintf('%04d%02d%02dT120000%s', $prop['year'], $prop['month'], $prop['mday'], $this->timezone)) : $prop; + if (is_array($prop)) { + $date = new DateTime(sprintf('%04d%02d%02dT120000', $prop['year'], $prop['month'], $prop['mday']), $this->cal->timezone); + console($prop, $date->format('r')); + return $date->getTimestamp(); + } + return $prop; } diff --git a/plugins/calendar/lib/calendar_ui.php b/plugins/calendar/lib/calendar_ui.php index a8c89800..d009ef2b 100644 --- a/plugins/calendar/lib/calendar_ui.php +++ b/plugins/calendar/lib/calendar_ui.php @@ -48,11 +48,11 @@ class calendar_ui // add taskbar button $this->cal->add_button(array( - 'name' => 'calendar', + 'command' => 'calendar', 'class' => 'button-calendar', + 'classsel' => 'button-calendar button-selected', + 'innerclass' => 'button-inner', 'label' => 'calendar.calendar', - 'href' => './?_task=calendar', - 'onclick' => sprintf("%s.command('plugin.calendar');return false", JS_OBJECT_NAME), ), 'taskbar'); // load basic client script (which - unfortunately - requires fullcalendar) @@ -191,6 +191,7 @@ class calendar_ui $prop['freebusy'] = $this->cal->driver->freebusy; $prop['attachments'] = $this->cal->driver->attachments; $prop['undelete'] = $this->cal->driver->undelete; + $prop['feedurl'] = $this->cal->get_url(array('_cal' => $this->cal->ical_feed_hash($id) . '.ics', 'action' => 'feed')); $jsenv[$id] = $prop; $html_id = html_identifier($id); diff --git a/plugins/calendar/localization/de_CH.inc b/plugins/calendar/localization/de_CH.inc index 34f89099..266b37bf 100644 --- a/plugins/calendar/localization/de_CH.inc +++ b/plugins/calendar/localization/de_CH.inc @@ -72,6 +72,8 @@ $labels['importevents'] = 'Termine importieren'; $labels['importrange'] = 'Termine ab'; $labels['onemonthback'] = '1 Monat zurück'; $labels['nmonthsback'] = '$nr Monate zurück'; +$labels['showurl'] = 'URL anzeigen'; +$labels['showurldescription'] = 'Über die folgende Adresse können Sie mit einem beliebigen Kalenderprogramm auf Ihren Kalender zugreifen, sofern dieses das iCal-Format unterstützt.'; // agenda view $labels['listrange'] = 'Angezeigter Bereich:'; diff --git a/plugins/calendar/localization/de_DE.inc b/plugins/calendar/localization/de_DE.inc index 9a16e87d..91b7ef5b 100644 --- a/plugins/calendar/localization/de_DE.inc +++ b/plugins/calendar/localization/de_DE.inc @@ -72,6 +72,8 @@ $labels['importevents'] = 'Termine importieren'; $labels['importrange'] = 'Termine ab'; $labels['onemonthback'] = '1 Monat zurück'; $labels['nmonthsback'] = '$nr Monate zurück'; +$labels['showurl'] = 'URL anzeigen'; +$labels['showurldescription'] = 'Über die folgende Adresse können Sie mit einem beliebigen Kalenderprogramm auf Ihren Kalender zugreifen, sofern dieses das iCal-Format unterstützt.'; // agenda view $labels['listrange'] = 'Angezeigter Bereich:'; diff --git a/plugins/calendar/localization/en_US.inc b/plugins/calendar/localization/en_US.inc index 8050bb8b..664eecfb 100644 --- a/plugins/calendar/localization/en_US.inc +++ b/plugins/calendar/localization/en_US.inc @@ -72,6 +72,8 @@ $labels['importevents'] = 'Import events'; $labels['importrange'] = 'Events from'; $labels['onemonthback'] = '1 month back'; $labels['nmonthsback'] = '$nr months back'; +$labels['showurl'] = 'Show calendar URL'; +$labels['showurldescription'] = 'Use the following address to access your calendar from other applications. You can copy and paste this into any calendar software that supports the iCal format.'; // agenda view $labels['listrange'] = 'Range to display:'; diff --git a/plugins/calendar/skins/default/calendar.css b/plugins/calendar/skins/default/calendar.css index aa1d5507..51984834 100644 --- a/plugins/calendar/skins/default/calendar.css +++ b/plugins/calendar/skins/default/calendar.css @@ -162,6 +162,14 @@ pre { background-position: 0 -92px; } +#calfeedurl { + width: 98%; + background: #fbfbfb; + padding: 4px; + margin-bottom: 1em; + resize: none; +} + #agendalist { width: 100%; margin: 0 auto; @@ -1164,7 +1172,9 @@ fieldset #calendarcategories div { /* Invitation UI in mail */ #messagemenu li a.calendarlink { - background: url(images/calendars.png) 7px -109px no-repeat; + background-image: url(images/calendars.png); + background-position: 7px -109px; + background-repeat: no-repeat; } div.calendar-invitebox { diff --git a/plugins/calendar/skins/default/templates/calendar.html b/plugins/calendar/skins/default/templates/calendar.html index 6253ab7c..e6e12711 100644 --- a/plugins/calendar/skins/default/templates/calendar.html +++ b/plugins/calendar/skins/default/templates/calendar.html @@ -36,6 +36,7 @@
  • +
  • @@ -142,6 +143,11 @@ +
    +

    + +
    +
    From 47e3da633dcc89b5ff9652bb58ccca287ff0ae23 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Sun, 15 Jan 2012 15:56:45 +0100 Subject: [PATCH 03/30] Adapt calednar styles for new skin Larry --- plugins/calendar/calendar.php | 5 +- plugins/calendar/calendar_ui.js | 8 +- plugins/calendar/localization/de_CH.inc | 7 +- plugins/calendar/localization/de_DE.inc | 7 +- plugins/calendar/localization/en_US.inc | 7 +- plugins/calendar/skins/larry/.htaccess | 5 + plugins/calendar/skins/larry/calendar.css | 1240 +++++++++++++++++ .../skins/larry/templates/attachment.html | 36 + .../skins/larry/templates/calendar.html | 202 +++ .../skins/larry/templates/eventedit.html | 100 ++ .../skins/larry/templates/freebusylegend.html | 7 + .../skins/larry/templates/itipattend.html | 36 + .../skins/larry/templates/kolabacl.html | 12 + .../skins/larry/templates/kolabform.html | 6 + .../calendar/skins/larry/templates/print.html | 28 + 15 files changed, 1694 insertions(+), 12 deletions(-) create mode 100644 plugins/calendar/skins/larry/.htaccess create mode 100644 plugins/calendar/skins/larry/calendar.css create mode 100644 plugins/calendar/skins/larry/templates/attachment.html create mode 100644 plugins/calendar/skins/larry/templates/calendar.html create mode 100644 plugins/calendar/skins/larry/templates/eventedit.html create mode 100644 plugins/calendar/skins/larry/templates/freebusylegend.html create mode 100644 plugins/calendar/skins/larry/templates/itipattend.html create mode 100644 plugins/calendar/skins/larry/templates/kolabacl.html create mode 100644 plugins/calendar/skins/larry/templates/kolabform.html create mode 100644 plugins/calendar/skins/larry/templates/print.html diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index 56247e6c..4a1ee3df 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -177,8 +177,9 @@ class calendar extends rcube_plugin 'command' => 'calendar-create-from-mail', 'label' => 'calendar.createfrommail', 'type' => 'link', - 'classact' => 'calendarlink active', - 'class' => 'calendarlink', + 'classact' => 'icon calendarlink active', + 'class' => 'icon calendarlink', + 'innerclass' => 'icon calendar', ))), 'messagemenu'); } diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js index cd1a5d95..5fc5a206 100644 --- a/plugins/calendar/calendar_ui.js +++ b/plugins/calendar/calendar_ui.js @@ -6,7 +6,7 @@ * @author Thomas Bruederli * * Copyright (C) 2010, Lazlo Westerhof - * Copyright (C) 2011, Kolab Systems AG + * Copyright (C) 2012, Kolab Systems AG * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -2146,7 +2146,7 @@ function rcube_calendar_ui(settings) this.dialog_resize = function(id, height, width) { var win = $(window), w = win.width(), h = win.height(); - $(id).dialog('option', { height: Math.min(h-20, height+110), width: Math.min(w-20, width+50) }) + $(id).dialog('option', { height: Math.min(h-20, height+130), width: Math.min(w-20, width+50) }) .dialog('option', 'position', ['center', 'center']); // only works in a separate call (!?) }; @@ -2154,7 +2154,7 @@ function rcube_calendar_ui(settings) this.view_resize = function() { var footer = fc.fullCalendar('getView').name == 'table' ? $('#agendaoptions').height() + 2 : 0; - fc.fullCalendar('option', 'height', $('#main').height() - footer); + fc.fullCalendar('option', 'height', $('#calendar').height() - footer); }; @@ -2236,7 +2236,7 @@ function rcube_calendar_ui(settings) month: viewdate.getMonth(), year: viewdate.getFullYear(), ignoreTimezone: true, // will treat the given date strings as in local (browser's) timezone - height: $('#main').height(), + height: $('#calendar').height(), eventSources: event_sources, monthNames : settings['months'], monthNamesShort : settings['months_short'], diff --git a/plugins/calendar/localization/de_CH.inc b/plugins/calendar/localization/de_CH.inc index 266b37bf..aceeccb1 100644 --- a/plugins/calendar/localization/de_CH.inc +++ b/plugins/calendar/localization/de_CH.inc @@ -31,6 +31,7 @@ $labels['day'] = 'Tag'; $labels['week'] = 'Woche'; $labels['month'] = 'Monat'; $labels['agenda'] = 'Agenda'; +$labels['new'] = 'Neu'; $labels['new_event'] = 'Neuer Termin'; $labels['edit_event'] = 'Termin bearbeiten'; $labels['edit'] = 'Bearbeiten'; @@ -38,11 +39,13 @@ $labels['save'] = 'Speichern'; $labels['remove'] = 'Entfernen'; $labels['cancel'] = 'Abbrechen'; $labels['select'] = 'Auswählen'; -$labels['print'] = 'Kalender drucken'; +$labels['print'] = 'Drucken'; +$labels['printtitle'] = 'Kalender drucken'; $labels['title'] = 'Titel'; $labels['description'] = 'Beschrieb'; $labels['all-day'] = 'ganztägig'; -$labels['export'] = 'Exportieren...'; +$labels['export'] = 'Exportieren'; +$labels['exporttitle'] = 'Kalender als iCalendar exportieren'; $labels['location'] = 'Ort'; $labels['date'] = 'Datum'; $labels['start'] = 'Beginn'; diff --git a/plugins/calendar/localization/de_DE.inc b/plugins/calendar/localization/de_DE.inc index 91b7ef5b..a3e6510b 100644 --- a/plugins/calendar/localization/de_DE.inc +++ b/plugins/calendar/localization/de_DE.inc @@ -31,6 +31,7 @@ $labels['day'] = 'Tag'; $labels['week'] = 'Woche'; $labels['month'] = 'Monat'; $labels['agenda'] = 'Agenda'; +$labels['new'] = 'Neu'; $labels['new_event'] = 'Neuer Termin'; $labels['edit_event'] = 'Termin bearbeiten'; $labels['edit'] = 'Bearbeiten'; @@ -38,11 +39,13 @@ $labels['save'] = 'Speichern'; $labels['remove'] = 'Entfernen'; $labels['cancel'] = 'Abbrechen'; $labels['select'] = 'Auswählen'; -$labels['print'] = 'Kalender drucken'; +$labels['print'] = 'Drucken'; +$labels['printtitle'] = 'Kalender drucken'; $labels['title'] = 'Titel'; $labels['description'] = 'Beschrieb'; $labels['all-day'] = 'ganztägig'; -$labels['export'] = 'Exportieren...'; +$labels['export'] = 'Exportieren'; +$labels['exporttitle'] = 'Kalender als iCalendar exportieren'; $labels['location'] = 'Ort'; $labels['date'] = 'Datum'; $labels['start'] = 'Beginn'; diff --git a/plugins/calendar/localization/en_US.inc b/plugins/calendar/localization/en_US.inc index 664eecfb..a5e48d5e 100644 --- a/plugins/calendar/localization/en_US.inc +++ b/plugins/calendar/localization/en_US.inc @@ -31,6 +31,7 @@ $labels['day'] = 'Day'; $labels['week'] = 'Week'; $labels['month'] = 'Month'; $labels['agenda'] = 'Agenda'; +$labels['new'] = 'New'; $labels['new_event'] = 'New event'; $labels['edit_event'] = 'Edit event'; $labels['edit'] = 'Edit'; @@ -38,11 +39,13 @@ $labels['save'] = 'Save'; $labels['remove'] = 'Remove'; $labels['cancel'] = 'Cancel'; $labels['select'] = 'Select'; -$labels['print'] = 'Print calendars'; +$labels['print'] = 'Print'; +$labels['printtitle'] = 'Print calendars'; $labels['title'] = 'Summary'; $labels['description'] = 'Description'; $labels['all-day'] = 'all-day'; -$labels['export'] = 'Export to iCalendar'; +$labels['export'] = 'Export'; +$labels['exporttitle'] = 'Export to iCalendar'; $labels['location'] = 'Location'; $labels['date'] = 'Date'; $labels['start'] = 'Start'; diff --git a/plugins/calendar/skins/larry/.htaccess b/plugins/calendar/skins/larry/.htaccess new file mode 100644 index 00000000..d9731059 --- /dev/null +++ b/plugins/calendar/skins/larry/.htaccess @@ -0,0 +1,5 @@ +# get all unknown files from default skin folder +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule (.*) ../default/$1 [qsappend,last] diff --git a/plugins/calendar/skins/larry/calendar.css b/plugins/calendar/skins/larry/calendar.css new file mode 100644 index 00000000..292bba17 --- /dev/null +++ b/plugins/calendar/skins/larry/calendar.css @@ -0,0 +1,1240 @@ +/** + * Roundcube Calendar plugin styles for skin "Larry" + * + * Copyright (c) 2012, The Roundcube Dev Team + * Screendesign by FLINT / Büro für Gestaltung, bueroflint.com + * + * The contents are subject to the Creative Commons Attribution-ShareAlike + * License. It is allowed to copy, distribute, transmit and to adapt the work + * by keeping credits to the original autors in the README file. + * See http://creativecommons.org/licenses/by-sa/3.0/ for details. + * + * $Id$ + */ + +body.calendarmain { + overflow: hidden; +} + +#mainscreen { + left: 0; +} + +#sidebar { + position: absolute; + top: 0; + left: 10px; + bottom: 0; + width: 240px; +} + +#datepicker { + margin-top: 12px; + width: 100%; +} + +#datepicker .ui-datepicker { + width: 100% !important; + box-shadow: none; + -moz-box-shadow: none; + -webkit-box-shadow: none; +} + +.ui-datepicker td a { + padding: 5px 4px; + font-size: 12px; +} + +#datepicker td.ui-datepicker-activerange { + border-color: #69a2b6; +} + +#datepicker .ui-datepicker-activerange a { + color: #185d7a; + background: #d9f1fb; + background: -moz-linear-gradient(top, #d9f1fb 0%, #c5e3ee 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#d9f1fb), color-stop(100%,#c5e3ee)); + background: -o-linear-gradient(top, #d9f1fb 0%, #c5e3ee 100%); + background: -ms-linear-gradient(top, #d9f1fb 0%, #c5e3ee 100%); + background: linear-gradient(top, #d9f1fb 0%, #c5e3ee 100%); +} + +#datepicker .ui-datepicker-activerange a.ui-state-active { + color: #fff; + background: #00acd4; + background: -moz-linear-gradient(top, #00acd4 0%, #008fc7 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00acd4), color-stop(100%,#008fc7)); + background: -o-linear-gradient(top, #00acd4 0%, #008fc7 100%); + background: -ms-linear-gradient(top, #00acd4 0%, #008fc7 100%); + background: linear-gradient(top, #00acd4 0%, #008fc7 100%); +} + +#datepicker td.ui-datepicker-week-col { + cursor: pointer; +} + +#datepicker .ui-datepicker-title { + margin: 2px 2.3em 3px 2.3em; +} + +#datepicker .ui-datepicker .ui-datepicker-prev, +#datepicker .ui-datepicker .ui-datepicker-next { + top: 4px; +} + +#sidebartoggle { + position: absolute; + left: 254px; + width: 8px; + top: 37px; + bottom: 0; + background: url(images/toggle.gif) 0 48% no-repeat transparent; + cursor: pointer; +} + +div.sidebarclosed { + background-position: -8px 48% !important; +} + +#sidebartoggle:hover { + background-color: #ddd; +} + +#calendar { + position: absolute; + top: 0; + left: 266px; + right: 0; + bottom: 0; + padding-bottom: 28px; +} + +#print { + width: 680px; +} + +pre { + font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; +} + +#calendars { + position: absolute; + top: 276px; + left: 0; + bottom: 0; + right: 0; +} + +#attachmentlist li, +#calendarslist li { + margin: 0; + height: 20px; + padding: 6px 8px 2px; + display: block; + position: relative; + white-space: nowrap; +} + +#calendarslist li label { + display: block; +} + +#calendarslist li span { + cursor: default; + background: url(images/calendars.png) 0 -2px no-repeat; + padding-left: 22px; +} + +#calendarslist li input { + position: absolute; + top: 3px; + right: 5px; +} + +#calendarslist li.selected { + background-color: #c7e3ef; + color: inherit; +} + +#calendarslist li.selected span { + font-weight: bold; +} + +#calendarslist li.readonly span { + background-position: 0 -20px; +} + +#calendarslist li.other span { + background-position: 0 -38px; +} + +#calendarslist li.other.readonly span { + background-position: 0 -56px; +} + +#calendarslist li.shared span { + background-position: 0 -74px; +} + +#calendarslist li.shared.readonly span { + background-position: 0 -92px; +} + +#calfeedurl { + width: 98%; + background: #fbfbfb; + padding: 4px; + margin-bottom: 1em; + resize: none; +} + +#agendalist { + width: 100%; + margin: 0 auto; + margin-top: 60px; + border: 1px solid #C1DAD7; + display: none; +} + +#agendalist table { + width: 100%; +} + +#agendalist td, +#agendalist th { + border-right: 1px solid #C1DAD7; + border-bottom: 1px solid #C1DAD7; + background: #fff; + padding: 6px 6px 6px 12px; +} + +#agendalist tr { + vertical-align: top; +} + +#agendalist th { + font-weight: bold; +} + +#calendartoolbar { + position: absolute; + top: -6px; + right: 0; + height: 40px; + z-index: 200; +} + +#calendartoolbar a { + padding-right: 10px; +} + +#quicksearchbar { + right: 4px; +} + +div.uidialog { + display: none; +} + +#user { + position: absolute; + top: 10px; + right: 100px; + left: 100px; + text-align: center; +} + +a.morelink { + font-size: 90%; + color: #C33; + text-decoration: none; +} + +a.morelink:hover { + text-decoration: underline; +} + +a.miniColors-trigger { + margin-top: -3px; +} + +#attachmentcontainer { + position: absolute; + top: 80px; + left: 20px; + right: 20px; + bottom: 20px; +} + +#attachmentframe { + width: 100%; + height: 100%; + border: 1px solid #999999; + background-color: #F9F9F9; +} + +#partheader { + position: absolute; + top: 20px; + left: 220px; + right: 20px; + height: 40px; +} + +#partheader table td { + padding-left: 2px; + padding-right: 4px; + vertical-align: middle; + font-size: 11px; +} + +#partheader table td.title { + color: #666; + font-weight: bold; +} + +.attachments-list ul { + margin: 0px; + padding: 0px; + list-style-image: none; + list-style-type: none; +} + +.attachments-list ul li { + height: 18px; + font-size: 12px; + padding-top: 2px; + padding-right: 8px; + white-space: nowrap; +} + +.attachments-list ul li img { + padding-right: 2px; + vertical-align: middle; +} + +.attachments-list ul li a { + text-decoration: none; +} + +.attachments-list ul li a:hover { + text-decoration: underline; +} + +#attachmentlist { + margin: 0 -0.8em; +} + +#attachmentlist li { + padding: 2px 2px 3px 0.8em; +} + +#eventshow .attachments-list ul li { + float: left; +} + +#edit-attachments-form { + padding-top: 1.2em; +} + +#edit-attachments-form .buttons { + margin: 0.5em 0; +} + +#event-attendees span.attendee { + padding-right: 18px; + margin-right: 0.5em; + background: url(images/attendee-status.gif) right 0 no-repeat; +} + +#event-attendees span.attendee a.mailtolink { + text-decoration: none; + white-space: nowrap; +} + +#event-attendees span.attendee a.mailtolink:hover { + text-decoration: underline; +} + +#event-attendees span.accepted { + background-position: right -20px; +} + +#event-attendees span.declined { + background-position: right -40px; +} + +#event-attendees span.tentative { + background-position: right -60px; +} + +#event-attendees span.organizer { + background-position: right -80px; +} + +/* jQuery UI overrides */ + +#eventshow h1 { + font-size: 18px; + margin: -0.3em 0 0.4em 0; +} + +#eventshow label, +#eventshow h5.label { + font-weight: normal; + font-size: 1em; + color: #999; + margin: 0 0 0.2em 0; +} + +#eventshow { + margin: 0 -0.2em; +} + +#eventshow.sensitivity-private { + background: url(images/badge_private.png) top right no-repeat; +} + +#eventshow.sensitivity-confidential { + background: url(images/badge_confidential.png) top right no-repeat; +} + +.sensitivity-private #event-title { + margin-right: 50px; +} + +.sensitivity-confidential #event-title { + margin-right: 60px; +} + +#eventshow div.event-line { + margin-top: 0.1em; + margin-bottom: 0.3em; +} + +#eventedit { + position: relative; + top: -1.5em; + padding: 0.5em 0.1em; + margin: 0 -0.2em; +} + +#eventedit input.text, +#eventedit textarea { + width: 97%; +} + +#eventtabs { + position: relative; + padding: 0; + border: 0; + border-radius: 0; +} + +div.form-section, +#eventshow div.event-section, +#eventtabs div.event-section { + margin-top: 0.2em; + margin-bottom: 0.8em; +} + +#eventtabs .border-after { + padding-bottom: 0.8em; + margin-bottom: 0.8em; + border-bottom: 2px solid #fafafa; +} + +#eventshow label, +#eventedit label, +.form-section label { + display: inline-block; + min-width: 7em; + padding-right: 0.5em; +} + +#eventedit .formtable td.label { + min-width: 6em; +} + +td.topalign { + vertical-align: top; +} + +#eventedit label.weekday, +#eventedit label.monthday { + min-width: 3em; +} + +#eventedit label.month { + min-width: 5em; +} + +#edit-recurrence-yearly-bymonthblock { + margin-left: 7.5em; +} + +#eventedit .recurrence-form { + display: none; +} + +#eventedit .formtable td { + padding: 0.2em 0; +} + +.ui-dialog .event-update-confirm { + padding: 0 0.5em 0.5em 0.5em; +} + +.event-dialog-message, +.event-update-confirm .message { + margin-top: 0.5em; + padding: 0.8em; + background-color: #F7FDCB; + border: 1px solid #C2D071; +} + +.event-dialog-message .message, +.event-update-confirm .message { + margin-bottom: 0.5em; +} + +.edit-recurring-warning .savemode { + padding-left: 20px; +} + +.event-update-confirm .savemode { + padding-left: 30px; +} + +.event-dialog-message span.ui-icon, +.event-update-confirm span.ui-icon { + float: left; + margin: 0 7px 20px 0; +} + +.event-dialog-message label, +.event-update-confirm label { + min-width: 3em; + padding-right: 1em; +} + +.event-update-confirm a.button { + margin: 0 0.5em 0 0.2em; + min-width: 5em; +} + +#event-rsvp, +#edit-attendees-notify { + margin: 0.3em 0; + padding: 0.5em; + background-color: #F7FDCB; + border: 1px solid #C2D071; +} + +#edit-attendees-table { + width: 100%; + margin-top: 0.5em; +} + +#edit-attendees-table td.role { + width: 9em; +} + +#edit-attendees-table td.availability, +#edit-attendees-table td.confirmstate { + width: 4em; +} + +#edit-attendees-table td.options { + width: 3em; + text-align: right; + padding-right: 4px; +} + +#edit-attendees-table td.name { + width: auto; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +#edit-attendees-form { + position: relative; + margin-top: 1em; +} + +#edit-attendees-form #edit-attendee-schedule { + position: absolute; + top: 0; + right: 0; +} + +#edit-attendees-table select.edit-attendee-role { + border: 0; + padding: 2px; + background: white; +} + +.availability img.availabilityicon { + margin: 1px; + width: 14px; + height: 14px; + border-radius: 4px; + -moz-border-radius: 4px; +} + +.availability img.availabilityicon.loading { + background: url(images/loading_blue.gif) center no-repeat; +} + +#schedule-freebusy-times td.unknown, +.availability img.availabilityicon.unknown { + background: #ddd; +} + +#schedule-freebusy-times td.free, +.availability img.availabilityicon.free { + background: #0c0; +} + +#schedule-freebusy-times td.busy, +.availability img.availabilityicon.busy { + background: #c00; +} + +#schedule-freebusy-times td.tentative, +.availability img.availabilityicon.tentative { + background: #66d; +} + +#schedule-freebusy-times td.out-of-office, +.availability img.availabilityicon.out-of-office { + background: #f0b400; +} + +#schedule-freebusy-times td.all-busy, +#schedule-freebusy-times td.all-tentative, +#schedule-freebusy-times td.all-out-of-office { + background-image: url(images/freebusy-colors.png); + background-position: top right; + background-repeat: no-repeat; +} + +#schedule-freebusy-times td.all-tentative { + background-position: right -40px; +} + +#schedule-freebusy-times td.all-out-of-office { + background-position: right -80px; +} + +#edit-attendees-legend { + margin-top: 3em; + margin-bottom: 0.5em; +} + +#edit-attendees-legend .legend { + margin-right: 2em; + white-space: nowrap; +} + +#edit-attendees-legend img.availabilityicon { + vertical-align: middle; +} + +#edit-attendees-table tbody td.confirmstate { + overflow: hidden; + white-space: nowrap; + text-indent: -2000%; +} + +#edit-attendees-table td.confirmstate span { + display: block; + width: 20px; + background: url(images/attendee-status.gif) 5px 0 no-repeat; +} + +#edit-attendees-table td.confirmstate span.needs-action { +} + +#edit-attendees-table td.confirmstate span.accepted { + background-position: 5px -20px; +} + +#edit-attendees-table td.confirmstate span.declined { + background-position: 5px -40px; +} + +#edit-attendees-table td.confirmstate span.tentative { + background-position: 5px -60px; +} + +#attendees-freebusy-table { + width: 100%; + table-layout: fixed; + border-collapse: collapse; + margin: 0.5em 0; +} + +#attendees-freebusy-table td.attendees { + width: 18em; + border: 1px solid #ccc; + vertical-align: top; + overflow: hidden; +} + +#attendees-freebusy-table td.times { + width: auto; + vertical-align: top; + border: 1px solid #ccc; +} + +#attendees-freebusy-table div.scroll { + position: relative; + overflow: auto; +} + +#attendees-freebusy-table h3.boxtitle { + margin: 0; + height: auto !important; + border-color: #ccc; +} + +.attendees-list .attendee { + padding: 3px 4px 3px 1px; + background: url(images/attendee-status.gif) 2px -97px no-repeat; + white-space: nowrap; +} + +.attendees-list a.attendee-role-toggle { + display: inline-block; + width: 16px; + margin-right: 3px; + cursor: pointer; +} + +.attendees-list div.attendee { + border-top: 1px solid #ccc; +} + +.attendees-list span.attendee { + padding-left: 20px; + margin-right: 2em; +} + +.attendees-list .organizer { + background-position: 3px -77px; +} + +.attendees-list .opt-participant { + background-position: 2px -117px; +} + +.attendees-list .chair { + background-position: 2px -137px; +} + +.attendees-list .loading { + background: url(images/loading_blue.gif) 1px 50% no-repeat; +} + +.attendees-list .total { + background: none; + padding-left: 4px; + font-weight: bold; +} + +.attendees-list .spacer, +#schedule-freebusy-times tr.spacer td { + background: 0; + font-size: 50%; +} + +#schedule-freebusy-times { + border-collapse: collapse; + width: 100%; +} + +#schedule-freebusy-times td { + padding: 3px; + border: 1px solid #ccc; +} + +#schedule-freebusy-times tr.dates th { + border-color: #aaa; + border-style: solid; + border-width: 0 1px 0 1px; + white-space: nowrap; +} + +#attendees-freebusy-table div.timesheader, +#schedule-freebusy-times tr.times td { + min-width: 30px; + font-size: 9px; + padding: 5px 2px 6px 2px; + text-align: center; +} + +#schedule-freebusy-times tr.times td.allday { + min-width: 60px; +} + +#schedule-freebusy-times tr.times td { + cursor: pointer; +} + +#schedule-event-time { + position: absolute; + border: 2px solid #333; + background: #777; + background: rgba(60, 60, 60, 0.6); + opacity: 0.5; + border-radius: 4px; + cursor: move; + filter: alpha(opacity=40); /* IE8 */ +} + +#eventfreebusy .schedule-options { + position: relative; + margin-bottom: 1.5em; +} + +#eventfreebusy .schedule-buttons { + position: absolute; + top: 0; + right: 0; +} + +#eventfreebusy .schedule-find-buttons { + padding-bottom:0.5em; +} + +#eventfreebusy .schedule-find-buttons button { + min-width: 9em; + text-align: center; +} + +span.edit-alarm-set { + white-space: nowrap; +} + +a.dropdown-link { + color: #CC0000; + font-size: 12px; + text-decoration: none; +} + +a.dropdown-link:after { + content: ' ▼'; + font-size: 11px; + color: #666; +} + +#eventedit .ui-tabs-panel { + min-height: 20em; +} + +.alarm-item { + margin: 0.4em 0 1em 0; +} + +.alarm-item .event-title { + font-size: 14px; + margin: 0.1em 0 0.3em 0; +} + +.alarm-item div.event-section { + margin-top: 0.1em; + margin-bottom: 0.3em; +} + +.alarm-item .alarm-actions { + margin-top: 0.4em; +} + +.alarm-item div.alarm-actions a { + color: #CC0000; + margin-right: 0.8em; + text-decoration: none; +} + +a.alarm-action-snooze:after { + content: ' ▼'; + font-size: 10px; + color: #666; +} + +#alarm-snooze-dropdown { + z-index: 5000; +} + +.ui-dialog-buttonset a.dropdown-link { + margin-right: 1em; +} +/* +.ui-datepicker-calendar .ui-datepicker-today .ui-state-default { + border-color: #cccccc; + background: #ffffcc; + color: #000; +} +*/ +.ui-datepicker-calendar .ui-datepicker-week-col { + border: 0; + color: #999; + font-size: 90%; + text-align: right; + padding-right: 6px; +} +/* +.ui-datepicker th { + padding: 0.3em 0; + font-size: 10px; +} + +.ui-datepicker td span, +.ui-datepicker td a { + padding-left: 0.1em; +} +*/ +.ui-autocomplete { + max-height: 160px; + overflow-y: auto; + overflow-x: hidden; +} + +.ui-autocomplete .ui-menu-item { + white-space: nowrap; +} + +* html .ui-autocomplete { + height: 160px; +} + +span.spacer { + padding-left: 3em; +} + +#agendaoptions { + position: absolute; + top: 37; + left: 0; + right: 0; + height: auto; + z-index: 200; + border: 1px solid #ccc; + padding: 2px 5px 1px; + font-size: 90%; +} + +#agendaoptions label { + color: #444; + text-shadow: 1px 1px #eee; + padding-right: 0.5em; +} + +#calendar-kolabform { + position: relative; + padding-top: 24px; + margin: 0 -8px; + min-width: 660px; + min-height: 400px; +} + +#calendar-kolabform div.tabsbar { + top: 0; + right: 2px; + left: 2px; + height: 24px; +} + +#calendar-kolabform fieldset.tabbed { + background-color: #fff; + margin-top: 0; +} + +#calendar-kolabform span.tablink { + background-color: #e8e8e9; + background-image: -moz-linear-gradient(center top, #f4f4f4, #e6e6e6); + background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #f4f4f4), color-stop(1.0, #e6e6e6)); + filter: progid:DXImageTransform.Microsoft.gradient(enabled='true', startColorstr=#f4f4f4, endColorstr=#e6e6e6, GradientType=0); + height: 24px !important; +} + +#calendar-kolabform span.tablink-selected { + background: #fff; + height: 25px !important; +} + +#calendar-kolabform span.tablink a, +#calendar-kolabform span.tablink-selected a { + background: none; + border: 1px solid #AAAAAA; + border-top-left-radius: 2px; + border-top-right-radius: 2px; + padding: 4px 10px 0 10px; + margin-left: 0; +} + +#calendar-kolabform table td.title { + font-weight: bold; + white-space: nowrap; + color: #666; + padding-right: 10px; +} + + +/* fullcalendar style overrides */ + +.rcube-fc-content { + position: absolute !important; + top: 37px; + left: 0; + right: 0; + bottom: 28px; + overflow: hidden; + border: 0; + border-radius: 4px 4px 0 0; + box-shadow: 0 0 2px #999; + -o-box-shadow: 0 0 2px #999; + -webkit-box-shadow: 0 0 2px #999; + -moz-box-shadow: 0 0 2px #999; + background: #fff; +} + +#calendar .fc-header-right { + padding-right: 280px; +} + +.fc-event { + font-size: 1em !important; +} + +.fc-event-title { + font-weight: bold; +} + +.fc-event-hori .fc-event-title { + font-weight: normal; + white-space: nowrap; +} + +.fc-event-hori .fc-event-time { + white-space: nowrap; + font-weight: normal !important; + font-size: 10px; + padding-right: 0.6em; +} + +.fc-grid .fc-event-time { + font-weight: normal !important; + padding-right: 0.3em; +} + +.fc-event-cateories { + font-style:italic; +} + +div.fc-event-location { + font-size: 90%; +} + +.fc-more-link { + color: #999; + padding-top: 1px; + cursor: pointer; +} + +.fc-agenda-slots td div { + height: 22px; +} + +.fc-sat, .fc-sun { + background-color: #fdfdfd; +} + +.fc-widget-header { + background-color: #d6eaf3; + color: #004458; + text-shadow: 0px 1px 1px #fff; +} + +.fc-view thead th.fc-widget-header { + padding: 8px 0; + color: #69939e; +} + +.fc-day-number { + color: #578da5; +} + +.fc-icon-alarms, +.fc-icon-sensitive, +.fc-icon-recurring { + display: inline-block; + width: 11px; + height: 11px; + background: url(images/eventicons.gif) 0 0 no-repeat; + margin-left: 3px; + line-height: 10px; +} + +.fc-icon-alarms { + background-position: 0 -13px; +} + +.fc-icon-sensitive { + background-position: 0 -25px; +} + +.fc-list-section .fc-event { + cursor: pointer; +} +/* +.fc-view-list div.fc-list-header, +.fc-view-table td.fc-list-header, +#edit-attendees-table thead td { + padding: 3px; + background: #dddddd; + background-image: -moz-linear-gradient(center top, #f4f4f4, #d2d2d2); + background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.00, #f4f4f4), color-stop(1.00, #d2d2d2)); + filter: progid:DXImageTransform.Microsoft.gradient(enabled='true', startColorstr=#f4f4f4, endColorstr=#d2d2d2, GradientType=0); + font-weight: bold; + color: #333; +} +*/ +.fc-view-list .fc-event-skin .fc-event-content { + background: #F6F6F6; + padding: 2px; +} + +.fc-view-list .fc-event-skin .fc-event-title, +.fc-view-list .fc-event-skin .fc-event-location { + color: #333; +} + +.fc-view-table col.fc-event-location { + width: 20%; +} + +.fc-listappend { + text-align: center; + margin: 1em 0; +} + +.fc-listappend .message { + padding: 0.5em; + margin-bottom: 0.5em; + font-size: 150%; + color: #999; +} + +.fc-listappend .formlinks a { + font-size: 12px; + padding: 0 0.3em; +} + +.fc-event-temp { + opacity: 0.4; + filter: alpha(opacity=40); /* IE8 */ +} + +/* Settings section */ + +fieldset #calendarcategories div { + margin-bottom: 0.3em; +} + +/* Invitation UI in mail */ + +#messagemenu li a.calendarlink span.calendar { +/* background-position: 7px -109px; */ +} + +div.calendar-invitebox { + min-height: 20px; + margin: 5px 8px; + padding: 3px 6px 6px 34px; + border: 1px solid #C2D071; + background: url(images/calendar.png) 6px 5px no-repeat #F7FDCB; +} + +div.calendar-invitebox td.ititle { + font-weight: bold; + padding-right: 0.5em; +} + +div.calendar-invitebox td.label { + color: #666; + padding-right: 1em; +} + +#event-rsvp .rsvp-buttons, +div.calendar-invitebox .rsvp-status, +div.calendar-invitebox .rsvp-buttons { + margin-top: 0.5em; +} + +#event-rsvp input.button, +div.calendar-invitebox input.button, +div.calendar-invitebox select { + font-size: 11px; + margin-right: 0.5em; +} + +div.calendar-invitebox .calendar-select { + font-size: 11px; + margin-left: 1em; +} + +div.calendar-invitebox .rsvp-status.loading { + color: #666; + padding: 1px 0 2px 24px; + background: url(images/loading_blue.gif) top left no-repeat; +} + +div.calendar-invitebox .rsvp-status.declined, +div.calendar-invitebox .rsvp-status.tentative, +div.calendar-invitebox .rsvp-status.accepted { + padding: 0 0 1px 22px; + background: url(images/attendee-status.gif) 2px -20px no-repeat; +} + +div.calendar-invitebox .rsvp-status.declined { + background-position: 2px -40px; +} + +div.calendar-invitebox .rsvp-status.tentative { + background-position: 2px -60px; +} + +/* iTIP attend reply page */ + +.calendaritipattend .centerbox { + width: 40em; + margin: 80px auto; + padding: 10px 10px 10px 90px; + border: 1px solid #ccc; + box-shadow: 1px 1px 24px #ccc; + -moz-box-shadow: 1px 1px 18px #ccc; + -webkit-box-shadow: #ccc 1px 1px 18px; + background: url(images/invitation.png) 10px 10px no-repeat #fbfbfb; +} + +.calendaritipattend .calendar-invitebox { + background: none; + padding-left: 0; + border: 0; + margin: 0 0 2em 0; +} + +.calendaritipattend .calendar-invitebox .rsvp-status { + margin-top: 2.5em; + font-size: 110%; + font-weight: bold; +} + +.calendaritipattend .calendar-invitebox td.title, +.calendaritipattend .calendar-invitebox td.ititle { + font-size: 120%; +} + diff --git a/plugins/calendar/skins/larry/templates/attachment.html b/plugins/calendar/skins/larry/templates/attachment.html new file mode 100644 index 00000000..439afd40 --- /dev/null +++ b/plugins/calendar/skins/larry/templates/attachment.html @@ -0,0 +1,36 @@ + + + +<roundcube:object name="pagetitle" /> + + + + + + +
    +
    + +
    + +
    + +
    + +
    + + + + diff --git a/plugins/calendar/skins/larry/templates/calendar.html b/plugins/calendar/skins/larry/templates/calendar.html new file mode 100644 index 00000000..ec41f7cb --- /dev/null +++ b/plugins/calendar/skins/larry/templates/calendar.html @@ -0,0 +1,202 @@ + + + +<roundcube:object name="pagetitle" /> + + + + + + + +
    + +
    + +
    + + + + +
    + +
    + + +
    +
    + +
    +
      +
    • +
    • +
    • +
    • + +
    • + +
    +
    + +
    +

    Event Title

    +
    Location
    +
    From-To
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + + Default +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + +
    +
    + +
    + + + +
    + + +
    +   +
    + +
    +
    + +
    +
    + +   + +
    +
    + +   + +
    +
    +
    +
    + + +
    +
    + +
    +
    +
    + + +
    + + + + +
    +
    + +
    + +
    + +
    + +
    + +
    +

    + +
    + +
    + +
    + + + + + + + diff --git a/plugins/calendar/skins/larry/templates/eventedit.html b/plugins/calendar/skins/larry/templates/eventedit.html new file mode 100644 index 00000000..07afc179 --- /dev/null +++ b/plugins/calendar/skins/larry/templates/eventedit.html @@ -0,0 +1,100 @@ +
    +
    +
      +
    • +
    + +
    +
    + +
    + +
    +
    + +
    + +
    +
    + +
    + +
    +
    + + +   + +
    +
    + +   + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    + + + +
    + +
    +
    + +
    +
    + +
    +
    +
    + +
    \ No newline at end of file diff --git a/plugins/calendar/skins/larry/templates/freebusylegend.html b/plugins/calendar/skins/larry/templates/freebusylegend.html new file mode 100644 index 00000000..51e5ddc4 --- /dev/null +++ b/plugins/calendar/skins/larry/templates/freebusylegend.html @@ -0,0 +1,7 @@ +
    + + + + + +
    diff --git a/plugins/calendar/skins/larry/templates/itipattend.html b/plugins/calendar/skins/larry/templates/itipattend.html new file mode 100644 index 00000000..e1c7cc7e --- /dev/null +++ b/plugins/calendar/skins/larry/templates/itipattend.html @@ -0,0 +1,36 @@ + + + +<roundcube:object name="pagetitle" /> + + + + + + +
    + +
    + + + + +
    + + +
    + + + \ No newline at end of file diff --git a/plugins/calendar/skins/larry/templates/kolabacl.html b/plugins/calendar/skins/larry/templates/kolabacl.html new file mode 100644 index 00000000..f32a92fc --- /dev/null +++ b/plugins/calendar/skins/larry/templates/kolabacl.html @@ -0,0 +1,12 @@ + + + +<roundcube:object name="pagetitle" /> + + + + + + + + diff --git a/plugins/calendar/skins/larry/templates/kolabform.html b/plugins/calendar/skins/larry/templates/kolabform.html new file mode 100644 index 00000000..03b023fc --- /dev/null +++ b/plugins/calendar/skins/larry/templates/kolabform.html @@ -0,0 +1,6 @@ +
    + +
    + \ No newline at end of file diff --git a/plugins/calendar/skins/larry/templates/print.html b/plugins/calendar/skins/larry/templates/print.html new file mode 100644 index 00000000..1c31ca29 --- /dev/null +++ b/plugins/calendar/skins/larry/templates/print.html @@ -0,0 +1,28 @@ + + + +<roundcube:object name="pagetitle" /> + + + +
    +
    + + + +
    +
    + + + +
    + +
    + +
    + + + + + + \ No newline at end of file From 0dc99c74d79be16fa15670ce4d029496de7c8918 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Sun, 15 Jan 2012 18:48:13 +0100 Subject: [PATCH 04/30] More Larry styling --- plugins/calendar/lib/calendar_ui.php | 5 ++- plugins/calendar/skins/default/calendar.css | 15 ++++---- plugins/calendar/skins/larry/calendar.css | 41 ++++++++++++--------- 3 files changed, 35 insertions(+), 26 deletions(-) diff --git a/plugins/calendar/lib/calendar_ui.php b/plugins/calendar/lib/calendar_ui.php index d009ef2b..35a5c9ce 100644 --- a/plugins/calendar/lib/calendar_ui.php +++ b/plugins/calendar/lib/calendar_ui.php @@ -168,6 +168,7 @@ class calendar_ui $css .= " border-color: #$color;"; $css .= "}\n"; } + $css .= ".$class .handle { background-color: #$color; }"; } return html::tag('style', array('type' => 'text/css'), $css); @@ -203,7 +204,9 @@ class calendar_ui $class .= ' '.$prop['class_name']; $li .= html::tag('li', array('id' => 'rcmlical' . $html_id, 'class' => $class), - html::tag('input', array('type' => 'checkbox', 'name' => '_cal[]', 'value' => $id, 'checked' => $prop['active']), '') . html::span(null, Q($prop['name']))); + html::tag('input', array('type' => 'checkbox', 'name' => '_cal[]', 'value' => $id, 'checked' => $prop['active']), '') . + html::span('handle', ' ') . + html::span('calname', Q($prop['name']))); } $this->rc->output->set_env('calendars', $jsenv); diff --git a/plugins/calendar/skins/default/calendar.css b/plugins/calendar/skins/default/calendar.css index 51984834..23e27507 100644 --- a/plugins/calendar/skins/default/calendar.css +++ b/plugins/calendar/skins/default/calendar.css @@ -123,10 +123,11 @@ pre { display: block; } -#calendarslist li span { +#calendarslist li span.handle { cursor: default; background: url(images/calendars.png) 0 -2px no-repeat; - padding-left: 18px; + display: inline-block; + width: 20px; } #calendarslist li input { @@ -142,23 +143,23 @@ pre { font-weight: bold; } -#calendarslist li.readonly span { +#calendarslist li.readonly span.handle { background-position: 0 -20px; } -#calendarslist li.other span { +#calendarslist li.other span.handle { background-position: 0 -38px; } -#calendarslist li.other.readonly span { +#calendarslist li.other.readonly span.handle { background-position: 0 -56px; } -#calendarslist li.shared span { +#calendarslist li.shared span.handle { background-position: 0 -74px; } -#calendarslist li.shared.readonly span { +#calendarslist li.shared.readonly span.handle { background-position: 0 -92px; } diff --git a/plugins/calendar/skins/larry/calendar.css b/plugins/calendar/skins/larry/calendar.css index 292bba17..455ca910 100644 --- a/plugins/calendar/skins/larry/calendar.css +++ b/plugins/calendar/skins/larry/calendar.css @@ -40,7 +40,7 @@ body.calendarmain { -webkit-box-shadow: none; } -.ui-datepicker td a { +#datepicker .ui-datepicker td a { padding: 5px 4px; font-size: 12px; } @@ -125,7 +125,6 @@ pre { right: 0; } -#attachmentlist li, #calendarslist li { margin: 0; height: 20px; @@ -139,10 +138,25 @@ pre { display: block; } -#calendarslist li span { +#calendarslist li span.calname { cursor: default; background: url(images/calendars.png) 0 -2px no-repeat; padding-left: 22px; + color: #004458; +} + +#calendarslist li span.handle { + display: inline-block; + padding: 0; + border-radius: 7px; + margin-right: 6px; + width: 10px; + height: 10px; + font-size: 0.8em; + border: 1px solid rgba(0, 0, 0, 0.5); + -webkit-box-shadow: inset 0px 0 1px 1px rgba(0, 0, 0, 0.3); + -moz-box-shadow: inset 0px 0 1px 1px rgba(0, 0, 0, 0.3); + box-shadow: inset 0px 0 1px 1px rgba(0, 0, 0, 0.3); } #calendarslist li input { @@ -153,30 +167,29 @@ pre { #calendarslist li.selected { background-color: #c7e3ef; - color: inherit; } -#calendarslist li.selected span { +#calendarslist li.selected span.calname { font-weight: bold; } -#calendarslist li.readonly span { +#calendarslist li.readonly span.calname { background-position: 0 -20px; } -#calendarslist li.other span { +#calendarslist li.other span.calname { background-position: 0 -38px; } -#calendarslist li.other.readonly span { +#calendarslist li.other.readonly span.calname { background-position: 0 -56px; } -#calendarslist li.shared span { +#calendarslist li.shared span.calname { background-position: 0 -74px; } -#calendarslist li.shared.readonly span { +#calendarslist li.shared.readonly span.calname { background-position: 0 -92px; } @@ -321,14 +334,6 @@ a.miniColors-trigger { text-decoration: underline; } -#attachmentlist { - margin: 0 -0.8em; -} - -#attachmentlist li { - padding: 2px 2px 3px 0.8em; -} - #eventshow .attachments-list ul li { float: left; } From 8edb6f87e651f36bf28e5171e1baccd59662325a Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 18 Jan 2012 15:55:16 +0100 Subject: [PATCH 05/30] Add Larry skin to Kolab ZPush configuration utility --- plugins/kolab_zpush/kolab_zpush.php | 4 +- plugins/kolab_zpush/package.xml | 11 +- .../kolab_zpush/skins/larry/alarm-clock.png | Bin 0 -> 841 bytes plugins/kolab_zpush/skins/larry/config.css | 140 ++++++++++++++++++ .../kolab_zpush/skins/larry/deviceactions.png | Bin 0 -> 781 bytes .../kolab_zpush/skins/larry/foldertypes.png | Bin 0 -> 2291 bytes .../kolab_zpush/skins/larry/pointer-left.png | Bin 0 -> 1283 bytes .../kolab_zpush/skins/larry/synchronize.png | Bin 0 -> 836 bytes .../skins/larry/templates/config.html | 71 +++++++++ 9 files changed, 222 insertions(+), 4 deletions(-) create mode 100755 plugins/kolab_zpush/skins/larry/alarm-clock.png create mode 100644 plugins/kolab_zpush/skins/larry/config.css create mode 100644 plugins/kolab_zpush/skins/larry/deviceactions.png create mode 100644 plugins/kolab_zpush/skins/larry/foldertypes.png create mode 100644 plugins/kolab_zpush/skins/larry/pointer-left.png create mode 100755 plugins/kolab_zpush/skins/larry/synchronize.png create mode 100644 plugins/kolab_zpush/skins/larry/templates/config.html diff --git a/plugins/kolab_zpush/kolab_zpush.php b/plugins/kolab_zpush/kolab_zpush.php index c7469f1d..7624cd00 100644 --- a/plugins/kolab_zpush/kolab_zpush.php +++ b/plugins/kolab_zpush/kolab_zpush.php @@ -6,7 +6,7 @@ * @version 0.2 * @author Thomas Bruederli * - * Copyright (C) 2011, Kolab Systems AG + * Copyright (C) 2012, Kolab Systems AG * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -286,7 +286,7 @@ class kolab_zpush extends rcube_plugin } // fetch folder data from server else { - $this->folders = $this->rc->imap->list_unsubscribed(); + $this->folders = $this->rc->imap->list_folders(); foreach ($this->folders as $folder) { $folderdata = $this->rc->imap->get_metadata($folder, array(self::ACTIVESYNC_KEY, self::CTYPE_KEY)); $foldertype = explode('.', $folderdata[$folder][self::CTYPE_KEY]); diff --git a/plugins/kolab_zpush/package.xml b/plugins/kolab_zpush/package.xml index 6313d1e3..250d1a66 100644 --- a/plugins/kolab_zpush/package.xml +++ b/plugins/kolab_zpush/package.xml @@ -4,7 +4,7 @@ http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> kolab_zpush - http://kolabsys.com + http://git.kolab.org/roundcube-plugins-kolab/ Z-Push configuration utility for Kolab accounts @@ -16,7 +16,7 @@ 2011-11-14 - 0.2 + 0.3 stable @@ -38,6 +38,13 @@ + + + + + + + diff --git a/plugins/kolab_zpush/skins/larry/alarm-clock.png b/plugins/kolab_zpush/skins/larry/alarm-clock.png new file mode 100755 index 0000000000000000000000000000000000000000..518bdc1166b8d585f27c33d2066f04a3f9834f9b GIT binary patch literal 841 zcmV-P1GfB$P)q$gGRCwBylFLsMQ543%&P-dTw1pyr zpeWF^lt4uUB1S+G0t-b$!lHykqkjT!T=>`+b>$k_un`CeF@(^N7=sXk3jsqYuM{j$ zpi)2{0j7^>X~%m9A!ywACEq;mIlpu6oI9%CCk%LvDuZKD2Ot~A@*c&|Z+{)Hq%Ski zn2~?QLlN1}Nl|2~)QQipmOCoaFBh66DU5;so&&YyZHQxYpJq#}@JQ5V7uVD^7`562 zY^+W#xrVz-rKtFdI|#}T^KaGHCJ8q4s&@sWqhmN%*vMP#mA5sIElRt*pB{K-M$p&W zgR-*g5YF2Q%%%1G*N+`*Trh$XnPD=gU1OM^_adqK4Xk!Ml65*vPfp@WQ4vgOR##!-7NBc1X0ccxTyuajl;va@Er&ZRRayBrOK9RjD5RLm z?RH~jdmDc%x3CIs=ZksLriHW4sTOnRu*JT-5Q_mUO~^`3RT2*m4^N+|j^c6r*xf~< zF*A1egKBFbAB&uMjs$>+nqd$-1K+8sL3MRC9yB(>U@$1w>-8uuFGqPDJZVjr&ba=;-P?-GNNJABlkV`2vLVE3=^mh`&Xh&P|SGm2FZbrKBh@ zy`Na0oD3~Fjc{Mzrozwy5jt(4f2+NHA;ISpW4{ZW6gjIni6w1ph`zSA19w^fT0zjrvit|kk{QX%%YjLUV>+WdP)B{pEc( z0TUnxT0jXX15JRN77-or9JmM208x7lNCPi{kJBJBpH8Qp`}_O%3x&c$r_+&$M53Wa zqfy&zwndlACBd3!K!;Bva@g!qG#d5b{04;(i^T$t;{^43U51YT>=cmSCeGwT ztm0TK_HcK1_bDL(42(wOce~yG&15pw`Uq5o&gF8q{C@vqjw^TRM2<0vg)*6Ju(q~#c0riqn?9S(;p zI-QOsIf$72?;IaQPN2;m5oo1Sq1M;e=MN7LH6TDpoCbrz+Vb);$FeL%S~L!d7uQH6 zl3}aWqPMoTv}ge%l}gEjTKIjuva-@iBoa)iRFV@SWG!;1yo`8*!B8c_91e#Hq6wu^ zc@mGut02K;vsoFcq9*QQ7^bV$YRRN6@==kx)9H+%9Sbx~UqK5-Wc#qWxjENvx9NO7 zFGq_Qh*eG;GPN}73o^7)@`@j{T{Apqx@8((NHCm$!nQRMuTe%D%FQhs-aNm zHP*i)Hs_@^m<^xckXH_eBd6EvtGM(7t@;U4EZo!t(URG0e&g|Y-Xh0NI^wAbcW8t- z(ZX$D30NH4^b7C-_zW~A8SfW6v`IgD#GCao60;rJjL0(W@d~00000 LNkvXXu0mjfYKUYD literal 0 HcmV?d00001 diff --git a/plugins/kolab_zpush/skins/larry/foldertypes.png b/plugins/kolab_zpush/skins/larry/foldertypes.png new file mode 100644 index 0000000000000000000000000000000000000000..4950296a906a82b571650afd4974eed21fb9dced GIT binary patch literal 2291 zcmVTcL`lmza&Oa)$ZLj0?6m{E!a|0^2*Yj93;$}H!Ew$=qNsJYQpbp zYPN=5^Lf2e5rLe!co74`!|?k3Hx<@lUAAG{Fp$^l)mSYSeCw{e@X`767#JG*Vh|c* z9oA(Vww(gDuxV{*r4vx%{g zo}|?Z+bJNoTjLAP$nEjKJ~D!|q$I@Clg|(sx21)JFq_TjBli-mR_Jv)XxWBrXUu5a z<-#Ck;e!|K%C4n?fOD5k+(~RqD zYebhQp-}n>sATWnz59B4`?Ky?un>9q`3MXJaYMjL0CMP8?<2+|{q;wuf4QD9)CIVB z=gys3ot>Td!y8q&@_9#~a{U1?Rt^Y|mt{k4dFys7ws2VpW>FgVbM zu@MKxM;#brq2D7TgRl>Di!eyj997Tg`kp;|o^EPxrCAVD66b8$v>wAl4xFk#h2s0~ zCn~Yxx39kgjaJ4yZ3bjrd{VR-#@q0eh#nO4V_L8gF%Pk;UT4w|wfz^}*qt@(; z1|)CYx)qtkNv=s3CR~%ue%QBfA6i>mv48*m0G}I8M6-H~`!w)KQgXO_RO#PBZ`@Zo zYlq)@kCY5Bn9QPhcvgOqJ_XM4G2D0WGQ9TMIIdiJx8urZuh^!iznxrrF)P3D<+3f? z5ucnXXjRfkWKN>^L@D@v9%yMsvd&Kr&??cgX5O%2gS*c@M9N+mO-4wvhLmL$kOIF~ zCLk>)40ia96G_p4lB=q!e!;H2QB?!IfipzJDG`_wSOz|NfJc(Wj66#|#H6FCA7^I* zwUKLU^A;~XR`$$u$Vf>f44J^>;INN241V6ZP!hbj(b5f_*?1+m1Qm6#nYRnS^Y9~Q zH5ysG*F^mW7qegJ`Ju3TBp$a5AN=Fka_Vd#438R!Ef_34xapFECh)C?*}A@6UBVq10ja#3Ag zUPGxQwW}W*W$ZHLygZE-p{Q(kK(BCNMMX(*Z7o__T2Q=VMbUy)tBTY>#dUR4W2;ve zwUw9aBi5QL@Y~=Y8-txT;*C!}iMaH1cxm^hZt5}CB|Ad|kRwo(aUQ!J-=w``c4np+ z?4q50LSo|7YldD?EMk{Ox?~p@5$qhglDweYW@DS2Acj`;Qk8jO`e(UhG@Px#dYp1C z1jIXAKhZ?>@#DDG*N1tu=`7p0Q4Dfl7xn$LtSr1KRRcwkKkr=K1hj6=8f@FV8GZfz z;y%>poR|pT2Y0zqXQU17{yVz5@K$v-RxDp0-sN)}qfCYG12fV_%qU1QVn!ZPOif9_ z&$e&J`zKC_`;d%M`a{22mu-|NK-!RNEZ3=q*f4be{Ei*sp06R-*hW#i=A;Z5skr#F z$xZ+V4jx2&d_2~dmI@;|7>rBAclvBN`=9GBM{sp?Lb?TKpQG3?C-ZgXyIB#Ot(NJW9XTT!eE!rE z_(9Hdc(dsMYRSz$swIw5YHBKadV0dKT9lI$F{2rreQfPTJajY<$JsrKktHSucQ0Bb zl=&nl)O@$%Y(9mld%S&)v;Tk2Mh+HB!7rq#fvcumeY-h-E&cpP=v=@ye(6}Iv(XLp z=?1kQpHya?sl7@f=ry6QQG55A2j+jf>?fRF{QK~)d#|0SE{7GNMaUpN+m@15`gBV7>rbJepa8X1hiAIx^G|hTZ##suZ~h7O z^(SDpS`kb8NS#iHvGH+?5;x6X`2w=P_c;Fkb~GSg~X7v{0k9%!Lbuj@l;b zjCe8fVL`gh78QsOhZTAcs%@r@>U~qfTznrfBvVTLr=Q|NM+aJHcYC$BH-fL#HsKk0 z{gF@nSIH%DqP}bz#d?EQ{2lG}M{&*Ti*)V$i#w2C`7%ChZKcc^;c~geRUG&dhu=xN zUT?G*sp*-4vR~Q*56vu>0vk0>;s_{8j2Jy6>{|JeSmDN5icvGgh^32T6#ORw>!@wQ z$3E=yx+G#KJ6SJ40f literal 0 HcmV?d00001 diff --git a/plugins/kolab_zpush/skins/larry/pointer-left.png b/plugins/kolab_zpush/skins/larry/pointer-left.png new file mode 100644 index 0000000000000000000000000000000000000000..bfa7e86cefddf0248e057c924d14862d46a74f4e GIT binary patch literal 1283 zcmeAS@N?(olHy`uVBq!ia0vp^JV4CP!3HERJk;|9Qj#UE5hcO-X(i=}MX3yqDfvmM z3ZA)%>8U}fi7AzZCsS=07?_nZLn2Bde0{8v^Ko2Tt~skz|cV7z)0WFNY~KZ%Gk)tz(4^Clz_GsrKDK}xwt{?0`hE?GD=Dctn~HE z%ggo3jrH=2()A53EiFN27#ZmTRp=I1=9MH?=;jqG!%T2VElw`VEGWs$&r<-In3$Ab zT4JjNbScCOxdm`z^NOLt1Pn0!io^naLp=kKmtYEgeeo;J&4sHjE(uCSxEHIz#UYgi zsro^w#rdU0$-sz9QwCX8VC7ttnpl!w6q28x0}I7~jQo=P;*9(P1?ON>1>eNv%sdbu ztlrnx$}_LHBrz{J)zigR321^|W@d_&iG`Voi>tAjv4yLlp`ojxlZ%sqtEsc8iK&^J zv6-PWOs`9Ra%paAUI|QZ3Q(`Jsimo*lbH!ly`ZF!TL84#CABECEH%ZgC_h&L>}9J= z+-|{b9#n4%7PmnCVT#i&`as9%gCZ6wqG3Y7)B|F|lP!<~Pxz^Mz|>v@Ox8xyCHEK@ z7|T6f978H@wM??jJ`^C*cK?dNT9(DGu6LXSR2jEEcy?)}_rmOh@)v;c!G)!=yUX74 zzqqzF;Kij!YL8ZVC<@rKtA5=4JSOME;;rI({4L*YpWCX3N39LBDDhf4$*bZ@>0Y5u z7lr@IW}N4D#^_1+x?Oz#y|Ba~MzKbOt2IYQ>~Mz3p&YZ@?;Q>$A97ZkytD84W2Y;x zzZ%T-+Zdy_omb_WWmD#?qaj+X#|sVQ`VHrwKe+kRRP!U#Tb9?@tzWr{>-ILonLZmL zbT;ginAyVh@ti@=Y!@ZPRi(RQ1rx({cw)B3=*3^Wbs=y2(Smu;JNN8gYcs)b`F*Ro zeiK>P-p_1*q8Bsw{5sEHKOHWvYSA)O@SJo%(|p>0`K+zCbRW)nv11)~T&9Igo6hM6 zOf}nivM*~t+!D8bKR+9@%4E-iGYJMSW`Fxtj=28v|NQq%Bhmy8&TADBu0#u&e}AW4yBlYbwD{tWC(jQq%V%U`kapM{qIE#-Ca75QboFyt=akR{ E01=_ejQ{`u literal 0 HcmV?d00001 diff --git a/plugins/kolab_zpush/skins/larry/synchronize.png b/plugins/kolab_zpush/skins/larry/synchronize.png new file mode 100755 index 0000000000000000000000000000000000000000..ba5ebd1f4e20b67ceaf49c2c9160f37a03ccc805 GIT binary patch literal 836 zcmV-K1H1f*P)dz zNLw#yfl;S$OS+NxP!T0`q27a_KcR=-dJ5{Xm+WEf!J>k|BqE5#C}ImGwQ$$<(wdh& z>AIJ5zVFx9lo8J{@aWY%oIP6CAZKYHol)uRf|554m_YTnpAlGl zL9{5M4)qVt#u>|mLQVrh46q|<)MP|~t8EE-8crSv>~io{4+abW2A~lV0z>OM)mbBD zmWtqV;+?9YGlhpQQ@M9zi{*KRG_T5PQ_nvC9tMo_mT6XEIU5;J+S?d(HD_0f!1ES7 z7@Uj?4!kD>&?r8e&c1jan^9Cs!}3z0d7Izafj)-}rbYZR}EdihS6`M#Fcy= zaw{u#mV;BNWe3{Sqiq;{_M>cOP*8MhP1CLQf3t|C2tpM55ycYh7RL%}Yf+Bp#e!~C z2(WG^ZnlxC>igv!sW2GM8SslVJ(oFwkp~5*6E^0rT$Q zya}^2lB>ITrX0zGEa!lc90$HC4~#^g#%ZB2j3vzHhi;TO$n{?Wwx(^0>^QA_x~H^z zTf=2SxY0rCf|fl@rb7TXYr%pE(0=u@G literal 0 HcmV?d00001 diff --git a/plugins/kolab_zpush/skins/larry/templates/config.html b/plugins/kolab_zpush/skins/larry/templates/config.html new file mode 100644 index 00000000..9671bc6a --- /dev/null +++ b/plugins/kolab_zpush/skins/larry/templates/config.html @@ -0,0 +1,71 @@ + + + +<roundcube:object name="pagetitle" /> + + + + + + +
    + + + +
    + +
    +

    +
    + +
    +
    + +
    +
    + +
    +

    + + +
    +
    + + + + + +
    +
    +
    + + +
    + +
    + + + + + + + From b1d29ee5261d3c149bd6de5e2e03d009f950dbd9 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 18 Jan 2012 15:56:49 +0100 Subject: [PATCH 06/30] Set download urls for AGPL plugins --- plugins/calendar/package.xml | 2 +- plugins/calendar/skins/larry/calendar.css | 2 +- plugins/kolab_addressbook/package.xml | 2 +- plugins/kolab_auth/package.xml | 2 +- plugins/kolab_config/package.xml | 2 +- plugins/kolab_core/package.xml | 2 +- plugins/kolab_folders/package.xml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/calendar/package.xml b/plugins/calendar/package.xml index 3fc38c20..ed42622a 100644 --- a/plugins/calendar/package.xml +++ b/plugins/calendar/package.xml @@ -4,7 +4,7 @@ http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> calendar - http://kolabsys.com + http://git.kolab.org/roundcube-plugins-kolab/ Calendar plugin - diff --git a/plugins/calendar/skins/larry/calendar.css b/plugins/calendar/skins/larry/calendar.css index 455ca910..42a62121 100644 --- a/plugins/calendar/skins/larry/calendar.css +++ b/plugins/calendar/skins/larry/calendar.css @@ -16,7 +16,7 @@ body.calendarmain { overflow: hidden; } -#mainscreen { +body.calendarmain #mainscreen { left: 0; } diff --git a/plugins/kolab_addressbook/package.xml b/plugins/kolab_addressbook/package.xml index 7e7b84c7..e077dcb5 100644 --- a/plugins/kolab_addressbook/package.xml +++ b/plugins/kolab_addressbook/package.xml @@ -4,7 +4,7 @@ http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> kolab_addressbook - http://kolabsys.com + http://git.kolab.org/roundcube-plugins-kolab/ Kolab addressbook Sample plugin to add a new address book source with data from Kolab storage. diff --git a/plugins/kolab_auth/package.xml b/plugins/kolab_auth/package.xml index f333dd4b..4c9b8ad9 100644 --- a/plugins/kolab_auth/package.xml +++ b/plugins/kolab_auth/package.xml @@ -4,7 +4,7 @@ http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> kolab_auth - http://kolabsys.com + http://git.kolab.org/roundcube-plugins-kolab/ Kolab Authentication Authenticates on LDAP server, finds canonized authentication ID for IMAP diff --git a/plugins/kolab_config/package.xml b/plugins/kolab_config/package.xml index 73291c8d..85c7faa4 100644 --- a/plugins/kolab_config/package.xml +++ b/plugins/kolab_config/package.xml @@ -4,7 +4,7 @@ http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> kolab_config - http://kolabsys.com + http://git.kolab.org/roundcube-plugins-kolab/ Kolab configuration storage Plugin to use Kolab server as a configuration storage. Provides an API to handle diff --git a/plugins/kolab_core/package.xml b/plugins/kolab_core/package.xml index 46aa29fe..fa407546 100644 --- a/plugins/kolab_core/package.xml +++ b/plugins/kolab_core/package.xml @@ -4,7 +4,7 @@ http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> kolab_core - http://kolabsys.com + http://git.kolab.org/roundcube-plugins-kolab/ Kolab API Plugin to setup a basic environment for interaction with a Kolab server. diff --git a/plugins/kolab_folders/package.xml b/plugins/kolab_folders/package.xml index 54ff20b5..b1c364a7 100644 --- a/plugins/kolab_folders/package.xml +++ b/plugins/kolab_folders/package.xml @@ -4,7 +4,7 @@ http://pear.php.net/dtd/package-2.0 http://pear.php.net/dtd/package-2.0.xsd"> kolab_folders - http://kolabsys.com + http://git.kolab.org/roundcube-plugins-kolab/ Type-aware folder management/listing for Kolab The plugin extends folders handling with features of the Kolab Suite From 646195a0c4c6a6ed98d5c2a5e200dc4804cc3940 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 18 Jan 2012 16:04:40 +0100 Subject: [PATCH 07/30] Remove unused image file --- plugins/kolab_zpush/skins/larry/config.css | 5 ----- plugins/kolab_zpush/skins/larry/deviceactions.png | Bin 781 -> 0 bytes 2 files changed, 5 deletions(-) delete mode 100644 plugins/kolab_zpush/skins/larry/deviceactions.png diff --git a/plugins/kolab_zpush/skins/larry/config.css b/plugins/kolab_zpush/skins/larry/config.css index c7bc1fbb..40d5b87a 100644 --- a/plugins/kolab_zpush/skins/larry/config.css +++ b/plugins/kolab_zpush/skins/larry/config.css @@ -31,11 +31,6 @@ color: #69939e; } -.boxfooter a.button.delete, -.boxfooter a.buttonPas.delete { - background-image: url(deviceactions.png); -} - div.subscriptionblock { float: left; margin: 0 3em 2em 0; diff --git a/plugins/kolab_zpush/skins/larry/deviceactions.png b/plugins/kolab_zpush/skins/larry/deviceactions.png deleted file mode 100644 index d242953108e7fcdaaeb20c185c7f40e4bdcad857..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 781 zcmV+o1M>WdP)B{pEc( z0TUnxT0jXX15JRN77-or9JmM208x7lNCPi{kJBJBpH8Qp`}_O%3x&c$r_+&$M53Wa zqfy&zwndlACBd3!K!;Bva@g!qG#d5b{04;(i^T$t;{^43U51YT>=cmSCeGwT ztm0TK_HcK1_bDL(42(wOce~yG&15pw`Uq5o&gF8q{C@vqjw^TRM2<0vg)*6Ju(q~#c0riqn?9S(;p zI-QOsIf$72?;IaQPN2;m5oo1Sq1M;e=MN7LH6TDpoCbrz+Vb);$FeL%S~L!d7uQH6 zl3}aWqPMoTv}ge%l}gEjTKIjuva-@iBoa)iRFV@SWG!;1yo`8*!B8c_91e#Hq6wu^ zc@mGut02K;vsoFcq9*QQ7^bV$YRRN6@==kx)9H+%9Sbx~UqK5-Wc#qWxjENvx9NO7 zFGq_Qh*eG;GPN}73o^7)@`@j{T{Apqx@8((NHCm$!nQRMuTe%D%FQhs-aNm zHP*i)Hs_@^m<^xckXH_eBd6EvtGM(7t@;U4EZo!t(URG0e&g|Y-Xh0NI^wAbcW8t- z(ZX$D30NH4^b7C-_zW~A8SfW6v`IgD#GCao60;rJjL0(W@d~00000 LNkvXXu0mjfYKUYD From b6cabf81006af154999ee8aa5dd7929d89d0c156 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Sat, 21 Jan 2012 17:24:58 +0100 Subject: [PATCH 08/30] Adapt styles for Larry --- plugins/calendar/calendar.php | 6 ++ plugins/calendar/calendar_ui.js | 13 ++- plugins/calendar/skins/larry/calendar.css | 86 +++++++++++-------- .../skins/larry/templates/calendar.html | 6 +- .../skins/larry/templates/eventedit.html | 4 +- 5 files changed, 70 insertions(+), 45 deletions(-) diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index 4a1ee3df..57da4032 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -1117,6 +1117,10 @@ class calendar extends rcube_plugin if ($event['recurrence']) $event['recurrence_text'] = $this->_recurrence_text($event['recurrence']); + foreach ((array)$event['attachments'] as $k => $attachment) { + $event['attachments'][$k]['classname'] = rcmail_filetype2classname($attachment['mimetype'], $attachment['name']); + } + return array( 'start' => gmdate('c', $this->fromGMT($event['start'])), // client treats date strings as they were in users's timezone 'end' => gmdate('c', $this->fromGMT($event['end'])), // so shift timestamps to users's timezone and render a date string @@ -1438,6 +1442,7 @@ class calendar extends rcube_plugin $content = html::a(array( 'href' => "#delete", + 'class' => 'delete', 'onclick' => sprintf("return %s.remove_from_attachment_list('rcmfile%s')", JS_OBJECT_NAME, $id), 'title' => rcube_label('delete'), ), $button); @@ -1448,6 +1453,7 @@ class calendar extends rcube_plugin 'html' => $content, 'name' => $attachment['name'], 'mimetype' => $attachment['mimetype'], + 'classname' => rcmail_filetype2classname($attachment['mimetype'], $attachment['name']), 'complete' => true), $uploadid); } else { // upload failed diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js index 5fc5a206..2e50d43e 100644 --- a/plugins/calendar/calendar_ui.js +++ b/plugins/calendar/calendar_ui.js @@ -276,10 +276,12 @@ function rcube_calendar_ui(settings) { var i, id, len, img, content, li, elem, ul = document.createElement('UL'); + ul.className = 'attachmentslist'; for (i=0, len=list.length; i now shown in dialog title + // $('#event-date').html(Q(me.event_date_text(event))).show(); if (event.recurrence && event.recurrence_text) $('#event-repeat').show().children('.event-text').html(Q(event.recurrence_text)); @@ -432,7 +437,7 @@ function rcube_calendar_ui(settings) modal: false, resizable: !bw.ie6, closeOnEscape: (!bw.ie6 && !bw.ie7), // disable for performance reasons - title: null, + title: Q(me.event_date_text(event)), close: function() { $dialog.dialog('destroy').hide(); }, diff --git a/plugins/calendar/skins/larry/calendar.css b/plugins/calendar/skins/larry/calendar.css index 42a62121..3b819bd9 100644 --- a/plugins/calendar/skins/larry/calendar.css +++ b/plugins/calendar/skins/larry/calendar.css @@ -57,6 +57,7 @@ body.calendarmain #mainscreen { background: -o-linear-gradient(top, #d9f1fb 0%, #c5e3ee 100%); background: -ms-linear-gradient(top, #d9f1fb 0%, #c5e3ee 100%); background: linear-gradient(top, #d9f1fb 0%, #c5e3ee 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#d9f1fb', endColorstr='#c5e3ee', GradientType=0); } #datepicker .ui-datepicker-activerange a.ui-state-active { @@ -67,6 +68,17 @@ body.calendarmain #mainscreen { background: -o-linear-gradient(top, #00acd4 0%, #008fc7 100%); background: -ms-linear-gradient(top, #00acd4 0%, #008fc7 100%); background: linear-gradient(top, #00acd4 0%, #008fc7 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00acd4', endColorstr='#008fc7', GradientType=0); +} + +.ie9 #datepicker .ui-datepicker-activerange a { + filter: none; + background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20preserveAspectRatio%3D%22none%22%20version%3D%221.0%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22mLG1%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%20spreadMethod%3D%22pad%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23d9f1fb%22%20stop-opacity%3D%221%22/%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23c5e3ee%22%20stop-opacity%3D%221%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20style%3D%22fill%3Aurl%28%23mLG1%29%3B%22/%3E%3C/svg%3E) !important; +} + +.ie9 #datepicker .ui-datepicker-activerange a.ui-state-active { + filter: none; + background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20preserveAspectRatio%3D%22none%22%20version%3D%221.0%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22mLG1%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%20spreadMethod%3D%22pad%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%2300acd4%22%20stop-opacity%3D%221%22/%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23008fc7%22%20stop-opacity%3D%221%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20style%3D%22fill%3Aurl%28%23mLG1%29%3B%22/%3E%3C/svg%3E) !important; } #datepicker td.ui-datepicker-week-col { @@ -142,6 +154,7 @@ pre { cursor: default; background: url(images/calendars.png) 0 -2px no-repeat; padding-left: 22px; + padding-bottom: 2px; color: #004458; } @@ -245,6 +258,10 @@ pre { right: 4px; } +body.calendarmain #searchmenulink { + width: 15px; +} + div.uidialog { display: none; } @@ -306,36 +323,22 @@ a.miniColors-trigger { font-weight: bold; } -.attachments-list ul { - margin: 0px; - padding: 0px; - list-style-image: none; - list-style-type: none; +#edit-attachments { + margin-top: 0.6em; } -.attachments-list ul li { - height: 18px; - font-size: 12px; - padding-top: 2px; - padding-right: 8px; +#edit-attachments ul li { + display: block; + color: #333; + font-weight: bold; + padding: 8px 4px 3px 30px; + text-shadow: 0px 1px 1px #fff; + text-decoration: none; white-space: nowrap; } -.attachments-list ul li img { - padding-right: 2px; - vertical-align: middle; -} - -.attachments-list ul li a { - text-decoration: none; -} - -.attachments-list ul li a:hover { - text-decoration: underline; -} - -#eventshow .attachments-list ul li { - float: left; +#edit-attachments ul li a.file { + padding: 0; } #edit-attachments-form { @@ -346,6 +349,15 @@ a.miniColors-trigger { margin: 0.5em 0; } +#event-attachments .attachmentslist li { + float: left; + margin-right: 1em; +} + +#event-attachments .attachmentslist li a { + outline: none; +} + #event-attendees span.attendee { padding-right: 18px; margin-right: 0.5em; @@ -991,11 +1003,6 @@ span.spacer { /* fullcalendar style overrides */ .rcube-fc-content { - position: absolute !important; - top: 37px; - left: 0; - right: 0; - bottom: 28px; overflow: hidden; border: 0; border-radius: 4px 4px 0 0; @@ -1003,6 +1010,14 @@ span.spacer { -o-box-shadow: 0 0 2px #999; -webkit-box-shadow: 0 0 2px #999; -moz-box-shadow: 0 0 2px #999; +} + +.fc-content { + position: absolute !important; + top: 37px; + left: 0; + right: 0; + bottom: 28px; background: #fff; } @@ -1159,8 +1174,8 @@ div.calendar-invitebox { min-height: 20px; margin: 5px 8px; padding: 3px 6px 6px 34px; - border: 1px solid #C2D071; - background: url(images/calendar.png) 6px 5px no-repeat #F7FDCB; + border: 1px solid #ffdf0e; + background: url(images/calendar.png) 6px 5px no-repeat #fef893; } div.calendar-invitebox td.ititle { @@ -1180,14 +1195,13 @@ div.calendar-invitebox .rsvp-buttons { } #event-rsvp input.button, -div.calendar-invitebox input.button, -div.calendar-invitebox select { - font-size: 11px; +div.calendar-invitebox input.button { + font-weight: bold; margin-right: 0.5em; } div.calendar-invitebox .calendar-select { - font-size: 11px; + font-weight: 10px; margin-left: 1em; } diff --git a/plugins/calendar/skins/larry/templates/calendar.html b/plugins/calendar/skins/larry/templates/calendar.html index ec41f7cb..9e3fbe61 100644 --- a/plugins/calendar/skins/larry/templates/calendar.html +++ b/plugins/calendar/skins/larry/templates/calendar.html @@ -5,7 +5,7 @@ - + @@ -13,7 +13,7 @@
    -
    +
    -
    - +
    +
    From 607fd7b43b711c3304880422492b9fcf2ea6977f Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 23 Jan 2012 10:16:30 +0100 Subject: [PATCH 09/30] Updates for Roundcube 0.8 --- .../calendar/drivers/kolab/kolab_calendar.php | 2 +- .../calendar/drivers/kolab/kolab_driver.php | 42 +++++----- .../kolab_addressbook/kolab_addressbook.php | 18 ++--- .../lib/rcube_kolab_contacts.php | 6 +- plugins/kolab_auth/kolab_auth.php | 4 +- plugins/kolab_core/rcube_kolab.php | 39 ++++----- plugins/kolab_folders/kolab_folders.php | 80 ++++++++++++------- plugins/kolab_zpush/kolab_zpush.php | 40 +++++----- 8 files changed, 122 insertions(+), 109 deletions(-) diff --git a/plugins/calendar/drivers/kolab/kolab_calendar.php b/plugins/calendar/drivers/kolab/kolab_calendar.php index a346037d..ccd542ae 100644 --- a/plugins/calendar/drivers/kolab/kolab_calendar.php +++ b/plugins/calendar/drivers/kolab/kolab_calendar.php @@ -145,7 +145,7 @@ class kolab_calendar public function get_foldername() { $parts = explode('/', $this->imap_folder); - return rcube_charset_convert(end($parts), 'UTF7-IMAP'); + return rcube_charset::convert(end($parts), 'UTF7-IMAP'); } /** diff --git a/plugins/calendar/drivers/kolab/kolab_driver.php b/plugins/calendar/drivers/kolab/kolab_driver.php index a55a8cc1..a70ddfef 100644 --- a/plugins/calendar/drivers/kolab/kolab_driver.php +++ b/plugins/calendar/drivers/kolab/kolab_driver.php @@ -78,7 +78,7 @@ class kolab_driver extends calendar_driver // convert to UTF8 and sort $names = array(); foreach ($folders as $folder) - $names[$folder->name] = rcube_charset_convert($folder->name, 'UTF7-IMAP'); + $names[$folder->name] = rcube_charset::convert($folder->name, 'UTF7-IMAP'); asort($names, SORT_LOCALE_STRING); @@ -160,8 +160,8 @@ class kolab_driver extends calendar_driver } // subscribe to new calendar by default - $this->rc->imap_connect(); - $this->rc->imap->subscribe($folder); + $storage = $this->rc->get_storage(); + $storage->subscribe($folder); // create ID $id = rcube_kolab::folder_id($folder); @@ -226,11 +226,11 @@ class kolab_driver extends calendar_driver public function subscribe_calendar($prop) { if ($prop['id'] && ($cal = $this->calendars[$prop['id']])) { - $this->rc->imap_connect(); + $storage = $this->rc->get_storage(); if ($prop['active']) - return $this->rc->imap->subscribe($cal->get_realname()); + return $storage->subscribe($cal->get_realname()); else - return $this->rc->imap->unsubscribe($cal->get_realname()); + return $storage->unsubscribe($cal->get_realname()); } return false; @@ -246,14 +246,14 @@ class kolab_driver extends calendar_driver */ private function folder_update(&$prop) { - $folder = rcube_charset_convert($prop['name'], RCMAIL_CHARSET, 'UTF7-IMAP'); + $folder = rcube_charset::convert($prop['name'], RCMAIL_CHARSET, 'UTF7-IMAP'); $oldfolder = $prop['oldname']; // UTF7 $parent = $prop['parent']; // UTF7 - $delimiter = $_SESSION['imap_delimiter']; + $storage = $this->rc->get_storage(); + $delimiter = $storage->get_hierarchy_delimiter(); if (strlen($oldfolder)) { - $this->rc->imap_connect(); - $options = $this->rc->imap->mailbox_info($oldfolder); + $options = $storage->folder_info($oldfolder); } if (!empty($options) && ($options['norename'] || $options['protected'])) { @@ -285,14 +285,12 @@ class kolab_driver extends calendar_driver } else { // add namespace prefix (when needed) - $this->rc->imap_init(); - $folder = $this->rc->imap->mod_mailbox($folder, 'in'); + $folder = $storage->mod_folder($folder, 'in'); } // Check access rights to the parent folder if (strlen($parent) && (!strlen($oldfolder) || $oldfolder != $folder)) { - $this->rc->imap_connect(); - $parent_opts = $this->rc->imap->mailbox_info($parent); + $parent_opts = $storage->folder_info($parent); if ($parent_opts['namespace'] != 'personal' && (empty($parent_opts['rights']) || !preg_match('/[ck]/', implode($parent_opts))) ) { @@ -320,8 +318,8 @@ class kolab_driver extends calendar_driver // TODO: also save 'showalarams' and other properties here if ($result && $prop['color']) { - if (!($meta_saved = $this->rc->imap->set_metadata($folder, array('/shared/vendor/kolab/color' => $prop['color'])))) // try in shared namespace - $meta_saved = $this->rc->imap->set_metadata($folder, array('/private/vendor/kolab/color' => $prop['color'])); // try in private namespace + if (!($meta_saved = $storage->set_metadata($folder, array('/shared/vendor/kolab/color' => $prop['color'])))) // try in shared namespace + $meta_saved = $storage->set_metadata($folder, array('/private/vendor/kolab/color' => $prop['color'])); // try in private namespace if ($meta_saved) unset($prop['color']); // unsetting will prevent fallback to local user prefs } @@ -1016,7 +1014,8 @@ class kolab_driver extends calendar_driver $hidden_fields[] = array('name' => 'oldname', 'value' => $folder); - $delim = $_SESSION['imap_delimiter']; + $storage = $this->rc->get_storage(); + $delim = $storage->get_hierarchy_delimiter(); $form = array(); if (strlen($folder)) { @@ -1024,8 +1023,7 @@ class kolab_driver extends calendar_driver array_pop($path_imap); // pop off name part $path_imap = implode($path_imap, $delim); - $this->rc->imap_connect(); - $options = $this->rc->imap->mailbox_info($folder); + $options = $storage->folder_info($folder); } else { $path_imap = ''; @@ -1179,7 +1177,8 @@ class kolab_driver extends calendar_driver $hidden_fields[] = array('name' => 'oldname', 'value' => $folder); - $delim = $_SESSION['imap_delimiter']; + $storage = $this->rc->get_storage(); + $delim = $storage->get_hierarchy_delimiter(); $form = array(); if (strlen($folder)) { @@ -1187,8 +1186,7 @@ class kolab_driver extends calendar_driver array_pop($path_imap); // pop off name part $path_imap = implode($path_imap, $delim); - $this->rc->imap_connect(); - $options = $this->rc->imap->mailbox_info($folder); + $options = $storage->folder_info($folder); // Allow plugins to modify the form content (e.g. with ACL form) $plugin = $this->rc->plugins->exec_hook('calendar_form_kolab', diff --git a/plugins/kolab_addressbook/kolab_addressbook.php b/plugins/kolab_addressbook/kolab_addressbook.php index ec75162a..5a47657d 100644 --- a/plugins/kolab_addressbook/kolab_addressbook.php +++ b/plugins/kolab_addressbook/kolab_addressbook.php @@ -131,7 +131,7 @@ class kolab_addressbook extends rcube_plugin 'editable' => $abook->editable, 'groups' => $abook->groups, 'undelete' => $abook->undelete && $undelete, - 'realname' => rcube_charset_convert($abook->get_realname(), 'UTF7-IMAP'), // IMAP folder name + 'realname' => rcube_charset::convert($abook->get_realname(), 'UTF7-IMAP'), // IMAP folder name 'class_name' => $abook->get_namespace(), 'kolab' => true, ); @@ -258,7 +258,7 @@ class kolab_addressbook extends rcube_plugin // convert to UTF8 and sort $names = array(); foreach ($this->folders as $c_folder) - $names[$c_folder->name] = rcube_charset_convert($c_folder->name, 'UTF7-IMAP'); + $names[$c_folder->name] = rcube_charset::convert($c_folder->name, 'UTF7-IMAP'); asort($names, SORT_LOCALE_STRING); @@ -420,14 +420,14 @@ class kolab_addressbook extends rcube_plugin */ public function book_save() { + $storage = $this->rc->get_storage(); $folder = trim(get_input_value('_name', RCUBE_INPUT_POST, true, 'UTF7-IMAP')); $oldfolder = trim(get_input_value('_oldname', RCUBE_INPUT_POST, true)); // UTF7-IMAP $path = trim(get_input_value('_parent', RCUBE_INPUT_POST, true)); // UTF7-IMAP - $delimiter = $_SESSION['imap_delimiter']; + $delimiter = $storage->get_hierarchy_delimiter(); if (strlen($oldfolder)) { - $this->rc->imap_connect(); - $options = $this->rc->imap->mailbox_info($oldfolder); + $options = $storage->folder_info($oldfolder); } if (!empty($options) && ($options['norename'] || $options['protected'])) { @@ -458,14 +458,12 @@ class kolab_addressbook extends rcube_plugin } else { // add namespace prefix (when needed) - $this->rc->imap_init(); - $folder = $this->rc->imap->mod_mailbox($folder, 'in'); + $folder = $storage->mod_folder($folder, 'in'); } // Check access rights to the parent folder if (strlen($path) && (!strlen($oldfolder) || $oldfolder != $folder)) { - $this->rc->imap_connect(); - $parent_opts = $this->rc->imap->mailbox_info($path); + $parent_opts = $storage->folder_info($path); if ($parent_opts['namespace'] != 'personal' && (empty($parent_opts['rights']) || !preg_match('/[ck]/', implode($parent_opts))) ) { @@ -552,7 +550,7 @@ class kolab_addressbook extends rcube_plugin 'readonly' => false, 'editable' => true, 'groups' => true, - 'realname' => rcube_charset_convert($folder, 'UTF7-IMAP'), // IMAP folder name + 'realname' => rcube_charset::convert($folder, 'UTF7-IMAP'), // IMAP folder name 'class_name' => $kolab_folder->get_namespace(), 'kolab' => true, ), rcube_kolab::folder_id($oldfolder)); diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php index 9c40afb9..2ffc7407 100644 --- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php +++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php @@ -131,8 +131,9 @@ class rcube_kolab_contacts extends rcube_addressbook public function __construct($imap_folder = null) { - if ($imap_folder) + if ($imap_folder) { $this->imap_folder = $imap_folder; + } // extend coltypes configuration $format = rcube_kolab::get_format('contact'); @@ -653,8 +654,9 @@ class rcube_kolab_contacts extends rcube_addressbook } // store IMAP uids for undelete() - if (!$force) + if (!$force) { $_SESSION['kolab_delete_uids'] = $imap_uids; + } return $count; } diff --git a/plugins/kolab_auth/kolab_auth.php b/plugins/kolab_auth/kolab_auth.php index 3fa85248..07800cda 100644 --- a/plugins/kolab_auth/kolab_auth.php +++ b/plugins/kolab_auth/kolab_auth.php @@ -43,7 +43,7 @@ class kolab_auth extends rcube_plugin // Hooks related to "Login As" feature $this->add_hook('template_object_loginform', array($this, 'login_form')); - $this->add_hook('imap_connect', array($this, 'imap_connect')); + $this->add_hook('storage_connect', array($this, 'imap_connect')); $this->add_hook('managesieve_connect', array($this, 'imap_connect')); $this->add_hook('smtp_connect', array($this, 'smtp_connect')); @@ -135,7 +135,7 @@ class kolab_auth extends rcube_plugin } else { $dont_override = $rcmail->config->get('dont_override'); if (in_array($setting_name, $dont_override)) { - $_dont_override = Array(); + $_dont_override = array(); foreach ($dont_override as $_setting) { if ($_setting != $setting_name) { $_dont_override[] = $_setting; diff --git a/plugins/kolab_core/rcube_kolab.php b/plugins/kolab_core/rcube_kolab.php index 7f2702fc..6bd5f603 100644 --- a/plugins/kolab_core/rcube_kolab.php +++ b/plugins/kolab_core/rcube_kolab.php @@ -222,15 +222,9 @@ class rcube_kolab static $subscribed; // local cache if (!$subscribed) { - $rcmail = rcmail::get_instance(); - // try without connection first (list could be served from cache) - $subscribed = $rcmail->imap ? $rcmail->imap->list_mailboxes() : array(); - - // now really get the list from the IMAP server - if (empty($subscribed) || $subscribed == array('INBOX')) { - $rcmail->imap_connect(); - $subscribed = $rcmail->imap->list_mailboxes(); - } + $rcmail = rcmail::get_instance(); + $storage = $rcmail->get_storage(); + $subscribed = $storage->list_folders(); } return in_array($folder, $subscribed); @@ -390,10 +384,9 @@ class rcube_kolab */ public static function object_name($folder, &$folder_ns=null) { - $rcmail = rcmail::get_instance(); - $rcmail->imap_init(); - - $namespace = $rcmail->imap->get_namespace(); + $rcmail = rcmail::get_instance(); + $storage = $rcmail->get_storage(); + $namespace = $storage->get_namespace(); $found = false; if (!empty($namespace['shared'])) { @@ -444,9 +437,9 @@ class rcube_kolab } if (empty($delim)) - $delim = $rcmail->imap->get_hierarchy_delimiter(); + $delim = $storage->get_hierarchy_delimiter(); - $folder = rcube_charset_convert($folder, 'UTF7-IMAP'); + $folder = rcube_charset::convert($folder, 'UTF7-IMAP'); $folder = str_replace($delim, ' » ', $folder); if ($prefix) @@ -467,10 +460,9 @@ class rcube_kolab */ public static function folder_namespace($folder) { - $rcmail = rcmail::get_instance(); - $rcmail->imap_init(); - - $namespace = $rcmail->imap->get_namespace(); + $rcmail = rcmail::get_instance(); + $storage = $rcmail->get_storage(); + $namespace = $storage->get_namespace(); if (!empty($namespace)) { foreach ($namespace as $nsname => $nsvalue) { @@ -498,10 +490,13 @@ class rcube_kolab */ public static function folder_selector($type, $attrs, $current = '') { + $rcmail = rcmail::get_instance(); + $storage = $rcmail->get_storage(); + // get all folders of specified type $folders = self::get_folders($type); - $delim = $_SESSION['imap_delimiter']; + $delim = $storage->get_hierarchy_delimiter(); $names = array(); $len = strlen($current); @@ -528,12 +523,12 @@ class rcube_kolab } } - $names[$name] = rcube_charset_convert($name, 'UTF7-IMAP'); + $names[$name] = rcube_charset::convert($name, 'UTF7-IMAP'); } // Make sure parent folder is listed (might be skipped e.g. if it's namespace root) if ($p_len && !isset($names[$parent])) { - $names[$parent] = rcube_charset_convert($parent, 'UTF7-IMAP'); + $names[$parent] = rcube_charset::convert($parent, 'UTF7-IMAP'); } // Sort folders list diff --git a/plugins/kolab_folders/kolab_folders.php b/plugins/kolab_folders/kolab_folders.php index 446a091d..044f6364 100644 --- a/plugins/kolab_folders/kolab_folders.php +++ b/plugins/kolab_folders/kolab_folders.php @@ -41,7 +41,7 @@ class kolab_folders extends rcube_plugin $this->rc = rcmail::get_instance(); // Folder listing hooks - $this->add_hook('mailboxes_list', array($this, 'mailboxes_list')); + $this->add_hook('storage_folders', array($this, 'mailboxes_list')); // Folder manager hooks $this->add_hook('folder_form', array($this, 'folder_form')); @@ -72,7 +72,6 @@ class kolab_folders extends rcube_plugin $folderdata = $this->get_folder_type_list($args['root'].$args['name'], true); if (!is_array($folderdata)) { - $args['folders'] = false; return $args; } @@ -91,9 +90,11 @@ class kolab_folders extends rcube_plugin return $args; } + $storage = $this->rc->get_storage(); + // Get folders list if ($args['mode'] == 'LIST') { - $args['folders'] = $this->rc->imap->conn->listMailboxes($args['root'], $args['name']); + $args['folders'] = $storage->conn->listMailboxes($args['root'], $args['name']); } else { $args['folders'] = $this->list_subscribed($args['root'], $args['name']); @@ -200,16 +201,21 @@ class kolab_folders extends rcube_plugin $ctype = 'mail'; } + $storage = $this->rc->get_storage(); + // Don't allow changing type of shared folder, according to ACL if (strlen($mbox)) { - $options = $this->rc->imap->mailbox_info($mbox); + $options = $storage->folder_info($mbox); if ($options['namespace'] != 'personal' && !in_array('a', $options['rights'])) { - if (in_array($ctype, $this->types)) + if (in_array($ctype, $this->types)) { $value = $this->gettext('foldertype'.$ctype); - else + } + else { $value = $ctype; - if ($subtype) + } + if ($subtype) { $value .= ' ('. ($subtype == 'default' ? $this->gettext('default') : $subtype) .')'; + } $args['form']['props']['fieldsets']['settings']['content']['foldertype'] = array( 'label' => $this->gettext('folderctype'), @@ -298,13 +304,15 @@ class kolab_folders extends rcube_plugin $ctype .= $subtype ? '.'.$subtype : ''; + $storage = $this->rc->get_storage(); + // Create folder if (!strlen($old_mbox)) { // By default don't subscribe to non-mail folders if ($subscribe) $subscribe = (bool) preg_match('/^mail/', $ctype); - $result = $this->rc->imap->create_mailbox($mbox, $subscribe); + $result = $storage->create_folder($mbox, $subscribe); // Set folder type if ($result) { $this->set_folder_type($mbox, $ctype); @@ -313,7 +321,7 @@ class kolab_folders extends rcube_plugin // Rename folder else { if ($old_mbox != $mbox) { - $result = $this->rc->imap->rename_mailbox($old_mbox, $mbox); + $result = $storage->rename_folder($old_mbox, $mbox); } else { $result = true; @@ -348,9 +356,11 @@ class kolab_folders extends rcube_plugin */ function metadata_support() { - return $this->rc->imap->get_capability('METADATA') || - $this->rc->imap->get_capability('ANNOTATEMORE') || - $this->rc->imap->get_capability('ANNOTATEMORE2'); + $storage = $this->rc->get_storage(); + + return $storage->get_capability('METADATA') || + $storage->get_capability('ANNOTATEMORE') || + $storage->get_capability('ANNOTATEMORE2'); } /** @@ -362,7 +372,8 @@ class kolab_folders extends rcube_plugin */ function get_folder_type($folder) { - $folderdata = $this->rc->imap->get_metadata($folder, array(kolab_folders::CTYPE_KEY)); + $storage = $this->rc->get_storage(); + $folderdata = $storage->get_metadata($folder, array(kolab_folders::CTYPE_KEY)); return explode('.', $folderdata[$folder][kolab_folders::CTYPE_KEY]); } @@ -377,7 +388,9 @@ class kolab_folders extends rcube_plugin */ function set_folder_type($folder, $type='mail') { - return $this->rc->imap->set_metadata($folder, array(kolab_folders::CTYPE_KEY => $type)); + $storage = $this->rc->get_storage(); + + return $storage->set_metadata($folder, array(kolab_folders::CTYPE_KEY => $type)); } /** @@ -390,23 +403,23 @@ class kolab_folders extends rcube_plugin */ private function list_subscribed($root='', $name='*') { - $imap = $this->rc->imap; + $storage = $this->rc->get_storage(); // Code copied from rcube_imap::_list_mailboxes() // Server supports LIST-EXTENDED, we can use selection options // #1486225: Some dovecot versions returns wrong result using LIST-EXTENDED if (!$this->rc->config->get('imap_force_lsub') && $imap->get_capability('LIST-EXTENDED')) { // This will also set mailbox options, LSUB doesn't do that - $a_folders = $imap->conn->listMailboxes($root, $name, + $a_folders = $storage->conn->listMailboxes($root, $name, NULL, array('SUBSCRIBED')); // remove non-existent folders if (is_array($a_folders) && $name = '*') { foreach ($a_folders as $idx => $folder) { - if ($imap->conn->data['LIST'] && ($opts = $imap->conn->data['LIST'][$folder]) + if ($storage->conn->data['LIST'] && ($opts = $storage->conn->data['LIST'][$folder]) && in_array('\\NonExistent', $opts) ) { - $imap->conn->unsubscribe($folder); + $storage->conn->unsubscribe($folder); unset($a_folders[$idx]); } } @@ -414,17 +427,17 @@ class kolab_folders extends rcube_plugin } // retrieve list of folders from IMAP server using LSUB else { - $a_folders = $imap->conn->listSubscribed($root, $name); + $a_folders = $storage->conn->listSubscribed($root, $name); // unsubscribe non-existent folders, remove from the list if (is_array($a_folders) && $name == '*') { foreach ($a_folders as $idx => $folder) { - if ($imap->conn->data['LIST'] && ($opts = $imap->conn->data['LIST'][$folder]) + if ($storage->conn->data['LIST'] && ($opts = $storage->conn->data['LIST'][$folder]) && in_array('\\Noselect', $opts) ) { // Some servers returns \Noselect for existing folders - if (!$imap->mailbox_exists($folder)) { - $imap->conn->unsubscribe($folder); + if (!$storage->folder_exists($folder)) { + $storage->conn->unsubscribe($folder); unset($a_folders[$idx]); } } @@ -445,15 +458,17 @@ class kolab_folders extends rcube_plugin */ function get_folder_type_list($mbox, $create_defaults = false) { + $storage = $this->rc->get_storage(); + // Use mailboxes. prefix so the cache will be cleared by core // together with other mailboxes-related cache data $cache_key = 'mailboxes.folder-type.'.$mbox; // get cached metadata - $metadata = $this->rc->imap->get_cache($cache_key); + $metadata = $storage->get_cache($cache_key); if (!is_array($metadata)) { - $metadata = $this->rc->imap->get_metadata($mbox, kolab_folders::CTYPE_KEY); + $metadata = $storage->get_metadata($mbox, kolab_folders::CTYPE_KEY); $need_update = true; } @@ -473,7 +488,7 @@ class kolab_folders extends rcube_plugin // write mailboxlist to cache if ($need_update) { - $this->rc->imap->update_cache($cache_key, $metadata); + $storage->update_cache($cache_key, $metadata); } return $metadata; @@ -488,6 +503,7 @@ class kolab_folders extends rcube_plugin */ function get_default_folder($type) { + $storage = $this->rc->get_storage(); $folderdata = $this->get_folder_type_list('*'); if (!is_array($folderdata)) { @@ -495,7 +511,7 @@ class kolab_folders extends rcube_plugin } $type .= '.default'; - $namespace = $this->rc->imap->get_namespace(); + $namespace = $storage->get_namespace(); // get all folders of specified type $folderdata = array_intersect($folderdata, array($type)); @@ -552,7 +568,8 @@ class kolab_folders extends rcube_plugin */ private function create_default_folders(&$folderdata, $cache_key = null) { - $namespace = $this->rc->imap->get_namespace(); + $storage = $this->rc->get_storage(); + $namespace = $storage->get_namespace(); $defaults = array(); $need_update = false; @@ -573,7 +590,7 @@ class kolab_folders extends rcube_plugin $opt_name = 'kolab_folders_' . $type . '_' . $subtype; if ($folder = $this->rc->config->get($opt_name)) { // convert configuration value to UTF7-IMAP charset - $folder = rcube_charset_convert($folder, RCMAIL_CHARSET, 'UTF7-IMAP'); + $folder = rcube_charset::convert($folder, RCMAIL_CHARSET, 'UTF7-IMAP'); // and namespace prefix if needed if ($prefix && strpos($folder, $prefix) === false && $folder != 'INBOX') { $folder = $prefix . $folder; @@ -621,8 +638,8 @@ class kolab_folders extends rcube_plugin list($type1, $type2) = explode('.', $type); // create folder - if ($type1 != 'mail' || !$this->rc->imap->mailbox_exists($foldername)) { - $this->rc->imap->create_mailbox($foldername, $type1 == 'mail'); + if ($type1 != 'mail' || !$storage->folder_exists($foldername)) { + $storage->create_folder($foldername, $type1 == 'mail'); } // set type @@ -637,7 +654,8 @@ class kolab_folders extends rcube_plugin // update cache if ($need_update && $cache_key) { - $this->rc->imap->update_cache($cache_key, $folderdata); + $storage->update_cache($cache_key, $folderdata); } } + } diff --git a/plugins/kolab_zpush/kolab_zpush.php b/plugins/kolab_zpush/kolab_zpush.php index 7624cd00..f19fe3ad 100644 --- a/plugins/kolab_zpush/kolab_zpush.php +++ b/plugins/kolab_zpush/kolab_zpush.php @@ -64,11 +64,12 @@ class kolab_zpush extends rcube_plugin */ public function init_imap() { - $this->rc->imap_connect(); + $storage = $this->rc->get_storage(); + $this->cache = $this->rc->get_cache('zpush', 'db', 900); $this->cache->expunge(); - if ($meta = $this->rc->imap->get_metadata(self::ROOT_MAILBOX, self::ACTIVESYNC_KEY)) { + if ($meta = $storage->get_metadata(self::ROOT_MAILBOX, self::ACTIVESYNC_KEY)) { // clear cache if device config changed if (($oldmeta = $this->cache->read('devicemeta')) && $oldmeta != $meta) $this->cache->remove(); @@ -85,13 +86,13 @@ class kolab_zpush extends rcube_plugin */ public function json_command() { - $cmd = get_input_value('cmd', RCUBE_INPUT_GPC); - $imei = get_input_value('id', RCUBE_INPUT_GPC); + $storage = $this->rc->get_storage(); + $cmd = get_input_value('cmd', RCUBE_INPUT_GPC); + $imei = get_input_value('id', RCUBE_INPUT_GPC); switch ($cmd) { case 'load': $result = array(); - $this->init_imap(); $devices = $this->list_devices(); if ($device = $devices[$imei]) { $result['id'] = $imei; @@ -113,7 +114,6 @@ class kolab_zpush extends rcube_plugin break; case 'save': - $this->init_imap(); $devices = $this->list_devices(); $syncmode = intval(get_input_value('syncmode', RCUBE_INPUT_POST)); $devicealias = get_input_value('devicealias', RCUBE_INPUT_POST, true); @@ -132,13 +132,13 @@ class kolab_zpush extends rcube_plugin $this->root_meta['DEVICE'][$imei]['LAXPIC'] = $laxpic; $this->root_meta['FOLDER'][$imei]['S'] = intval($subsciptions[self::ROOT_MAILBOX]); - $err = !$this->rc->imap->set_metadata(self::ROOT_MAILBOX, + $err = !$storage->set_metadata(self::ROOT_MAILBOX, array(self::ACTIVESYNC_KEY => $this->serialize_metadata($this->root_meta))); // update cached meta data if (!$err) { $this->cache->remove('devicemeta'); - $this->cache->write('devicemeta', $this->rc->imap->get_metadata(self::ROOT_MAILBOX, self::ACTIVESYNC_KEY)); + $this->cache->write('devicemeta', $storage->get_metadata(self::ROOT_MAILBOX, self::ACTIVESYNC_KEY)); } } // iterate over folders list and update metadata if necessary @@ -153,12 +153,12 @@ class kolab_zpush extends rcube_plugin unset($meta['TYPE']); // read metadata first - $folderdata = $this->rc->imap->get_metadata($folder, array(self::ACTIVESYNC_KEY)); + $folderdata = $storage->get_metadata($folder, array(self::ACTIVESYNC_KEY)); if ($asyncdata = $folderdata[$folder][self::ACTIVESYNC_KEY]) $metadata = $this->unserialize_metadata($asyncdata); $metadata['FOLDER'] = $meta; - $err |= !$this->rc->imap->set_metadata($folder, array(self::ACTIVESYNC_KEY => $this->serialize_metadata($metadata))); + $err |= !$storage->set_metadata($folder, array(self::ACTIVESYNC_KEY => $this->serialize_metadata($metadata))); } } @@ -184,9 +184,9 @@ class kolab_zpush extends rcube_plugin unset($this->root_meta['DEVICE'][$imei], $this->root_meta['FOLDER'][$imei]); // update annotation and cached meta data - if ($success = $this->rc->imap->set_metadata(self::ROOT_MAILBOX, array(self::ACTIVESYNC_KEY => $this->serialize_metadata($this->root_meta)))) { + if ($success = $storage->set_metadata(self::ROOT_MAILBOX, array(self::ACTIVESYNC_KEY => $this->serialize_metadata($this->root_meta)))) { $this->cache->remove('devicemeta'); - $this->cache->write('devicemeta', $this->rc->imap->get_metadata(self::ROOT_MAILBOX, self::ACTIVESYNC_KEY)); + $this->cache->write('devicemeta', $storage->get_metadata(self::ROOT_MAILBOX, self::ACTIVESYNC_KEY)); // remove device annotation in every folder foreach ($this->folders_meta() as $folder => $meta) { @@ -199,12 +199,12 @@ class kolab_zpush extends rcube_plugin unset($meta[$imei], $meta['TYPE']); // read metadata first and update FOLDER property - $folderdata = $this->rc->imap->get_metadata($folder, array(self::ACTIVESYNC_KEY)); + $folderdata = $storage->get_metadata($folder, array(self::ACTIVESYNC_KEY)); if ($asyncdata = $folderdata[$folder][self::ACTIVESYNC_KEY]) $metadata = $this->unserialize_metadata($asyncdata); $metadata['FOLDER'] = $meta; - if ($this->rc->imap->set_metadata($folder, array(self::ACTIVESYNC_KEY => $this->serialize_metadata($metadata)))) { + if ($storage->set_metadata($folder, array(self::ACTIVESYNC_KEY => $this->serialize_metadata($metadata)))) { $this->folders_meta[$folder] = $metadata; $this->folders_meta[$folder]['TYPE'] = $type; } @@ -236,12 +236,12 @@ class kolab_zpush extends rcube_plugin */ public function config_view() { - require_once($this->home . '/kolab_zpush_ui.php'); + require_once $this->home . '/kolab_zpush_ui.php'; - $this->init_imap(); + $storage = $this->rc->get_storage(); // checks if IMAP server supports any of METADATA, ANNOTATEMORE, ANNOTATEMORE2 - if (!($this->rc->imap->get_capability('METADATA') || $this->rc->imap->get_capability('ANNOTATEMORE') || $this->rc->imap->get_capability('ANNOTATEMORE2'))) { + if (!($storage->get_capability('METADATA') || $storage->get_capability('ANNOTATEMORE') || $storage->get_capability('ANNOTATEMORE2'))) { $this->rc->output->show_message($this->gettext('notsupported'), 'error'); } @@ -286,9 +286,11 @@ class kolab_zpush extends rcube_plugin } // fetch folder data from server else { - $this->folders = $this->rc->imap->list_folders(); + $storage = $this->rc->get_storage(); + $this->folders = $storage->list_folders(); + foreach ($this->folders as $folder) { - $folderdata = $this->rc->imap->get_metadata($folder, array(self::ACTIVESYNC_KEY, self::CTYPE_KEY)); + $folderdata = $storage->get_metadata($folder, array(self::ACTIVESYNC_KEY, self::CTYPE_KEY)); $foldertype = explode('.', $folderdata[$folder][self::CTYPE_KEY]); if ($asyncdata = $folderdata[$folder][self::ACTIVESYNC_KEY]) { From 4b0241b053edf445c2fe5315a37297d580865d29 Mon Sep 17 00:00:00 2001 From: Christoph Wickert Date: Thu, 26 Jan 2012 14:41:21 +0100 Subject: [PATCH 10/30] Add de_DE and de_CH translations for kolab_addressbook (https://bugzilla.kolabsys.com/show_bug.cgi?id=570) --- .../kolab_addressbook/localization/de_CH.inc | 46 +++++++++++++++++++ .../kolab_addressbook/localization/de_DE.inc | 46 +++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 plugins/kolab_addressbook/localization/de_CH.inc create mode 100644 plugins/kolab_addressbook/localization/de_DE.inc diff --git a/plugins/kolab_addressbook/localization/de_CH.inc b/plugins/kolab_addressbook/localization/de_CH.inc new file mode 100644 index 00000000..f91a24ba --- /dev/null +++ b/plugins/kolab_addressbook/localization/de_CH.inc @@ -0,0 +1,46 @@ + diff --git a/plugins/kolab_addressbook/localization/de_DE.inc b/plugins/kolab_addressbook/localization/de_DE.inc new file mode 100644 index 00000000..5fd86b76 --- /dev/null +++ b/plugins/kolab_addressbook/localization/de_DE.inc @@ -0,0 +1,46 @@ + From 87d406f04490d3411bfd34850f6f646541ec2114 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Fri, 27 Jan 2012 17:46:25 +0100 Subject: [PATCH 11/30] Fixed minor bugs from #510 --- plugins/calendar/drivers/kolab/kolab_driver.php | 3 +++ plugins/calendar/localization/de_CH.inc | 2 +- plugins/calendar/localization/de_DE.inc | 2 +- plugins/calendar/localization/en_US.inc | 3 ++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/calendar/drivers/kolab/kolab_driver.php b/plugins/calendar/drivers/kolab/kolab_driver.php index a70ddfef..adca9623 100644 --- a/plugins/calendar/drivers/kolab/kolab_driver.php +++ b/plugins/calendar/drivers/kolab/kolab_driver.php @@ -1193,6 +1193,9 @@ class kolab_driver extends calendar_driver array('form' => $form, 'options' => $options, 'name' => $folder)); } + if (!$plugin['form']['sharing']['content']) + $plugin['form']['sharing']['content'] = html::div('hint', $this->cal->gettext('aclnorights')); + return $plugin['form']['sharing']['content']; } diff --git a/plugins/calendar/localization/de_CH.inc b/plugins/calendar/localization/de_CH.inc index aceeccb1..ee8383df 100644 --- a/plugins/calendar/localization/de_CH.inc +++ b/plugins/calendar/localization/de_CH.inc @@ -64,7 +64,7 @@ $labels['confidential'] = 'vertraulich'; $labels['alarms'] = 'Erinnerung'; $labels['generated'] = 'erstellt am'; $labels['printdescriptions'] = 'Beschrieb drucken'; -$labels['parentcalendar'] = 'Übergeordneter Kalender'; +$labels['parentcalendar'] = 'Erstellen in'; $labels['searchearlierdates'] = '« Frühere Termine suchen'; $labels['searchlaterdates'] = 'Spätere Termine suchen »'; $labels['andnmore'] = '$nr weitere...'; diff --git a/plugins/calendar/localization/de_DE.inc b/plugins/calendar/localization/de_DE.inc index a3e6510b..3c3a4bdf 100644 --- a/plugins/calendar/localization/de_DE.inc +++ b/plugins/calendar/localization/de_DE.inc @@ -64,7 +64,7 @@ $labels['confidential'] = 'vertraulich'; $labels['alarms'] = 'Erinnerung'; $labels['generated'] = 'erstellt am'; $labels['printdescriptions'] = 'Beschrieb drucken'; -$labels['parentcalendar'] = 'Übergeordneter Kalender'; +$labels['parentcalendar'] = 'Erstellen in'; $labels['searchearlierdates'] = '« Frühere Termine suchen'; $labels['searchlaterdates'] = 'Spätere Termine suchen »'; $labels['andnmore'] = '$nr weitere...'; diff --git a/plugins/calendar/localization/en_US.inc b/plugins/calendar/localization/en_US.inc index a5e48d5e..e13cd88b 100644 --- a/plugins/calendar/localization/en_US.inc +++ b/plugins/calendar/localization/en_US.inc @@ -64,7 +64,7 @@ $labels['confidential'] = 'confidential'; $labels['alarms'] = 'Reminder'; $labels['generated'] = 'generated at'; $labels['printdescriptions'] = 'Print descriptions'; -$labels['parentcalendar'] = 'Superior calendar'; +$labels['parentcalendar'] = 'Insert inside'; $labels['searchearlierdates'] = '« Search for earlier events'; $labels['searchlaterdates'] = 'Search for later events »'; $labels['andnmore'] = '$nr more...'; @@ -210,6 +210,7 @@ $labels['localchangeswarning'] = 'You are about to make changes that will only b $labels['importsuccess'] = 'Successfully imported $nr events'; $labels['importnone'] = 'No events found to be imported'; $labels['importerror'] = 'An error occured while importing'; +$labels['aclnorights'] = 'You do not have administrator rights on this calendar.'; // recurrence form $labels['repeat'] = 'Repeat'; From fddafd3857324503a16db8760b21a9bb9864717c Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Fri, 27 Jan 2012 17:50:21 +0100 Subject: [PATCH 12/30] Style improvements for Larry skin --- plugins/calendar/skins/larry/calendar.css | 60 ++++--------------- .../skins/larry/templates/calendar.html | 2 +- .../skins/larry/templates/kolabacl.html | 14 ++++- .../skins/larry/templates/kolabform.html | 9 ++- 4 files changed, 30 insertions(+), 55 deletions(-) diff --git a/plugins/calendar/skins/larry/calendar.css b/plugins/calendar/skins/larry/calendar.css index 3b819bd9..cd39b3d5 100644 --- a/plugins/calendar/skins/larry/calendar.css +++ b/plugins/calendar/skins/larry/calendar.css @@ -71,16 +71,6 @@ body.calendarmain #mainscreen { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00acd4', endColorstr='#008fc7', GradientType=0); } -.ie9 #datepicker .ui-datepicker-activerange a { - filter: none; - background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20preserveAspectRatio%3D%22none%22%20version%3D%221.0%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22mLG1%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%20spreadMethod%3D%22pad%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23d9f1fb%22%20stop-opacity%3D%221%22/%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23c5e3ee%22%20stop-opacity%3D%221%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20style%3D%22fill%3Aurl%28%23mLG1%29%3B%22/%3E%3C/svg%3E) !important; -} - -.ie9 #datepicker .ui-datepicker-activerange a.ui-state-active { - filter: none; - background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20preserveAspectRatio%3D%22none%22%20version%3D%221.0%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22mLG1%22%20x1%3D%220%25%22%20y1%3D%220%25%22%20x2%3D%220%25%22%20y2%3D%22100%25%22%20spreadMethod%3D%22pad%22%3E%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%2300acd4%22%20stop-opacity%3D%221%22/%3E%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23008fc7%22%20stop-opacity%3D%221%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20style%3D%22fill%3Aurl%28%23mLG1%29%3B%22/%3E%3C/svg%3E) !important; -} - #datepicker td.ui-datepicker-week-col { cursor: pointer; } @@ -951,54 +941,24 @@ span.spacer { #calendar-kolabform { position: relative; - padding-top: 24px; margin: 0 -8px; min-width: 660px; min-height: 400px; } -#calendar-kolabform div.tabsbar { - top: 0; - right: 2px; - left: 2px; - height: 24px; -} - -#calendar-kolabform fieldset.tabbed { - background-color: #fff; - margin-top: 0; -} - -#calendar-kolabform span.tablink { - background-color: #e8e8e9; - background-image: -moz-linear-gradient(center top, #f4f4f4, #e6e6e6); - background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.0, #f4f4f4), color-stop(1.0, #e6e6e6)); - filter: progid:DXImageTransform.Microsoft.gradient(enabled='true', startColorstr=#f4f4f4, endColorstr=#e6e6e6, GradientType=0); - height: 24px !important; -} - -#calendar-kolabform span.tablink-selected { - background: #fff; - height: 25px !important; -} - -#calendar-kolabform span.tablink a, -#calendar-kolabform span.tablink-selected a { - background: none; - border: 1px solid #AAAAAA; - border-top-left-radius: 2px; - border-top-right-radius: 2px; - padding: 4px 10px 0 10px; - margin-left: 0; -} - #calendar-kolabform table td.title { - font-weight: bold; - white-space: nowrap; - color: #666; - padding-right: 10px; + font-weight: bold; + white-space: nowrap; + color: #666; + padding-right: 10px; } +.propform fieldset.tab { + background: #efefef; + display: block; + margin-top: 0.5em; + padding: 0.5em 1em; +} /* fullcalendar style overrides */ diff --git a/plugins/calendar/skins/larry/templates/calendar.html b/plugins/calendar/skins/larry/templates/calendar.html index 9e3fbe61..9fd6116f 100644 --- a/plugins/calendar/skins/larry/templates/calendar.html +++ b/plugins/calendar/skins/larry/templates/calendar.html @@ -3,7 +3,7 @@ <roundcube:object name="pagetitle" /> - + diff --git a/plugins/calendar/skins/larry/templates/kolabacl.html b/plugins/calendar/skins/larry/templates/kolabacl.html index f32a92fc..05a279ad 100644 --- a/plugins/calendar/skins/larry/templates/kolabacl.html +++ b/plugins/calendar/skins/larry/templates/kolabacl.html @@ -3,8 +3,20 @@ <roundcube:object name="pagetitle" /> + - + diff --git a/plugins/calendar/skins/larry/templates/kolabform.html b/plugins/calendar/skins/larry/templates/kolabform.html index 03b023fc..77a1c30e 100644 --- a/plugins/calendar/skins/larry/templates/kolabform.html +++ b/plugins/calendar/skins/larry/templates/kolabform.html @@ -1,6 +1,9 @@ -
    +
    \ No newline at end of file +#calendarpropform { min-width:680px; margin-top:-12px; } + + \ No newline at end of file From 8f7e7408d41d2fde2d4f1f902553777b4b98c9d8 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Fri, 27 Jan 2012 18:46:24 +0100 Subject: [PATCH 13/30] Fix renamed function call --- plugins/calendar/lib/calendar_itip.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/calendar/lib/calendar_itip.php b/plugins/calendar/lib/calendar_itip.php index 8b1a74b6..6507b513 100644 --- a/plugins/calendar/lib/calendar_itip.php +++ b/plugins/calendar/lib/calendar_itip.php @@ -96,8 +96,8 @@ class calendar_itip } $message->headers($headers, true); - $message->setTXTBody(rcube_message::format_flowed($mailbody, 79)); - + $message->setTXTBody(rcube_mime::format_flowed($mailbody, 79)); + // finally send the message return rcmail_deliver_message($message, $headers['X-Sender'], $mailto, $smtp_error); } From 054b3902b2c6cb6a236b9d339c73f845eddf5341 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Fri, 27 Jan 2012 18:47:37 +0100 Subject: [PATCH 14/30] Save event in user's calendar when accepting it via web link (#560) --- plugins/calendar/calendar.php | 39 +++++++++++++++++-- plugins/calendar/calendar_ui.js | 2 +- plugins/calendar/skins/larry/calendar.css | 10 ++--- .../skins/larry/templates/itipattend.html | 4 +- 4 files changed, 42 insertions(+), 13 deletions(-) diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index 57da4032..b7b42807 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -238,6 +238,26 @@ class calendar extends rcube_plugin return $this->ical; } + /** + * + */ + public function get_default_calendar($writeable = false) + { + $cal_id = $this->rc->config->get('calendar_default_calendar'); + $calendars = $this->driver->list_calendars(); + $calendar = $calendars[$cal_id] ? $calendars[$cal_id] : null; + if (!$calendar || ($writeable && $calendar['readonly'])) { + foreach ($calendars as $cal) { + if (!$writeable || !$cal['readonly']) { + $calendar = $cal; + break; + } + } + } + + return $calendar; + } + /** * Render the main calendar view from skin template @@ -1944,13 +1964,26 @@ class calendar extends rcube_plugin break; } } - + // send itip reply to organizer if ($status && $itip->update_invitation($invitation, $invitation['attendee'], strtoupper($status))) { $this->invitestatus = html::div('rsvp-status ' . strtolower($status), $this->gettext('youhave'.strtolower($status))); } else $this->rc->output->command('display_message', $this->gettext('errorsaving'), 'error', -1); + + // if user is logged in... + if ($this->rc->user->ID) { + $this->load_driver(); + $invitation = $itip->get_invitation($token); + + // save the event to his/her default calendar if not yet present + if (!$this->driver->get_event($this->event) && ($calendar = $this->get_default_calendar())) { + $invitation['event']['calendar'] = $calendar['id']; + if ($this->driver->new_event($invitation['event'])) + $this->rc->output->command('display_message', $this->gettext(array('name' => 'importedsuccessfully', 'vars' => array('calendar' => $calendar['name']))), 'confirmation'); + } + } } $this->register_handler('plugin.event_inviteform', array($this, 'itip_event_inviteform')); @@ -1971,10 +2004,10 @@ class calendar extends rcube_plugin /** * */ - public function itip_event_inviteform($p) + public function itip_event_inviteform($attrib) { $hidden = new html_hiddenfield(array('name' => "_t", 'value' => $this->token)); - return html::tag('form', array('action' => $this->rc->url(array('task' => 'calendar', 'action' => 'attend')), 'method' => 'post', 'noclose' => true)) . $hidden->show(); + return html::tag('form', array('action' => $this->rc->url(array('task' => 'calendar', 'action' => 'attend')), 'method' => 'post', 'noclose' => true) + $attrib) . $hidden->show(); } /** diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js index 2e50d43e..3b0c5c86 100644 --- a/plugins/calendar/calendar_ui.js +++ b/plugins/calendar/calendar_ui.js @@ -2208,7 +2208,7 @@ function rcube_calendar_ui(settings) var id = $(this).data('id'); rcmail.select_folder(id, 'rcmlical'); rcmail.enable_command('calendar-edit', true); - rcmail.enable_command('calendar-remove', 'events-import', 'calendar-showurl', !me.calendars[id].readonly); + rcmail.enable_command('calendar-remove', 'events-import', 'calendar-showurl', true); me.selected_calendar = id; }) .dblclick(function(){ me.calendar_edit_dialog(me.calendars[me.selected_calendar]); }) diff --git a/plugins/calendar/skins/larry/calendar.css b/plugins/calendar/skins/larry/calendar.css index cd39b3d5..df11467e 100644 --- a/plugins/calendar/skins/larry/calendar.css +++ b/plugins/calendar/skins/larry/calendar.css @@ -534,8 +534,8 @@ td.topalign { #edit-attendees-notify { margin: 0.3em 0; padding: 0.5em; - background-color: #F7FDCB; - border: 1px solid #C2D071; + border: 1px solid #ffdf0e; + background-color: #fef893; } #edit-attendees-table { @@ -1192,11 +1192,7 @@ div.calendar-invitebox .rsvp-status.tentative { width: 40em; margin: 80px auto; padding: 10px 10px 10px 90px; - border: 1px solid #ccc; - box-shadow: 1px 1px 24px #ccc; - -moz-box-shadow: 1px 1px 18px #ccc; - -webkit-box-shadow: #ccc 1px 1px 18px; - background: url(images/invitation.png) 10px 10px no-repeat #fbfbfb; + background: url(images/invitation.png) 10px 10px no-repeat #fff; } .calendaritipattend .calendar-invitebox { diff --git a/plugins/calendar/skins/larry/templates/itipattend.html b/plugins/calendar/skins/larry/templates/itipattend.html index e1c7cc7e..bfbb08f5 100644 --- a/plugins/calendar/skins/larry/templates/itipattend.html +++ b/plugins/calendar/skins/larry/templates/itipattend.html @@ -22,14 +22,14 @@
    -
    +
    +
    -
    From dc3a82198b568750e21ca67c2eaae719131d80f5 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Fri, 27 Jan 2012 18:50:37 +0100 Subject: [PATCH 15/30] Require writeable calendar --- plugins/calendar/calendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index b7b42807..7eb9dee4 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -1978,7 +1978,7 @@ class calendar extends rcube_plugin $invitation = $itip->get_invitation($token); // save the event to his/her default calendar if not yet present - if (!$this->driver->get_event($this->event) && ($calendar = $this->get_default_calendar())) { + if (!$this->driver->get_event($this->event) && ($calendar = $this->get_default_calendar(true))) { $invitation['event']['calendar'] = $calendar['id']; if ($this->driver->new_event($invitation['event'])) $this->rc->output->command('display_message', $this->gettext(array('name' => 'importedsuccessfully', 'vars' => array('calendar' => $calendar['name']))), 'confirmation'); From d20550bb05eb76da0282bf6d84d476635e7bf375 Mon Sep 17 00:00:00 2001 From: Christoph Wickert Date: Fri, 27 Jan 2012 23:29:19 +0100 Subject: [PATCH 16/30] Complete German and Swiss translations --- plugins/kolab_auth/localization/de_CH.inc | 5 +++ plugins/kolab_auth/localization/de_DE.inc | 5 +++ plugins/kolab_folders/localization/de_CH.inc | 24 +++++++++++++++ plugins/kolab_folders/localization/de_DE.inc | 24 +++++++++++++++ plugins/kolab_zpush/localization/de_CH.inc | 12 ++++---- plugins/kolab_zpush/localization/de_DE.inc | 32 ++++++++++++++++++++ 6 files changed, 96 insertions(+), 6 deletions(-) create mode 100644 plugins/kolab_auth/localization/de_CH.inc create mode 100644 plugins/kolab_auth/localization/de_DE.inc create mode 100644 plugins/kolab_folders/localization/de_CH.inc create mode 100644 plugins/kolab_folders/localization/de_DE.inc create mode 100644 plugins/kolab_zpush/localization/de_DE.inc diff --git a/plugins/kolab_auth/localization/de_CH.inc b/plugins/kolab_auth/localization/de_CH.inc new file mode 100644 index 00000000..9cdad33a --- /dev/null +++ b/plugins/kolab_auth/localization/de_CH.inc @@ -0,0 +1,5 @@ + diff --git a/plugins/kolab_auth/localization/de_DE.inc b/plugins/kolab_auth/localization/de_DE.inc new file mode 100644 index 00000000..9cdad33a --- /dev/null +++ b/plugins/kolab_auth/localization/de_DE.inc @@ -0,0 +1,5 @@ + diff --git a/plugins/kolab_folders/localization/de_CH.inc b/plugins/kolab_folders/localization/de_CH.inc new file mode 100644 index 00000000..f9f6e169 --- /dev/null +++ b/plugins/kolab_folders/localization/de_CH.inc @@ -0,0 +1,24 @@ + diff --git a/plugins/kolab_folders/localization/de_DE.inc b/plugins/kolab_folders/localization/de_DE.inc new file mode 100644 index 00000000..f9f6e169 --- /dev/null +++ b/plugins/kolab_folders/localization/de_DE.inc @@ -0,0 +1,24 @@ + diff --git a/plugins/kolab_zpush/localization/de_CH.inc b/plugins/kolab_zpush/localization/de_CH.inc index 2f92044d..f0abdbf5 100644 --- a/plugins/kolab_zpush/localization/de_CH.inc +++ b/plugins/kolab_zpush/localization/de_CH.inc @@ -6,21 +6,21 @@ $labels['devices'] = 'Geräte'; $labels['devicealias'] = 'Gerätename'; $labels['syncmode'] = 'Modus'; $labels['modeauto'] = 'Automatisch'; -$labels['modeflat'] = 'Forciere flache Struktur'; -$labels['modefolder'] = 'Forciere Ordnerstruktur'; +$labels['modeflat'] = 'Flache Struktur erzwingen'; +$labels['modefolder'] = 'Ordnerstruktur erzwingen'; $labels['synchronize'] = 'Synchronisieren'; $labels['withalarms'] = 'Mit Erinnerungen'; $labels['syncsettings'] = 'Synchronisationseinstellungen'; $labels['deviceconfig'] = 'Gerätekonfiguration'; $labels['folderstosync'] = 'Order zum Synchronisieren'; $labels['mail'] = 'E-Mail'; -$labels['contact'] = 'Adressbücher'; -$labels['event'] = 'Kalendar'; +$labels['contact'] = 'Kontakte'; +$labels['event'] = 'Kalender'; $labels['task'] = 'Aufgaben'; $labels['note'] = 'Notizen'; $labels['deletedevice'] = 'Gerät löschen'; $labels['imageformat'] = 'Bildformat'; -$labels['laxpiclabel'] = 'Erlaube PNG- und GIF-Bilder'; +$labels['laxpiclabel'] = 'PNG- und GIF-Bilder erlauben'; $labels['introtext'] = 'Wählen Sie das zu konfigurierende Gerät aus'; $labels['nodevices'] = 'Es sind noch keine Geräte registriert.

    Um ein neues Gerät anzumelden, verbinden Sie dieses zuerst mit dem Server. Eine Anleitung dazu finden Sie im Wiki. Anschliessend laden Sie diese Seite neu und das Gerät wird hier aufgelistet.'; $labels['savingdata'] = 'Daten werden gespeichert...'; @@ -29,4 +29,4 @@ $labels['notsupported'] = 'Ihr Server unterstützt keine Activesync-Konfiguratio $labels['devicedeleteconfirm'] = 'Wollen Sie wirklich alle Einstellungen für dieses Gerät löschen?'; $labels['successfullydeleted'] = 'Die Geräteinstellungen wurden erfolgreich gelöscht'; -?> \ No newline at end of file +?> diff --git a/plugins/kolab_zpush/localization/de_DE.inc b/plugins/kolab_zpush/localization/de_DE.inc new file mode 100644 index 00000000..f0abdbf5 --- /dev/null +++ b/plugins/kolab_zpush/localization/de_DE.inc @@ -0,0 +1,32 @@ +
    Um ein neues Gerät anzumelden, verbinden Sie dieses zuerst mit dem Server. Eine Anleitung dazu finden Sie im Wiki. Anschliessend laden Sie diese Seite neu und das Gerät wird hier aufgelistet.'; +$labels['savingdata'] = 'Daten werden gespeichert...'; +$labels['savingerror'] = 'Fehler beim Speichern'; +$labels['notsupported'] = 'Ihr Server unterstützt keine Activesync-Konfiguration'; +$labels['devicedeleteconfirm'] = 'Wollen Sie wirklich alle Einstellungen für dieses Gerät löschen?'; +$labels['successfullydeleted'] = 'Die Geräteinstellungen wurden erfolgreich gelöscht'; + +?> From 316e4278a36404e97891692965f525176ba6f940 Mon Sep 17 00:00:00 2001 From: Christoph Wickert Date: Tue, 31 Jan 2012 12:02:47 +0100 Subject: [PATCH 17/30] Exchange folders for junkmail and wastebasket so the comments match --- plugins/kolab_folders/config.inc.php.dist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/kolab_folders/config.inc.php.dist b/plugins/kolab_folders/config.inc.php.dist index d907a98f..e3936849 100644 --- a/plugins/kolab_folders/config.inc.php.dist +++ b/plugins/kolab_folders/config.inc.php.dist @@ -26,9 +26,9 @@ $rcmail_config['kolab_folders_mail_drafts'] = ''; // Sent folder $rcmail_config['kolab_folders_mail_sentitems'] = ''; // Trash folder -$rcmail_config['kolab_folders_mail_junkemail'] = ''; +$rcmail_config['kolab_folders_mail_wastebasket'] = ''; // Others folders $rcmail_config['kolab_folders_mail_outbox'] = ''; -$rcmail_config['kolab_folders_mail_wastebasket'] = ''; +$rcmail_config['kolab_folders_mail_junkemail'] = ''; ?> From b5a44da343057cdf461c69c35e53d095af54d15c Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 8 Feb 2012 15:09:55 +0100 Subject: [PATCH 18/30] Respect new configurable sort order for contacts --- .../lib/rcube_kolab_contacts.php | 35 +++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php index 2ffc7407..531eec70 100644 --- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php +++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php @@ -1017,32 +1017,31 @@ class rcube_kolab_contacts extends rcube_addressbook */ private function _sort_contacts_comp($a, $b) { - $a_name = $a['name']; - $b_name = $b['name']; + $a_value = $a[$this->sort_col]; + $b_value = $b[$this->sort_col]; - if (!$a_name) { - $a_name = join(' ', array_filter(array($a['prefix'], $a['firstname'], - $a['middlename'], $a['surname'], $a['suffix']))); - if (!$a_name) { - $a_name = is_array($a['email']) ? $a['email'][0] : $a['email']; - } + if (!$a_value && $this->sort_col == 'name') { + $a_value = join(' ', array_filter(array($a['firstname'], $a['middlename'], $a['surname']))); } - if (!$b_name) { - $b_name = join(' ', array_filter(array($b['prefix'], $b['firstname'], - $b['middlename'], $b['surname'], $b['suffix']))); - if (!$b_name) { - $b_name = is_array($b['email']) ? $b['email'][0] : $b['email']; - } + if (!$a_value) { + $a_value = is_array($a['email']) ? $a['email'][0] : $a['email']; } - // return strcasecmp($a_name, $b_name); + if (!$b_value && $this->sort_col == 'name') { + $b_value = join(' ', array_filter(array($b['firstname'], $b['middlename'], $b['surname']))); + } + if (!$b_value) { + $b_value = is_array($b['email']) ? $b['email'][0] : $b['email']; + } + + // return strcasecmp($a_value, $b_value); // make sorting unicode-safe and locale-dependent - if ($a_name == $b_name) + if ($a_value == $b_value) return 0; - $arr = array($a_name, $b_name); + $arr = array($a_value, $b_value); sort($arr, SORT_LOCALE_STRING); - return $a_name == $arr[0] ? -1 : 1; + return $a_value == $arr[0] ? -1 : 1; } /** From 9374ec4e77dd781910134f173bfcd1c7f4bb7615 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 8 Feb 2012 15:12:11 +0100 Subject: [PATCH 19/30] More work on Larry skin adaptions for calendar --- plugins/calendar/calendar_ui.js | 2 +- plugins/calendar/skins/default/calendar.css | 6 +- plugins/calendar/skins/default/print.css | 4 + .../skins/default/templates/calendar.html | 18 +- plugins/calendar/skins/larry/calendar.css | 175 +++++++++++++++--- .../skins/larry/templates/calendar.html | 18 +- 6 files changed, 172 insertions(+), 51 deletions(-) diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js index 3b0c5c86..a2aac7cf 100644 --- a/plugins/calendar/calendar_ui.js +++ b/plugins/calendar/calendar_ui.js @@ -2158,7 +2158,7 @@ function rcube_calendar_ui(settings) // adjust calendar view size this.view_resize = function() { - var footer = fc.fullCalendar('getView').name == 'table' ? $('#agendaoptions').height() + 2 : 0; + var footer = fc.fullCalendar('getView').name == 'table' ? $('#agendaoptions').outerHeight() : 0; fc.fullCalendar('option', 'height', $('#calendar').height() - footer); }; diff --git a/plugins/calendar/skins/default/calendar.css b/plugins/calendar/skins/default/calendar.css index 23e27507..21dcb1b9 100644 --- a/plugins/calendar/skins/default/calendar.css +++ b/plugins/calendar/skins/default/calendar.css @@ -22,7 +22,7 @@ body.calendarmain { bottom: 10px; } -#sidebar { +#calendarsidebar { position: absolute; top: 37px; left: 10px; @@ -58,7 +58,7 @@ body.calendarmain { cursor: pointer; } -#sidebartoggle { +#calendarsidebartoggle { position: absolute; left: 244px; width: 8px; @@ -72,7 +72,7 @@ div.sidebarclosed { background-position: -8px 48% !important; } -#sidebartoggle:hover { +#calendarsidebartoggle:hover { background-color: #ddd; } diff --git a/plugins/calendar/skins/default/print.css b/plugins/calendar/skins/default/print.css index eeb4fadb..3c9bd716 100644 --- a/plugins/calendar/skins/default/print.css +++ b/plugins/calendar/skins/default/print.css @@ -20,6 +20,10 @@ body, td, th, div, p, h3, select, input, textarea { overflow: visible; } +#calendar .fc-header-right { + padding-right: 0; +} + #printconfig { position: fixed; top: 0; diff --git a/plugins/calendar/skins/default/templates/calendar.html b/plugins/calendar/skins/default/templates/calendar.html index e6e12711..a22056dd 100644 --- a/plugins/calendar/skins/default/templates/calendar.html +++ b/plugins/calendar/skins/default/templates/calendar.html @@ -12,7 +12,7 @@
    - -
    +
    @@ -175,24 +175,24 @@ rcmail_ui.popups.calendaroptions = { id:'calendaroptionsmenu', above:1, obj:$('# $(document).ready(function(e){ // initialize sidebar toggle - $('#sidebartoggle').click(function() { + $('#calendarsidebartoggle').click(function() { var width = $(this).data('sidebarwidth'); var offset = $(this).data('offset'); - var $sidebar = $('#sidebar'), time = 250; + var $sidebar = $('#calendarsidebar'), time = 250; if ($sidebar.is(':visible')) { - $sidebar.animate({ left:'-'+(width+10)+'px' }, time, function(){ $('#sidebar').hide(); }); - $(this).animate({ left:'8px'}, time, function(){ $('#sidebartoggle').addClass('sidebarclosed') }); + $sidebar.animate({ left:'-'+(width+10)+'px' }, time, function(){ $('#calendarsidebar').hide(); }); + $(this).animate({ left:'8px'}, time, function(){ $('#calendarsidebartoggle').addClass('sidebarclosed') }); $('#calendar').animate({ left:'20px'}, time, function(){ $(this).fullCalendar('render'); }); } else { $sidebar.show().animate({ left:'10px' }, time); - $(this).animate({ left:offset+'px'}, time, function(){ $('#sidebartoggle').removeClass('sidebarclosed'); }); + $(this).animate({ left:offset+'px'}, time, function(){ $('#calendarsidebartoggle').removeClass('sidebarclosed'); }); $('#calendar').animate({ left:(width+16)+'px'}, time, function(){ $(this).fullCalendar('render'); }); } }) - .data('offset', $('#sidebartoggle').position().left) - .data('sidebarwidth', $('#sidebar').width() + $('#sidebar').position().left); + .data('offset', $('#calendarsidebartoggle').position().left) + .data('sidebarwidth', $('#calendarsidebar').width() + $('#calendarsidebar').position().left); }); diff --git a/plugins/calendar/skins/larry/calendar.css b/plugins/calendar/skins/larry/calendar.css index df11467e..b55baa74 100644 --- a/plugins/calendar/skins/larry/calendar.css +++ b/plugins/calendar/skins/larry/calendar.css @@ -20,7 +20,7 @@ body.calendarmain #mainscreen { left: 0; } -#sidebar { +#calendarsidebar { position: absolute; top: 0; left: 10px; @@ -31,6 +31,7 @@ body.calendarmain #mainscreen { #datepicker { margin-top: 12px; width: 100%; + min-height: 190px; } #datepicker .ui-datepicker { @@ -84,7 +85,7 @@ body.calendarmain #mainscreen { top: 4px; } -#sidebartoggle { +#calendarsidebartoggle { position: absolute; left: 254px; width: 8px; @@ -98,7 +99,7 @@ div.sidebarclosed { background-position: -8px 48% !important; } -#sidebartoggle:hover { +#calendarsidebartoggle:hover { background-color: #ddd; } @@ -111,6 +112,11 @@ div.sidebarclosed { padding-bottom: 28px; } +.calendarmain #message.statusbar { + border: 1px solid #c3c3c3; + border-bottom-color: #ababab; +} + #print { width: 680px; } @@ -923,19 +929,20 @@ span.spacer { #agendaoptions { position: absolute; - top: 37; + bottom: 28px; left: 0; right: 0; height: auto; z-index: 200; - border: 1px solid #ccc; - padding: 2px 5px 1px; - font-size: 90%; + background: #d6eaf3; + border: 1px solid #c3c3c3; + border-top-color: #ddd; + padding: 4px 5px; } #agendaoptions label { - color: #444; - text-shadow: 1px 1px #eee; + color: #69939e; + text-shadow: 1px 1px #f2f2f2; padding-right: 0.5em; } @@ -974,15 +981,97 @@ span.spacer { .fc-content { position: absolute !important; - top: 37px; + top: 38px; left: 0; right: 0; bottom: 28px; background: #fff; } +#fish-eye-view .fc-content { + top: 2px; + bottom: 2px; +} + +.calendarmain .fc-button, +.calendarmain .fc-button.fc-state-hover, +.calendarmain .fc-button.fc-state-down { + border: 0; + background: none; +} + +.calendarmain .fc-state-default .fc-button-inner, +.calendarmain .fc-state-hover .fc-button-inner { + margin: 0 0 0 0; + color: #555; + text-shadow: 0px 1px 1px #fff; + border: 1px solid #a2a2a2; + background: #f7f7f7; + background: -moz-linear-gradient(top, #f9f9f9 0%, #e6e6e6 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9f9f9), color-stop(100%,#e6e6e6)); + background: -o-linear-gradient(top, #f9f9f9 0%, #e6e6e6 100%); + background: -ms-linear-gradient(top, #f9f9f9 0%, #e6e6e6 100%); + background: linear-gradient(top, #f9f9f9 0%, #e6e6e6 100%); + box-shadow: 0 1px 1px 0 rgba(140, 140, 140, 0.3); + -o-box-shadow: 0 1px 1px 0 rgba(140, 140, 140, 0.3); + -webkit-box-shadow: 0 1px 1px 0 rgba(140, 140, 140, 0.3); + -moz-box-shadow: 0 1px 1px 0 rgba(140, 140, 140, 0.3); + text-decoration: none; +} + +.calendarmain .fc-state-disabled .fc-button-inner { + color: #bbb; +} + +.calendarmain .fc-header .fc-button { + margin-left: -1px; + margin-right: 0; +} + +.calendarmain .fc-state-down .fc-button-inner { + margin: 0; + border: 1px solid #a2a2a2; + background: #e6e6e6; + background: -moz-linear-gradient(top, #e6e6e6 0%, #f9f9f9 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e6e6e6), color-stop(100%,#f9f9f9)); + background: -o-linear-gradient(top, #e6e6e6 0%, #f9f9f9 100%); + background: -ms-linear-gradient(top, #e6e6e6 0%, #f9f9f9 100%); + background: linear-gradient(top, #e6e6e6 0%, #f9f9f9 100%); +} + +.calendarmain .fc-state-active .fc-button-inner { + color: #333; + background: #bababa; + background: -moz-linear-gradient(top, #bababa 0%, #d8d8d8 100%); + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#bababa), color-stop(100%,#d8d8d8)); + background: -o-linear-gradient(top, #bababa 0%, #d8d8d8 100%); + background: -ms-linear-gradient(top, #bababa 0%, #d8d8d8 100%); + background: linear-gradient(top, #bababa 0%, #d8d8d8 100%); +} + +.calendarmain .fc-corner-left .fc-button-inner, +.calendarmain .fc-corner-left .fc-button-content { + border-top-left-radius: 4px; + border-bottom-left-radius: 4px; +} + +.calendarmain .fc-corner-right .fc-button-inner, +.calendarmain .fc-corner-right .fc-button-content { + border-top-right-radius: 4px; + border-bottom-right-radius: 4px; +} + +.calendarmain .fc-state-default .fc-button-effect { + display: none; +} + +.calendarmain .fc-button-content { + height: 2.2em; + line-height: 2.2em; +} + #calendar .fc-header-right { - padding-right: 280px; + padding-right: 250px; } .fc-event { @@ -1069,33 +1158,61 @@ div.fc-event-location { .fc-list-section .fc-event { cursor: pointer; } -/* -.fc-view-list div.fc-list-header, -.fc-view-table td.fc-list-header, + +/*.calendarmain .fc-view-list div.fc-list-header,*/ +.calendarmain .fc-view-table td.fc-list-header, #edit-attendees-table thead td { - padding: 3px; - background: #dddddd; - background-image: -moz-linear-gradient(center top, #f4f4f4, #d2d2d2); - background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.00, #f4f4f4), color-stop(1.00, #d2d2d2)); - filter: progid:DXImageTransform.Microsoft.gradient(enabled='true', startColorstr=#f4f4f4, endColorstr=#d2d2d2, GradientType=0); + color: #69939e; + font-size: 11px; font-weight: bold; - color: #333; -} -*/ -.fc-view-list .fc-event-skin .fc-event-content { - background: #F6F6F6; - padding: 2px; + background: #d6eaf3; + background: -moz-linear-gradient(left, #e3f2f6 0, #d6eaf3 14px, #d6eaf3 100%); + background: -webkit-gradient(linear, left top, right top, color-stop(0,#e3f2f6), color-stop(8%,#d6eaf3), color-stop(100%,#d6eaf3)); + background: -o-linear-gradient(left, #e3f2f6 0, #d6eaf3 14px, #d6eaf3 100%); + background: -ms-linear-gradient(left, #e3f2f6 0, #d6eaf3 14px ,#d6eaf3 100%); + background: linear-gradient(left, #e3f2f6 0, #d6eaf3 14px, #d6eaf3 100%); + border: 0; + padding: 7px; } -.fc-view-list .fc-event-skin .fc-event-title, -.fc-view-list .fc-event-skin .fc-event-location { - color: #333; +.calendarmain .fc-view-table tr.fc-event td { + border-color: #ddd; + padding: 4px 7px; } -.fc-view-table col.fc-event-location { +.calendarmain .fc-view-table col.fc-event-location { width: 20%; } +.calendarmain .fc-view-table tr.fc-event td.fc-event-handle { + padding: 5px 10px 2px 7px; + width: 12px; +} + +.calendarmain .fc-view-table .fc-event-handle .fc-event-skin { + margin: 0; + padding: 0; + display: inline-block; + width: 10px; + height: 10px; + font-size: 6px; + border-radius: 8px; +} + +.calendarmain .fc-view-table .fc-event-handle .fc-event-inner { + display: inline-block; + width: 10px; + height: 10px; + padding: 0; + font-size: 10px; + border-radius: 8px; + border: 1px solid rgba(0, 0, 0, 0.4); + -webkit-box-shadow: inset 0px 0 1px 1px rgba(0, 0, 0, 0.3); + -moz-box-shadow: inset 0px 0 1px 1px rgba(0, 0, 0, 0.3); + box-shadow: inset 0px 0 1px 1px rgba(0, 0, 0, 0.3); +} + + .fc-listappend { text-align: center; margin: 1em 0; diff --git a/plugins/calendar/skins/larry/templates/calendar.html b/plugins/calendar/skins/larry/templates/calendar.html index 9fd6116f..c072e352 100644 --- a/plugins/calendar/skins/larry/templates/calendar.html +++ b/plugins/calendar/skins/larry/templates/calendar.html @@ -10,7 +10,7 @@
    - -
    +
    @@ -176,24 +176,24 @@ $(document).ready(function(e){ UI.init(); // initialize sidebar toggle - $('#sidebartoggle').click(function() { + $('#calendarsidebartoggle').click(function() { var width = $(this).data('sidebarwidth'); var offset = $(this).data('offset'); - var $sidebar = $('#sidebar'), time = 250; + var $sidebar = $('#calendarsidebar'), time = 250; if ($sidebar.is(':visible')) { - $sidebar.animate({ left:'-'+(width+10)+'px' }, time, function(){ $('#sidebar').hide(); }); - $(this).animate({ left:'8px'}, time, function(){ $('#sidebartoggle').addClass('sidebarclosed') }); + $sidebar.animate({ left:'-'+(width+10)+'px' }, time, function(){ $('#calendarsidebar').hide(); }); + $(this).animate({ left:'8px'}, time, function(){ $('#calendarsidebartoggle').addClass('sidebarclosed') }); $('#calendar').animate({ left:'20px'}, time, function(){ $(this).fullCalendar('render'); }); } else { $sidebar.show().animate({ left:'10px' }, time); - $(this).animate({ left:offset+'px'}, time, function(){ $('#sidebartoggle').removeClass('sidebarclosed'); }); + $(this).animate({ left:offset+'px'}, time, function(){ $('#calendarsidebartoggle').removeClass('sidebarclosed'); }); $('#calendar').animate({ left:(width+16)+'px'}, time, function(){ $(this).fullCalendar('render'); }); } }) - .data('offset', $('#sidebartoggle').position().left) - .data('sidebarwidth', $('#sidebar').width() + $('#sidebar').position().left); + .data('offset', $('#calendarsidebartoggle').position().left) + .data('sidebarwidth', $('#calendarsidebar').width() + $('#calendarsidebar').position().left); }); From b00c0dbc25490413a260494bce4587a10ddf1e0c Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 8 Feb 2012 20:30:38 +0100 Subject: [PATCH 20/30] Fix link color --- plugins/calendar/skins/larry/calendar.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/calendar/skins/larry/calendar.css b/plugins/calendar/skins/larry/calendar.css index 3b819bd9..ab9ea521 100644 --- a/plugins/calendar/skins/larry/calendar.css +++ b/plugins/calendar/skins/larry/calendar.css @@ -276,7 +276,7 @@ div.uidialog { a.morelink { font-size: 90%; - color: #C33; + color: #0069a6; text-decoration: none; } From 145258abf79c09178742ce4a10f1dac44cf5f3b9 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Sat, 11 Feb 2012 14:32:10 +0100 Subject: [PATCH 21/30] Better fix for #577 --- .../lib/rcube_kolab_contacts.php | 34 ++++++++++++------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php index 531eec70..f028f522 100644 --- a/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php +++ b/plugins/kolab_addressbook/lib/rcube_kolab_contacts.php @@ -1017,22 +1017,30 @@ class rcube_kolab_contacts extends rcube_addressbook */ private function _sort_contacts_comp($a, $b) { - $a_value = $a[$this->sort_col]; - $b_value = $b[$this->sort_col]; + $a_value = $b_value = ''; - if (!$a_value && $this->sort_col == 'name') { - $a_value = join(' ', array_filter(array($a['firstname'], $a['middlename'], $a['surname']))); - } - if (!$a_value) { - $a_value = is_array($a['email']) ? $a['email'][0] : $a['email']; + switch ($this->sort_col) { + case 'name': + $a_value = $a['name'] . $a['prefix']; + $b_value = $b['name'] . $b['prefix']; + case 'firstname': + $a_value .= $a['firstname'] . $a['middlename'] . $a['surname']; + $b_value .= $b['firstname'] . $b['middlename'] . $b['surname']; + break; + + case 'surname': + $a_value = $a['surname'] . $a['firstname'] . $a['middlename']; + $b_value = $b['surname'] . $b['firstname'] . $b['middlename']; + break; + + default: + $a_value = $a[$this->sort_col]; + $b_value = $b[$this->sort_col]; + break; } - if (!$b_value && $this->sort_col == 'name') { - $b_value = join(' ', array_filter(array($b['firstname'], $b['middlename'], $b['surname']))); - } - if (!$b_value) { - $b_value = is_array($b['email']) ? $b['email'][0] : $b['email']; - } + $a_value .= is_array($a['email']) ? $a['email'][0] : $a['email']; + $b_value .= is_array($b['email']) ? $b['email'][0] : $b['email']; // return strcasecmp($a_value, $b_value); // make sorting unicode-safe and locale-dependent From 95c6c727fc16b2e2e86a4d978246aec086cebdf5 Mon Sep 17 00:00:00 2001 From: Thomas B Date: Sat, 25 Feb 2012 15:03:15 +0100 Subject: [PATCH 22/30] Switched to official fullcalendar fork at github.com/roundcube/fullcalendar --- plugins/calendar/lib/js/fullcalendar.js | 50 ++++++++++++------- .../calendar/skins/default/fullcalendar.css | 10 ++-- 2 files changed, 37 insertions(+), 23 deletions(-) diff --git a/plugins/calendar/lib/js/fullcalendar.js b/plugins/calendar/lib/js/fullcalendar.js index b04c86ef..bffc0e7a 100644 --- a/plugins/calendar/lib/js/fullcalendar.js +++ b/plugins/calendar/lib/js/fullcalendar.js @@ -1,17 +1,18 @@ /** * @preserve - * FullCalendar v1.5.2 - * http://arshaw.com/fullcalendar/ + * FullCalendar v1.5.3-rcube-0.7.1 + * https://github.com/roundcube/fullcalendar * * Use fullcalendar.css for basic styling. * For event drag & drop, requires jQuery UI draggable. * For event resizing, requires jQuery UI resizable. * * Copyright (c) 2011 Adam Shaw + * Copyright (c) 2011, Kolab Systems AG * Dual licensed under the MIT and GPL licenses, located in * MIT-LICENSE.txt and GPL-LICENSE.txt respectively. * - * Date: Sun Aug 21 22:06:09 2011 -0700 + * Date: Mon Feb 13 23:00:46 2012 +0100 * */ @@ -57,7 +58,7 @@ var defaults = { week: 'ddd M/d', day: 'dddd M/d', list: 'dddd, MMM d, yyyy', - table: 'dddd, MMM d, yyyy' + table: 'MMM d, yyyy' }, timeFormat: { // for event elements '': 'h(:mm)t' // default @@ -136,7 +137,7 @@ var rtlDefaults = { -var fc = $.fullCalendar = { version: "1.5.2" }; +var fc = $.fullCalendar = { version: "1.5.3-rcube-0.7.1" }; var fcViews = fc.views = {}; @@ -662,8 +663,7 @@ function Calendar(element, options, eventSources) { } else if (name.indexOf('list') == 0 || name == 'tableCols') { options[name] = value; currentView.start = null; // force re-render - } - else if (name == 'maxHeight') { + } else if (name == 'maxHeight') { options[name] = value; } } @@ -933,6 +933,7 @@ function EventManager(options, _sources) { function fetchEvents(start, end, src) { rangeStart = start; rangeEnd = end; + // partially clear cache if refreshing one source only (issue #1061) cache = typeof src != 'undefined' ? $.grep(cache, function(e) { return !isSourcesEqual(e.source, src); }) : []; var fetchID = ++currentFetchID; var len = sources.length; @@ -942,6 +943,7 @@ function EventManager(options, _sources) { fetchEventSource(sources[i], fetchID); } } + function fetchEventSource(source, fetchID) { @@ -1127,7 +1129,7 @@ function EventManager(options, _sources) { event.source = stickySource; } } - + // always push event to cache (issue #1112:) cache.push(event); reportEvents(cache); } @@ -1616,7 +1618,7 @@ var dateFormatters = { return 'th'; } return ['st', 'nd', 'rd'][date%10-1] || 'th'; - }, + } , W : function(d) { return iso8601Week(d); } }; @@ -3702,6 +3704,7 @@ function AgendaEventRenderer() { var timeLineInterval; + /* Rendering ----------------------------------------------------------------------------*/ @@ -4011,7 +4014,7 @@ function AgendaEventRenderer() { } - // draw a horizontal line across the agenda view indicating the current time (#143) + // draw a horizontal line indicating the current time (#143) function setTimeIndicator() { var container = getBodyContent(); @@ -4941,7 +4944,7 @@ function DayEventRenderer() { } seg.outerHeight = element[0].offsetHeight + val; } - else + else // always set a value (issue #1108 ) seg.outerHeight = 0; } } @@ -5296,6 +5299,7 @@ function HoverListener(coordinateGrid) { function mouse(ev) { + _fixUIEvent(ev); // see below var newCell = coordinateGrid.cell(ev.pageX, ev.pageY); if (!newCell != !cell || newCell && (newCell.row != cell.row || newCell.col != cell.col)) { if (newCell) { @@ -5319,6 +5323,19 @@ function HoverListener(coordinateGrid) { } + + +// this fix was only necessary for jQuery UI 1.8.16 (and jQuery 1.7 or 1.7.1) +// upgrading to jQuery UI 1.8.17 (and using either jQuery 1.7 or 1.7.1) fixed the problem +// but keep this in here for 1.8.16 users +// and maybe remove it down the line + +function _fixUIEvent(event) { // for issue 1168 + if (event.pageX === undefined) { + event.pageX = event.originalEvent.pageX; + event.pageY = event.originalEvent.pageY; + } +} function HorizontalPositionCache(getElement) { var t = this, @@ -5346,7 +5363,6 @@ function HorizontalPositionCache(getElement) { } - /* Additional view: list (by bruederli@kolabsys.com) ---------------------------------------------------------------------------------*/ @@ -5464,7 +5480,7 @@ function ListEventRenderer() { var tm = opt('theme') ? 'ui' : 'fc'; var headerClass = tm + "-widget-header"; var contentClass = tm + "-widget-content"; - var i, j, seg, event, times, s, skinCss, skinCssAttr, classes, segContainer, eventElements; + var i, j, seg, event, times, s, skinCss, skinCssAttr, classes, segContainer, eventElement, eventElements, triggerRes; for (j=0; j < segs.length; j++) { seg = segs[j]; @@ -5669,7 +5685,6 @@ function ListView(element, calendar) { } - /* Additional view: table (by bruederli@kolabsys.com) ---------------------------------------------------------------------------------*/ @@ -5722,7 +5737,7 @@ function TableEventRenderer() { var contentClass = tm + "-widget-content"; var tableCols = opt('tableCols'); var timecol = $.inArray('time', tableCols) >= 0; - var i, j, seg, event, times, s, skinCss, skinCssAttr, skinClasses, rowClasses, segContainer, eventElements; + var i, j, seg, event, times, s, skinCss, skinCssAttr, skinClasses, rowClasses, segContainer, eventElements, eventElement, triggerRes; for (j=0; j < segs.length; j++) { seg = segs[j]; @@ -5900,6 +5915,5 @@ function TableView(element, calendar) { } } - - -})(jQuery); \ No newline at end of file + +})(jQuery); diff --git a/plugins/calendar/skins/default/fullcalendar.css b/plugins/calendar/skins/default/fullcalendar.css index 404e2826..17f1b37b 100644 --- a/plugins/calendar/skins/default/fullcalendar.css +++ b/plugins/calendar/skins/default/fullcalendar.css @@ -1,11 +1,12 @@ /* - * FullCalendar v1.5.2 Stylesheet + * FullCalendar v1.5.3-rcube-0.7.1 Stylesheet * * Copyright (c) 2011 Adam Shaw + * Copyright (c) 2011, Kolab Systems AG * Dual licensed under the MIT and GPL licenses, located in * MIT-LICENSE.txt and GPL-LICENSE.txt respectively. * - * Date: Sun Aug 21 22:06:09 2011 -0700 + * Date: Mon Feb 13 23:00:46 2012 +0100 * */ @@ -477,7 +478,7 @@ table.fc-border-separate { text-decoration: none; cursor: pointer; padding: 1px; -} +} /* Agenda Week View, Agenda Day View ------------------------------------------------------------------------*/ @@ -620,8 +621,7 @@ table.fc-border-separate { .fc-agenda .ui-resizable-resizing { /* TODO: better selector */ _overflow: hidden; } - - + .fc-timeline { position: absolute; width: 100%; From d1fecda9de20afaa96b3657cb3557b83023aaed4 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 29 Feb 2012 13:09:43 +0100 Subject: [PATCH 23/30] Store user's UID in session for use by other plugins (e.g. owncloud) Small code style fixes --- plugins/kolab_auth/kolab_auth.php | 18 +++++++++++++++--- plugins/kolab_auth/package.xml | 6 ++++-- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/plugins/kolab_auth/kolab_auth.php b/plugins/kolab_auth/kolab_auth.php index 07800cda..691f5422 100644 --- a/plugins/kolab_auth/kolab_auth.php +++ b/plugins/kolab_auth/kolab_auth.php @@ -346,6 +346,9 @@ class kolab_auth extends rcube_plugin // Set credentials if ($record) { + // Store UID in session for use by other plugins + $_SESSION['kolab_uid'] = is_array($record['uid']) ? $record['uid'][0] : $record['uid']; + if ($login_attr) $this->data['user_login'] = is_array($record[$login_attr]) ? $record[$login_attr][0] : $record[$login_attr]; if ($alias_attr) @@ -405,8 +408,9 @@ class kolab_auth extends rcube_plugin */ private function init_ldap() { - if ($this->ldap) + if ($this->ldap) { return $this->ldap->ready; + } $rcmail = rcmail::get_instance(); @@ -447,8 +451,9 @@ class kolab_auth extends rcube_plugin $this->ldap->set_filter($filter); $results = $this->ldap->list_records(); - if (count($results->records) == 1) + if (count($results->records) == 1) { return $results->records[0]; + } } /** @@ -480,9 +485,16 @@ class kolab_auth extends rcube_plugin */ class kolab_auth_ldap_backend extends rcube_ldap { + function __construct($p, $debug=false, $mail_domain=null) + { + parent::__construct($p, $debug, $mail_domain); + $this->fieldmap['uid'] = 'uid'; + } + function set_filter($filter) { - if ($filter) + if ($filter) { $this->prop['filter'] = $filter; + } } } diff --git a/plugins/kolab_auth/package.xml b/plugins/kolab_auth/package.xml index 4c9b8ad9..937798d9 100644 --- a/plugins/kolab_auth/package.xml +++ b/plugins/kolab_auth/package.xml @@ -18,9 +18,9 @@ machniak@kolabsys.com yes - 2011-11-01 + 2012-02-29 - 0.1 + 0.2 0.1 @@ -38,6 +38,8 @@ + + From 19619c7bd3e1ab99aae6f9878b18ec13b7c877fa Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 29 Feb 2012 13:17:28 +0100 Subject: [PATCH 24/30] OwnCloud plugin - Initial commit --- plugins/owncloud/LICENSE | 661 ++++++++++++++++++ plugins/owncloud/config.inc.php.dist | 4 + plugins/owncloud/localization/en_US.inc | 6 + plugins/owncloud/localization/pl_PL.inc | 6 + plugins/owncloud/owncloud.php | 89 +++ plugins/owncloud/skins/default/cloud.png | Bin 0 -> 1068 bytes plugins/owncloud/skins/default/owncloud.css | 12 + .../skins/default/templates/owncloud.html | 19 + 8 files changed, 797 insertions(+) create mode 100644 plugins/owncloud/LICENSE create mode 100644 plugins/owncloud/config.inc.php.dist create mode 100644 plugins/owncloud/localization/en_US.inc create mode 100644 plugins/owncloud/localization/pl_PL.inc create mode 100644 plugins/owncloud/owncloud.php create mode 100644 plugins/owncloud/skins/default/cloud.png create mode 100644 plugins/owncloud/skins/default/owncloud.css create mode 100644 plugins/owncloud/skins/default/templates/owncloud.html diff --git a/plugins/owncloud/LICENSE b/plugins/owncloud/LICENSE new file mode 100644 index 00000000..dba13ed2 --- /dev/null +++ b/plugins/owncloud/LICENSE @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/plugins/owncloud/config.inc.php.dist b/plugins/owncloud/config.inc.php.dist new file mode 100644 index 00000000..c9e9d231 --- /dev/null +++ b/plugins/owncloud/config.inc.php.dist @@ -0,0 +1,4 @@ + diff --git a/plugins/owncloud/localization/pl_PL.inc b/plugins/owncloud/localization/pl_PL.inc new file mode 100644 index 00000000..4b84bd46 --- /dev/null +++ b/plugins/owncloud/localization/pl_PL.inc @@ -0,0 +1,6 @@ + diff --git a/plugins/owncloud/owncloud.php b/plugins/owncloud/owncloud.php new file mode 100644 index 00000000..2b05f3fc --- /dev/null +++ b/plugins/owncloud/owncloud.php @@ -0,0 +1,89 @@ + + * @licence GNU AGPL + * + * Configuration (see config.inc.php.dist) + * + */ + +class owncloud extends rcube_plugin +{ + // all task excluding 'login' and 'logout' + public $task = '?(?!login|logout).*'; + // we've got no ajax handlers + public $noajax = true; + // skip frames + public $noframe = true; + + function init() + { + $rcmail = rcmail::get_instance(); + + // requires kolab_auth plugin + if (empty($_SESSION['kolab_uid'])) { + return; + } + + $this->add_texts('localization/', false); + + // register task + $this->register_task('owncloud'); + + // register actions + $this->register_action('index', array($this, 'action')); + $this->register_action('redirect', array($this, 'redirect')); + + // add taskbar button + $this->add_button(array( + 'name' => 'owncloud', + 'class' => 'button-owncloud', + 'label' => 'owncloud.owncloud', + 'href' => './?_task=owncloud', + 'onclick' => sprintf("return %s.command('owncloud')", JS_OBJECT_NAME) + ), 'taskbar'); + + $rcmail->output->add_script( + JS_OBJECT_NAME . ".enable_command('owncloud', true);\n" . + JS_OBJECT_NAME . ".owncloud = function () { location.href = './?_task=owncloud'; }", + 'head'); + + $skin = $rcmail->config->get('skin'); + if (!file_exists($this->home."/skins/$skin/owncloud.css")) { + $skin = 'default'; + } + + // add style for taskbar button (must be here) and Help UI + $this->include_stylesheet("skins/$skin/owncloud.css"); + } + + function action() + { + $rcmail = rcmail::get_instance(); + + $rcmail->output->add_handlers(array('owncloudframe' => array($this, 'frame'))); + $rcmail->output->set_pagetitle($this->gettext('owncloud')); + $rcmail->output->send('owncloud.owncloud'); + } + + function frame() + { + $rcmail = rcmail::get_instance(); + + $this->load_config(); + + $src = $rcmail->config->get('owncloud_url'); + $user = $_SESSION['kolab_uid']; // requires kolab_auth plugin + $pass = $rcmail->decrypt($_SESSION['password']); + + $src = preg_replace('/^(https?:\/\/)/', + '\\1' . urlencode($user) . ':' . urlencode($pass) . '@', $src); + + return ''; + } + +} diff --git a/plugins/owncloud/skins/default/cloud.png b/plugins/owncloud/skins/default/cloud.png new file mode 100644 index 0000000000000000000000000000000000000000..15a288f79ba14ca1849b1f6e1794cdc7ec289f44 GIT binary patch literal 1068 zcmV+{1k?M8P)LIHJFHnTWESEO)}Q2lrG@4D-0n1ZK9z^+=ez+zw2Y9m}1- z)lOg|SGvLI_#0?@qnRs)9ewBQ>eMh#JpAy=cgqLTU<>G&cg z0!+q2szw?LbiH9fuH3OBagPG0M+A&cBHgusA2eE1T#X9Yy^`v};HY@(rS~36?~!^dBIpaZ@<2NaCIp~ zK1|xT^L~VCbaPKP%fZE%2*JQGTyeZDA~OH=p*@Yhz_5@!^ZCU+wW;dfOsRQ^KFx!X z1tsfw-S-}mH9|OO&P|KREC^ + + +<roundcube:object name="pagetitle" /> + + + + + + + + + +
    + +
    + + + From 1e6e9ac5ac37ae5b5892c5ce8961b54f77b5f557 Mon Sep 17 00:00:00 2001 From: Thomas B Date: Tue, 6 Mar 2012 09:52:28 +0100 Subject: [PATCH 25/30] Fix: use the right instance variable --- plugins/kolab_folders/kolab_folders.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/kolab_folders/kolab_folders.php b/plugins/kolab_folders/kolab_folders.php index 044f6364..ab84c24c 100644 --- a/plugins/kolab_folders/kolab_folders.php +++ b/plugins/kolab_folders/kolab_folders.php @@ -408,7 +408,7 @@ class kolab_folders extends rcube_plugin // Code copied from rcube_imap::_list_mailboxes() // Server supports LIST-EXTENDED, we can use selection options // #1486225: Some dovecot versions returns wrong result using LIST-EXTENDED - if (!$this->rc->config->get('imap_force_lsub') && $imap->get_capability('LIST-EXTENDED')) { + if (!$this->rc->config->get('imap_force_lsub') && $storage->get_capability('LIST-EXTENDED')) { // This will also set mailbox options, LSUB doesn't do that $a_folders = $storage->conn->listMailboxes($root, $name, NULL, array('SUBSCRIBED')); From 2948cee6c1a98fdaec0bc0c4f45ef245617bc351 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 8 Mar 2012 19:31:33 +0100 Subject: [PATCH 26/30] - Larry skin for owncloud --- plugins/owncloud/owncloud.php | 11 +++------- plugins/owncloud/skins/larry/cloud.png | Bin 0 -> 1844 bytes plugins/owncloud/skins/larry/owncloud.css | 14 ++++++++++++ .../skins/larry/templates/owncloud.html | 20 ++++++++++++++++++ 4 files changed, 37 insertions(+), 8 deletions(-) create mode 100644 plugins/owncloud/skins/larry/cloud.png create mode 100644 plugins/owncloud/skins/larry/owncloud.css create mode 100644 plugins/owncloud/skins/larry/templates/owncloud.html diff --git a/plugins/owncloud/owncloud.php b/plugins/owncloud/owncloud.php index 2b05f3fc..d847cc3d 100644 --- a/plugins/owncloud/owncloud.php +++ b/plugins/owncloud/owncloud.php @@ -39,18 +39,13 @@ class owncloud extends rcube_plugin // add taskbar button $this->add_button(array( - 'name' => 'owncloud', + 'command' => 'owncloud', 'class' => 'button-owncloud', + 'classsel' => 'button-owncloud button-selected', + 'innerclass' => 'button-inner', 'label' => 'owncloud.owncloud', - 'href' => './?_task=owncloud', - 'onclick' => sprintf("return %s.command('owncloud')", JS_OBJECT_NAME) ), 'taskbar'); - $rcmail->output->add_script( - JS_OBJECT_NAME . ".enable_command('owncloud', true);\n" . - JS_OBJECT_NAME . ".owncloud = function () { location.href = './?_task=owncloud'; }", - 'head'); - $skin = $rcmail->config->get('skin'); if (!file_exists($this->home."/skins/$skin/owncloud.css")) { $skin = 'default'; diff --git a/plugins/owncloud/skins/larry/cloud.png b/plugins/owncloud/skins/larry/cloud.png new file mode 100644 index 0000000000000000000000000000000000000000..7ad3cd96da1b921eea699704547911ffb7f9176a GIT binary patch literal 1844 zcmV-42g~@0P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L02{9W02{9XUK)`c00007bV*G`2iyY) z4l5-b)*$Zy00y*4L_t(Y$K94|R8-d$$A9O}3<0gl3>7qzDzK=_D_V)sRmydvlm)4ZA^}ZBmkeSjBJ%KsqLG0C zL1*sW{cxEP2u?@80`d=-#yU2Y_dP_Tqt@kMfO!hl(U~&AZp( z?gt;9kis3Ay8ERN_+w8^U6%U7%Zp!_`C6@rh-sQ)nx=?|6cip2V34ls_E%=l*6!$# zxoHdPL_})OU63=CRbm)M2;49X5fS;#>x-`pOMZL;5dQGaJzweoI}l!4RxUSh-jssE z!{TdhmOvmNA|fpn@3k>N811J_ly&{OSbS{HDY8hL{1Z zsi}zp{qMsc2(V+<2Q)S|(d28!eex8=M~*S}2V)qTIEWG78S_khT>rPC`wR%Qv^1KX zAgxmehXJHcn|V5@v4}|4#x1h%K%oT3g0hH+yt96DsQ==u`P%>{PoAuGjSQTw$nOJN zs%p-40{KVoUg>yPuno?yUb|j4ZP_k4xqD^F^3}J1Cp$(O&rh4*?Dq%c*oiV}ZEX#G zz>?#oa=oFU6Wfkvnx-5*c0$_P+Cpm@yk3bJl)NS{FHhs8nR82nOg=e!Tv~42u$Y^s z>_1r8iDg${!!V?(rdH0Jt?uMm!J%RS&{9%ThKdMEDZZHykGt#?N-55rzrg8=$}i3f zr7%swZnJgzeo4cI@Y|&;H)uV2gloZtkuE1~H*c}|FFSGA9gG~F#FhH1D5dBcYDy^p z&YinJzkB;4A_Pg^6&}XI^w->4soU)fZWa+9dT=zoBVEMw>&wUy_j912CDY;rogyLkqy3@xiZf?r`5#u99kmYHbHA7u=vo>Y zn|$)d;-w|G)ADQmezYRvPxU#u`}}L)+0fW;=p&hH-(Kg-$=h#y_lG~;323wC%>Q`H zwmmoU_8tiQ@$L2Aqz4{*7hu%bC*S|;`ybvqRCrj{|9MC2@DU?3L?qlaP5$3);w)HK z4%yX^zU|AG@c%k9E){yYAS@hx&N7VlNVF;NRMo)LIEYPz%n{Vf7SC~C0l}?mVq~E0%p=!oDLOYVE}z1om_L=1NF6#zZK?h zg2G+k>H}>p-4=?j9x1Y`i8&-Nan?fCm0u#ex{dU0`9K_7sz@jjSaATHQ7|Rl+Btq& zH?s6{fv*AkJ|XakQjANTL@$@0u<&Q~Im@0g1QSp;h3ToPu`x9+n%Kn8NPa?ibh?ll zZ!vGU(nXf1=7GBa_B3E__%)1r`~y8LW05y$!cWblu|qn@q72abL^{oDj(ZZRuRTWo zRxgR8g_wcptMj;a@jUq3U`4*QM=usU6C%OaVEwOr*nBhA)svc<8ZD-OED<(vC}=hy zU_wtjR901!5Fbb7;e!E|K7BvS_m}f&31m+1aK&x(;K@iMA@4eX3@DTU+kbzt#(f;F zU8L27rT}<~@;QIDg1Y*8Do>Tc(Oet~5=K8HtoheTW(*5w^8zipK%l=4S#DrTI(o5y zQZ{zfLCV~Xda;-Ti$wHd5#G!ZHk}r|SY%+4NJ9I#UM#}mzu)dpNq<={78pNGkzIW| zDh3vbR6H6PkFQ~@eV?q0kH9oRb13kXm!S{&7KT_c9&G($N#)7gDfDzIBKyLpC1=T; zo&uEfYL+Or*23<$N)mp#>Ve9uUIu*Ki9gBV_f_ZXE@M+r)e6*{{KDF!0RaJf2d_-9MSmmK&Z}9^YlQc3 zwI_#)3bWXIit;TP29M@~#VS-=LJ1NCyj;zF;g%PMfCdtw0jp#LFS2O&AqFQ;1z^PZ*<=<~l3nd*N$yDo iCr{Rk#r~Dwj{gCN3@RvrqjXyU0000 + + +<roundcube:object name="pagetitle" /> + + + + + + + + +
    + +
    + + + + + From 10dad0d28973eb66e7041b34ea60bcb9a4afb16c Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 8 Mar 2012 20:42:32 +0100 Subject: [PATCH 27/30] Fix new storage object usage (fixes e.g. special folders selectors) --- plugins/kolab_folders/kolab_folders.php | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/plugins/kolab_folders/kolab_folders.php b/plugins/kolab_folders/kolab_folders.php index ab84c24c..e1b2e634 100644 --- a/plugins/kolab_folders/kolab_folders.php +++ b/plugins/kolab_folders/kolab_folders.php @@ -94,6 +94,9 @@ class kolab_folders extends rcube_plugin // Get folders list if ($args['mode'] == 'LIST') { + if (!$storage->check_connection()) { + return $args; + } $args['folders'] = $storage->conn->listMailboxes($args['root'], $args['name']); } else { @@ -405,18 +408,22 @@ class kolab_folders extends rcube_plugin { $storage = $this->rc->get_storage(); + if (!$storage->check_connection()) { + return null; + } + // Code copied from rcube_imap::_list_mailboxes() // Server supports LIST-EXTENDED, we can use selection options // #1486225: Some dovecot versions returns wrong result using LIST-EXTENDED - if (!$this->rc->config->get('imap_force_lsub') && $storage->get_capability('LIST-EXTENDED')) { + if (!$this->rc->config->get('imap_force_lsub') && $imap->get_capability('LIST-EXTENDED')) { // This will also set mailbox options, LSUB doesn't do that $a_folders = $storage->conn->listMailboxes($root, $name, NULL, array('SUBSCRIBED')); // remove non-existent folders - if (is_array($a_folders) && $name = '*') { + if (is_array($a_folders) && $name = '*' && !empty($storage->conn->data['LIST'])) { foreach ($a_folders as $idx => $folder) { - if ($storage->conn->data['LIST'] && ($opts = $storage->conn->data['LIST'][$folder]) + if (($opts = $storage->conn->data['LIST'][$folder]) && in_array('\\NonExistent', $opts) ) { $storage->conn->unsubscribe($folder); @@ -430,10 +437,10 @@ class kolab_folders extends rcube_plugin $a_folders = $storage->conn->listSubscribed($root, $name); // unsubscribe non-existent folders, remove from the list - if (is_array($a_folders) && $name == '*') { + if (is_array($a_folders) && $name == '*' && !empty($storage->conn->data['LIST'])) { foreach ($a_folders as $idx => $folder) { - if ($storage->conn->data['LIST'] && ($opts = $storage->conn->data['LIST'][$folder]) - && in_array('\\Noselect', $opts) + if (!isset($storage->conn->data['LIST'][$folder]) + || in_array('\\Noselect', $storage->conn->data['LIST'][$folder]) ) { // Some servers returns \Noselect for existing folders if (!$storage->folder_exists($folder)) { From c1997c9db77b93ccb2790199aae487388922cb47 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 4 Apr 2012 12:16:28 +0200 Subject: [PATCH 28/30] Add 'configuration' label for folders of type configuration --- plugins/kolab_zpush/localization/en_US.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/kolab_zpush/localization/en_US.inc b/plugins/kolab_zpush/localization/en_US.inc index 5160d91c..2537d4d5 100644 --- a/plugins/kolab_zpush/localization/en_US.inc +++ b/plugins/kolab_zpush/localization/en_US.inc @@ -18,6 +18,7 @@ $labels['contact'] = 'Address Books'; $labels['event'] = 'Calendars'; $labels['task'] = 'Tasks'; $labels['note'] = 'Notes'; +$labels['configuration'] = 'Configuration'; $labels['deletedevice'] = 'Delete device'; $labels['imageformat'] = 'Image format'; $labels['laxpiclabel'] = 'Allow PNG and GIF images'; From e666187312ca04384a28a77bf1836db79a97ca52 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 5 Apr 2012 10:51:41 +0200 Subject: [PATCH 29/30] Enable icon for "Save as event" item in More actions popup --- plugins/calendar/skins/larry/calendar.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/calendar/skins/larry/calendar.css b/plugins/calendar/skins/larry/calendar.css index ad646df1..488f37ca 100644 --- a/plugins/calendar/skins/larry/calendar.css +++ b/plugins/calendar/skins/larry/calendar.css @@ -1244,7 +1244,7 @@ fieldset #calendarcategories div { /* Invitation UI in mail */ #messagemenu li a.calendarlink span.calendar { -/* background-position: 7px -109px; */ + background-position: 0px -1948px; } div.calendar-invitebox { From e935cdbf788bb941525dad4a28003a2c8c1fe458 Mon Sep 17 00:00:00 2001 From: Christoph Wickert Date: Tue, 17 Apr 2012 16:45:53 +0200 Subject: [PATCH 30/30] Default HTTPS post is 443 (unless stated otherwise), not 143 --- plugins/calendar/calendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/calendar/calendar.php b/plugins/calendar/calendar.php index 7eb9dee4..312a51ed 100644 --- a/plugins/calendar/calendar.php +++ b/plugins/calendar/calendar.php @@ -2403,7 +2403,7 @@ class calendar extends rcube_plugin $default_port = 80; if (rcube_https_check()) { $schema = 'https'; - $default_port = 143; + $default_port = 443; } $url = $schema . '://' . $_SERVER['HTTP_HOST']; if ($_SERVER['SERVER_PORT'] != $default_port)