Merge branch 'master' of github.com:roundcube/roundcubemail
| | |
| | | $this->output->set_env('user_id', $this->user->get_hash()); |
| | | } |
| | | |
| | | // set compose mode for all tasks (message compose step can be triggered from everywhere) |
| | | $this->output->set_env('compose_extwin', $this->config->get('compose_extwin',false)); |
| | | |
| | | // add some basic labels to client |
| | | $this->output->add_label('loading', 'servererror', 'connerror', 'requesttimedout', |
| | | 'refreshing', 'windowopenerror'); |
| | |
| | | if (this.task == 'mail') { |
| | | url._mbox = this.env.mailbox; |
| | | if (props) |
| | | url._to = props; |
| | | url._to = props; |
| | | // also send search request so we can go back to search result after message is sent |
| | | if (this.env.search_request) |
| | | url._search = this.env.search_request; |
| | |
| | | break; |
| | | } |
| | | } |
| | | else if (props) |
| | | else if (props && typeof props == 'string') { |
| | | url._to = props; |
| | | } |
| | | else if (props && typeof props == 'object') { |
| | | $.extend(url, props); |
| | | } |
| | | |
| | | this.open_compose_step(url); |
| | | break; |
| | |
| | | $OUTPUT->set_env('search_mods', $search_mods); |
| | | $OUTPUT->set_env('address_sources', $js_list); |
| | | $OUTPUT->set_env('writable_source', $writeable); |
| | | $OUTPUT->set_env('compose_extwin', $RCMAIL->config->get('compose_extwin',false)); |
| | | |
| | | $OUTPUT->set_pagetitle($RCMAIL->gettext('addressbook')); |
| | | $_SESSION['addressbooks_count'] = $count; |
| | |
| | | if ($cid && ($record = $CONTACTS->get_record($cid, true))) { |
| | | $OUTPUT->set_env('readonly', $CONTACTS->readonly || $record['readonly']); |
| | | $OUTPUT->set_env('cid', $record['ID']); |
| | | $OUTPUT->set_env('compose_extwin', $RCMAIL->config->get('compose_extwin',false)); |
| | | } |
| | | |
| | | // get address book name (for display) |
| | |
| | | |
| | | // set configuration |
| | | $RCMAIL->set_env_config(array('delete_junk', 'flag_for_deletion', 'read_when_deleted', |
| | | 'skip_deleted', 'display_next', 'message_extwin', 'compose_extwin', 'forward_attachment')); |
| | | 'skip_deleted', 'display_next', 'message_extwin', 'forward_attachment')); |
| | | |
| | | if (!$OUTPUT->ajax_call) { |
| | | $OUTPUT->add_label('checkingmail', 'deletemessage', 'movemessagetotrash', |
| | |
| | | |
| | | // set configuration |
| | | $RCMAIL->set_env_config(array('delete_junk', 'flag_for_deletion', 'read_when_deleted', |
| | | 'skip_deleted', 'display_next', 'compose_extwin', 'forward_attachment')); |
| | | 'skip_deleted', 'display_next', 'forward_attachment')); |
| | | |
| | | // set special folders |
| | | foreach (array('drafts', 'trash', 'junk') as $mbox) { |